#3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kokkuvõte
Children
Kommentaarid
- 6 aastat, 5 kuud ago by Luc Saffre about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : I finished my work on this and pushed (to lino, xl and book).
- 6 aastat, 5 kuud ago by Luc Saffre about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : Yes, it has increased the coverage. Some test cases weren't being run.
- 6 aastat, 5 kuud ago by Luc Saffre about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : Seems to work now, and this should have increased our test coverage another bit. I started the test suite locally before pushing my changes.
- 6 aastat, 5 kuud ago by Luc Saffre about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : I guess that the fundamental problem is that an anonymous request does set subst_user, which is then used for deciding whether a dashboard item (here cal.MyEntries) should be rendered or not. Actually subst_user should be looked up only when the user has permission to do it.
- 6 aastat, 5 kuud ago by Luc Saffre about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : I can now reproduce the problem by saying "pm test tests.test_webindex" in avanti1.
- 6 aastat, 5 kuud ago by Luc Saffre about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : Before fixing it (which would be trivial if we would need a quick fix) I am trying to have it covered by the test suite... not yet finished...
- 6 aastat, 5 kuud ago by Luc Saffre in reply to tonis about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : Yes, it occurs e.g. after a server restart when users were acting as another user before closing their browser.
- 6 aastat, 5 kuud ago by tonis about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) (1 reply) : Not able to reproduce the ?su=5, without manually adding it to the url. But yes,it shouldn't crash, rather just ignore it...
- 6 aastat, 5 kuud ago by Luc Saffre about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : We received two such notifications from mdg2 today at 13:28.
- 6 aastat, 5 kuud ago by Luc Saffre about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : For example go to avanti1, runserver, then point your browser to 127.0.0.1:8000/?su=5 (after making sure that you didn't already sign in in a previous run). It throws an 'AnonymousUser' object has no attribute 'event_type' traceback.
- 6 aastat, 5 kuud ago by tonis about #3644 (Requesting http://127.0.0.1:8000/?su=5 as anonymous) : What's this?