Roundup Tracker - Issues

Message7216

Author rouilj
Recipients joseph_myers, rouilj
Date 2021-05-06.23:27:30
Message-id <1620343650.28.0.330001353367.issue2551062@roundup.psfhosted.org>
In-reply-to
Modified roundup-admin so that it stops when it sees a property error.
If run non-interactively it exits status 1 to make it more useful in 
shell scripts.

rev 6393:51a1a9b0f567

Still would like to put this check in Tracker::__init__. But that is 
not called until the tracker web or email interfaces are triggered.
If you set the Tracker object's self.schema_hook(self, **env) you get 
access to env['db'].security.role which can be used to validate
the permissions.

However this never gets called at daemon startup using roundup-demo.
It is only called on the first connection to the web interface.

I assume it similarly is never called in other modes until the first
web or email gateway request comes in.

So I think this is as fixed as it is going to get. I think any
attempt to validate at startup the way we do config.ini is going
to need some extensive surgery.

I added info about this change to upgrading.txt.
History
Date User Action Args
2021-05-06 23:27:30rouiljsetmessageid: <1620343650.28.0.330001353367.issue2551062@roundup.psfhosted.org>
2021-05-06 23:27:30rouiljsetrecipients: + rouilj, joseph_myers
2021-05-06 23:27:30rouiljlinkissue2551062 messages
2021-05-06 23:27:30rouiljcreate