Re: [Trac] Re: TracHtmlNotificationPlugin only sends text/plain
Manuel Bilderbeek <[email protected]> Fri, 17 Jul 2026 06:00:05 -0700 (PDT)
| Newsgroups | gmane.comp.version-control.subversion.trac.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_341682_38294301.1784293205008 Content-Type: multipart/alternative; boundary="----=_Part_341683_1416047253.1784293205008" ------=_Part_341683_1416047253.1784293205008 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, that seems to work better! If there's anything else on this topic,= =20 I'll let you know. Op vrijdag 17 juli 2026 om 02:20:55 UTC+2 schreef Jun Omae: > 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=20 > possible cause: in my setup I do not have given any access to the anonymo= us=20 > user. It seems that the plugin requires TICKET_VIEW permissions for the= =20 > anonymous user, in contrast to the old GenShi version, which seems to avo= id=20 > tihs by using MockPerm (if we understood that code correctly). Do you thi= nk=20 > this could indeed be the (root) cause of the issue? > > > > For confidentiality reasons we do not want non-logged in users to view= =20 > any 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= =20 > after 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 th= e=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=20 > exactly 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=20 > Groups "Trac Users" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to trac-users+...-/JYPxA39Uh5TLH3MbocFF+G/[email protected] > > To view this discussion visit=20 > https://groups.google.com/d/msgid/trac-users/e6849245-d0af-4eec-b121-a309= 10529349n%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/= 4937135a-10c4-44b5-bd17-7c18636c55c4n%40googlegroups.com. ------=_Part_341683_1416047253.1784293205008 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, that seems to work better! If there's anything else on this topic, = I'll let you know.<br /><br /><div class=3D"gmail_quote"><div dir=3D"auto" = class=3D"gmail_attr">Op vrijdag 17 juli 2026 om 02:20:55 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;">Great i= nvestigation! <br> <br>I'm wrong about the recent changes to the plugin in <br><a href=3D"https://trac-hacks.org/changeset/18646" target=3D"_blank" re= l=3D"nofollow" data-saferedirecturl=3D"https://www.google.com/url?hl=3Dnl&a= mp;q=3Dhttps://trac-hacks.org/changeset/18646&source=3Dgmail&ust=3D= 1784359922243000&usg=3DAOvVaw2qRSIQSw5s2WNOCRtjmwBC">https://trac-hacks= .org/changeset/18646</a> . <br>I just fixed the issue in <a href=3D"https://trac-hacks.org/changeset/1= 8735" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://ww= w.google.com/url?hl=3Dnl&q=3Dhttps://trac-hacks.org/changeset/18735&= ;source=3Dgmail&ust=3D1784359922243000&usg=3DAOvVaw3rm3gjv2V3q8me4j= vn60KE">https://trac-hacks.org/changeset/18735</a> . <br>Could you please try the latest of the plugin from <br><a href=3D"https://trac-hacks.org/svn/trachtmlnotificationplugin/0.12/"= target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.goo= gle.com/url?hl=3Dnl&q=3Dhttps://trac-hacks.org/svn/trachtmlnotification= plugin/0.12/&source=3Dgmail&ust=3D1784359922243000&usg=3DAOvVaw= 33lgs6SiHta2piXyO54PBt">https://trac-hacks.org/svn/trachtmlnotificationplug= in/0.12/</a> ? <br> <br>Thanks. <br> <br>On Thu, Jul 16, 2026 at 8:55=E2=80=AFPM Manuel Bilderbeek <br><<a href data-email-masked rel=3D"nofollow">[email protected]= </a>> wrote: <br>> <br>> Dear Jun, <br>> <br>> I did some analysis of the situation with Claude and we came to a = possible 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 an= onymous user, in contrast to the old GenShi version, which seems to avoid t= ihs by using MockPerm (if we understood that code correctly). Do you think = this could indeed be the (root) cause of the issue? <br>> <br>> For confidentiality reasons we do not want non-logged in users to = view any tickets, hence this configuration. <br>> <br>> Op vrijdag 26 juni 2026 om 06:30:08 UTC+2 schreef Jun Omae: <br>>> <br>>> On Thu, Jun 25, 2026 at 5:31=E2=80=AFPM Manuel Bilderbeek <br>>> <<a href data-email-masked rel=3D"nofollow">manuel.bild...@= gmail.com</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/= 9;) <br>>> > <br>>> > import os <br>>> > os.environ['TRAC_ENV_PARENT_DIR'] =3D '/srv/t= rac/projects' <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/= 9;) <br>>> <br>>> <br>>> > I cleaned this /srv/trac/eggs directory and did an update= db/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/TracHtmlNotificationPlug= in-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 where exactly it should be moved to. /srv/trac/lib? /srv/trac/project= s/lib? <br>>> > <br>>> <br>>> Please try to reproduce it with TracHtmlNotificationPlugin onl= y <br>>> enabled. If it is reproduced, this plugin has something wrong.= If not, <br>>> your installation, configuration and/or environment have somet= hing <br>>> wrong. At least, it is unable to reproduce it on my environmen= t. I <br>>> cannot fix any issues which are not reproduced. <br>>> <br>>> -- <br>>> Jun Omae <<a href data-email-masked rel=3D"nofollow">jun...= @gmail.com</a>> (=E5=A4=A7=E5=89=8D =E6=BD=A4) <br>> <br>> -- <br>> You received this message because you are subscribed to the Google= Groups "Trac Users" group. <br>> To unsubscribe from this group and stop receiving emails from it, = send an email to <a href data-email-masked rel=3D"nofollow">trac-users+...@= googlegroups.com</a>. <br>> To view this discussion visit <a href=3D"https://groups.google.com= /d/msgid/trac-users/e6849245-d0af-4eec-b121-a30910529349n%40googlegroups.co= m" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.g= oogle.com/url?hl=3Dnl&q=3Dhttps://groups.google.com/d/msgid/trac-users/= e6849245-d0af-4eec-b121-a30910529349n%2540googlegroups.com&source=3Dgma= il&ust=3D1784359922243000&usg=3DAOvVaw1XDtKPNVXQayS991Uj1OJW">https= ://groups.google.com/d/msgid/trac-users/e6849245-d0af-4eec-b121-a3091052934= 9n%40googlegroups.com</a>. <br> <br> <br> <br>--=20 <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/4937135a-10c4-44b5-bd17-7c18636c55c4n%40googlegroups.com?utm_med= ium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/trac-use= rs/4937135a-10c4-44b5-bd17-7c18636c55c4n%40googlegroups.com</a>.<br /> ------=_Part_341683_1416047253.1784293205008-- ------=_Part_341682_38294301.1784293205008--