You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following scenario leads to a thrown exception in the code:
I'm logged in, and perform a normal search. Note that it doesn't happen with an advanced search.
While the search results are still visible, i log out.
I now immedeatly either log in as the same user or another user.
It returns to the search result page, but with an empty query (http:/calibremachine.home/calibre/search for example)
And that results in the followin exception being thrown:
Oct 04 21:35:58 calibremachine python2[343]: ERROR:cps.web:Exception on /search [GET]
Oct 04 21:35:58 calibremachine python2[343]: Traceback (most recent call last):
Oct 04 21:35:58 calibremachine python2[343]: File "/usr/share/webapps/calibre-web/vendor/flask/app.py", line 1817, in wsgi_app
Oct 04 21:35:58 calibremachine python2[343]: response = self.full_dispatch_request()
Oct 04 21:35:58 calibremachine python2[343]: File "/usr/share/webapps/calibre-web/vendor/flask/app.py", line 1477, in full_dispatch_request
Oct 04 21:35:58 calibremachine python2[343]: rv = self.handle_user_exception(e)
Oct 04 21:35:58 calibremachine python2[343]: File "/usr/share/webapps/calibre-web/vendor/flask/app.py", line 1381, in handle_user_exception
Oct 04 21:35:58 calibremachine python2[343]: reraise(exc_type, exc_value, tb)
Oct 04 21:35:58 calibremachine python2[343]: File "/usr/share/webapps/calibre-web/vendor/flask/app.py", line 1475, in full_dispatch_request
Oct 04 21:35:58 calibremachine python2[343]: rv = self.dispatch_request()
Oct 04 21:35:58 calibremachine python2[343]: File "/usr/share/webapps/calibre-web/vendor/flask/app.py", line 1461, in dispatch_request
Oct 04 21:35:58 calibremachine python2[343]: return self.view_functions[rule.endpoint](**req.view_args)
Oct 04 21:35:58 calibremachine python2[343]: File "/usr/share/webapps/calibre-web/vendor/flask_login.py", line 717, in decorated_view
Oct 04 21:35:58 calibremachine python2[343]: return func(*args, **kwargs)
Oct 04 21:35:58 calibremachine python2[343]: File "/usr/share/webapps/calibre-web/cps/web.py", line 477, in search
Oct 04 21:35:58 calibremachine python2[343]: term = request.args.get("query").strip()
Oct** 04 21:35:58 calibremachine python2[343]: AttributeError: 'NoneType' object has no attribute 'strip'
Oct 04 21:35:58 calibremachine python2[343]: ERROR:tornado.access:500 GET /calibre/search (10.10.0.100) 50.28ms
The advanced search just returns me to the advanced search page in this case.
If i manually change the url from calibre/search to calibre/ in my example, i'm correctly logged in and it works normally.
Closing the tab or the browser and normally going to the login page doesn't do this as well.
The text was updated successfully, but these errors were encountered:
The following scenario leads to a thrown exception in the code:
And that results in the followin exception being thrown:
The advanced search just returns me to the advanced search page in this case.
If i manually change the url from calibre/search to calibre/ in my example, i'm correctly logged in and it works normally.
Closing the tab or the browser and normally going to the login page doesn't do this as well.
The text was updated successfully, but these errors were encountered: