authrequired.py not working correctly with 0.11beta2
|Reported by:||gabriele.garuglieri@…||Owned by:||BladeHawke|
The result is a completely screwed up and not functional /login page.
To prove that i tried to modify authrequired.py as follow:
def get_navigation_items(self, req): if ((req.authname and req.authname != 'anonymous') or \ req.path_info.startswith('/chrome') or \ req.path_info.startswith('/login') or \ req.path_info.startswith('/reset_password') or \ req.path_info.startswith('/register')): return 
Adding the bypass for /chrome prefix allow authrequired.py to work perfectly.
Be aware that this is not a suggested patch, i don't know python (yet) or trac internals and i don't know if this change may have collateral effects. It is just a proof to show the incorrect behavior.