Re: [Trac] Forbidden error after Trac instance logoff | Trac 1.6
Jun Omae <[email protected]> Thu, 26 Feb 2026 02:36:48 +0900
| Newsgroups | gmane.comp.version-control.subversion.trac.general |
|---|---|
| Message-ID | <CAEVLMagTik1Cakf+9YF8Opd01MDdL+TQif_bC0OAM_zg4ggHLg@mail.gmail.com> |
On Wed, Feb 25, 2026 at 7:28=E2=80=AFPM Venu Pillai <[email protected]>= wrote: > > Copied the .py file in below path > > #ls /usr/local/lib/python3.12/site-packages/tracopt/perm > > authz_policy.py authz_policy.py.old config_perm_provider.py __init__.p= y __pycache__ No. Add AuthzPolicy to [trac] permission_policies option in your trac.ini. --- trac.ini.orig 2026-02-26 02:32:37.714671800 +0900 +++ trac.ini 2026-02-26 02:33:20.442061500 +0900 @@ -320,7 +320,7 @@ mysqldump_path =3D mysqldump never_obfuscate_mailto =3D disabled #permission_policies =3D DefaultPermissionPolicy,LegacyAttachmentPolicy,AuthzSourcePolicy -permission_policies =3D AuthzSourcePolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy +permission_policies =3D AuthzPolicy,AuthzSourcePolicy,DefaultWikiPolicy,DefaultTicketPolicy,Default= PermissionPolicy,LegacyAttachmentPolicy pg_dump_path =3D pg_dump resizable_textareas =3D enabled secure_cookies =3D disabled > Restarted the service > > > > Same issue. > > I am attaching the Trac.ini and debug file > > > On Wednesday, 25 February 2026 at 13:07:46 UTC+5:30 Jun Omae wrote: >> >> > Added the permission_policies =3D AuthzSourcePolicy,DefaultWikiPolicy,= DefaultTicketPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy in Trac.= ini >> >> AuthzPolicy should be added. >> See https://trac.edgewall.org/intertrac/source:/branches/1.6-stable/trac= opt/perm/authz_policy.py >> >> If not fixed yet, please share entire of your trac.ini and trac.log >> after enabling logging with DEBUG level and reproducing it. >> >> On Wed, Feb 25, 2026 at 2:46=E2=80=AFPM Venu Pillai <[email protected]>= wrote: >> > >> > Hi chris, >> > Added the permission_policies =3D AuthzSourcePolicy,DefaultWikiPolicy,= DefaultTicketPolicy,DefaultPermissionPolicy,LegacyAttachmentPolicy in Trac.= ini >> > Restarted the service. >> > Still the same issue. I can successfully login to trac instance create= ticket, view ticket etc. After logout it should go back to login page? but= here after logoff it give forbidden error depend upon that last I h >> > I have attached the error. >> >> >> -- >> 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/04c3efe9-c305-46e2-82f3-dbb9a3bbe17cn%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/= CAEVLMagTik1Cakf%2B9YF8Opd01MDdL%2BTQif_bC0OAM_zg4ggHLg%40mail.gmail.com.