Re: [Trac] Re: TracHtmlNotificationPlugin only sends text/plain

Jun Omae <[email protected]> Fri, 17 Jul 2026 09:20:27 +0900
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <CAEVLMaha57yq5SLXUHNFnDFboBgde6UQyU3Mjv2cbVuezF4FoQ@mail.gmail.com>
Great investigation!

I'm wrong about the recent changes to the plugin in
https://trac-hacks.org/changeset/18646 .
I just fixed the issue in https://trac-hacks.org/changeset/18735 .
Could you please try the latest of the plugin from
https://trac-hacks.org/svn/trachtmlnotificationplugin/0.12/ ?

Thanks.

On Thu, Jul 16, 2026 at 8:55=E2=80=AFPM Manuel Bilderbeek
<[email protected]> wrote:
>
> Dear Jun,
>
> I did some analysis of the situation with Claude and we came to a possibl=
e cause: in my setup I do not have given any access to the anonymous user. =
It seems that the plugin requires TICKET_VIEW permissions for the anonymous=
 user, in contrast to the old GenShi version, which seems to avoid tihs by =
using MockPerm (if we understood that code correctly). Do you think this co=
uld indeed be the (root) cause of the issue?
>
> For confidentiality reasons we do not want non-logged in users to view an=
y tickets, hence this configuration.
>
> Op vrijdag 26 juni 2026 om 06:30:08 UTC+2 schreef Jun Omae:
>>
>> On Thu, Jun 25, 2026 at 5:31=E2=80=AFPM Manuel Bilderbeek
>> <[email protected]> wrote:
>> >
>> > Yes, PYTHON_EGG_CACHE is used and it is set on /srv/trac/eggs in /srv/=
trac/apache/trac.wsgi:
>> > $ cat /srv/trac/apache/trac.wsgi
>> > import sys
>> > sys.stdout =3D sys.stderr
>> >
>> > import site
>> > site.addsitedir('/usr/lib/python2.7/dist-packages/')
>> >
>> > import os
>> > os.environ['TRAC_ENV_PARENT_DIR'] =3D '/srv/trac/projects'
>> > os.environ['PYTHON_EGG_CACHE'] =3D '/srv/trac/eggs'
>> >
>> > import trac.web.main
>> >
>> > application =3D trac.web.main.dispatch_request
>> >
>>
>> It is not probably related with this issue, but the following line
>> should be removed because of using Python 3.14.
>>
>> > site.addsitedir('/usr/lib/python2.7/dist-packages/')
>>
>>
>> > I cleaned this /srv/trac/eggs directory and did an updatedb/locate aft=
er restarting apache2:
>> >
>> > $ locate TracHtmlNotification
>> > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp
>> > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trac=
htmlnotification
>> > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trac=
htmlnotification/templates
>> > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trac=
htmlnotification/templates/jinja2
>> > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trac=
htmlnotification/templates/jinja2/htmlnotification_ticket.html
>> > /srv/trac/projects/swdev/plugins/TracHtmlNotificationPlugin-0.12.0.4-p=
y3.14.egg
>> >
>> > $ locate htmlnotification_ticket
>> > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trac=
htmlnotification/templates/jinja2/htmlnotification_ticket.html
>> >
>> > I guess this looks OK, but I still do not get the proper diffs in the =
e-mail after all of this. What am I missing here?
>> >
>> > Should I move the installation of the egg(s)? I'm not sure where exact=
ly it should be moved to. /srv/trac/lib? /srv/trac/projects/lib?
>> >
>>
>> Please try to reproduce it with TracHtmlNotificationPlugin only
>> enabled. If it is reproduced, this plugin has something wrong. If not,
>> your installation, configuration and/or environment have something
>> wrong. At least, it is unable to reproduce it on my environment. I
>> cannot fix any issues which are not reproduced.
>>
>> --
>> Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)
>
> --
> You received this message because you are subscribed to the Google Groups=
 "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an=
 email to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> To view this discussion visit https://groups.google.com/d/msgid/trac-user=
s/e6849245-d0af-4eec-b121-a30910529349n%40googlegroups.com.



--=20
Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)

--=20
You received this message because you are subscribed to the Google Groups "=
Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/=
CAEVLMaha57yq5SLXUHNFnDFboBgde6UQyU3Mjv2cbVuezF4FoQ%40mail.gmail.com.