Re: [Trac] Re: TracHtmlNotificationPlugin only sends text/plain
Manuel Bilderbeek <[email protected]> Thu, 16 Jul 2026 04:55:53 -0700 (PDT)
| Newsgroups | gmane.comp.version-control.subversion.trac.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_314094_707546768.1784202953247 Content-Type: multipart/alternative; boundary="----=_Part_314095_423875689.1784202953247" ------=_Part_314095_423875689.1784202953247 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Jun, I did some analysis of the situation with Claude and we came to a possible= =20 cause: in my setup I do not have given any access to the anonymous user. It= =20 seems that the plugin requires TICKET_VIEW permissions for the anonymous=20 user, in contrast to the old GenShi version, which seems to avoid tihs by= =20 using MockPerm (if we understood that code correctly). Do you think this=20 could indeed be the (root) cause of the issue? For confidentiality reasons we do not want non-logged in users to view any= =20 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=20 > /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 afte= r=20 > restarting apache2: > > > > $ locate TracHtmlNotification > > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp > >=20 > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm= lnotification > >=20 > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm= lnotification/templates > >=20 > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm= lnotification/templates/jinja2 > >=20 > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm= lnotification/templates/jinja2/htmlnotification_ticket.html > >=20 > /srv/trac/projects/swdev/plugins/TracHtmlNotificationPlugin-0.12.0.4-py3.= 14.egg > > > > $ locate htmlnotification_ticket > >=20 > /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/trachtm= lnotification/templates/jinja2/htmlnotification_ticket.html > > > > I guess this looks OK, but I still do not get the proper diffs in the= =20 > 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 exactl= y=20 > 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) > --=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/= e6849245-d0af-4eec-b121-a30910529349n%40googlegroups.com. ------=_Part_314095_423875689.1784202953247 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Jun,<div><br /></div><div>I did some analysis of the situation with Cl= aude and we came to a possible cause: in my setup I do not have given any a= ccess 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 cor= rectly). Do you think this could indeed be the (root) cause of the issue?</= div><div><br /></div><div>For confidentiality reasons we do not want non-lo= gged in users to view any tickets, hence this configuration.<br /><br /></d= iv><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">Op vri= jdag 26 juni 2026 om 06:30:08 UTC+2 schreef Jun Omae:<br/></div><blockquote= class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid= rgb(204, 204, 204); padding-left: 1ex;">On Thu, Jun 25, 2026 at 5:31=E2=80= =AFPM Manuel Bilderbeek <br><<a href data-email-masked rel=3D"nofollow">[email protected]= </a>> wrote: <br>> <br>> Yes, PYTHON_EGG_CACHE is used and it is set on /srv/trac/eggs in /= srv/trac/apache/trac.wsgi: <br>> $ cat /srv/trac/apache/trac.wsgi <br>> import sys <br>> sys.stdout =3D sys.stderr <br>> <br>> import site <br>> site.addsitedir('/usr/lib/python2.7/dist-packages/') <br>> <br>> import os <br>> os.environ['TRAC_ENV_PARENT_DIR'] =3D '/srv/trac/proje= cts' <br>> os.environ['PYTHON_EGG_CACHE'] =3D '/srv/trac/eggs'= ; <br>> <br>> import trac.web.main <br>> <br>> application =3D trac.web.main.dispatch_request <br>> <br> <br>It is not probably related with this issue, but the following line <br>should be removed because of using Python 3.14. <br> <br>> site.addsitedir('/usr/lib/python2.7/dist-packages/') <br> <br> <br>> I cleaned this /srv/trac/eggs directory and did an updatedb/locate= after restarting apache2: <br>> <br>> $ locate TracHtmlNotification <br>> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp <br>> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/= trachtmlnotification <br>> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/= trachtmlnotification/templates <br>> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/= trachtmlnotification/templates/jinja2 <br>> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/= trachtmlnotification/templates/jinja2/htmlnotification_ticket.html <br>> /srv/trac/projects/swdev/plugins/TracHtmlNotificationPlugin-0.12.0= .4-py3.14.egg <br>> <br>> $ locate htmlnotification_ticket <br>> /srv/trac/eggs/TracHtmlNotificationPlugin-0.12.0.4-py3.14.egg-tmp/= trachtmlnotification/templates/jinja2/htmlnotification_ticket.html <br>> <br>> 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? <br>> <br>> Should I move the installation of the egg(s)? I'm not sure whe= re exactly it should be moved to. /srv/trac/lib? /srv/trac/projects/lib? <br>> <br> <br>Please try to reproduce it with TracHtmlNotificationPlugin only <br>enabled. If it is reproduced, this plugin has something wrong. If not, <br>your installation, configuration and/or environment have something <br>wrong. At least, it is unable to reproduce it on my environment. I <br>cannot fix any issues which are not reproduced. <br> <br>-- <br>Jun Omae <<a href data-email-masked rel=3D"nofollow">[email protected]= m</a>> (=E5=A4=A7=E5=89=8D =E6=BD=A4) <br></blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;Trac Users" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:trac-users+unsubscribe-/[email protected]">trac-use= rs+unsubscribe-/[email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= trac-users/e6849245-d0af-4eec-b121-a30910529349n%40googlegroups.com?utm_med= ium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/trac-use= rs/e6849245-d0af-4eec-b121-a30910529349n%40googlegroups.com</a>.<br /> ------=_Part_314095_423875689.1784202953247-- ------=_Part_314094_707546768.1784202953247--