whole-tale / wt_home_dirs

0 stars 1 forks source link

Unauthorized access for workspace yields errors #24

Closed Xarthisius closed 5 years ago

Xarthisius commented 5 years ago
[19/Feb/2019:05:01:20] ENGINE ValueError("invalid literal for int() with base 10: ''",)
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/cheroot/wsgi.py", line 144, in respond
    for chunk in filter(None, response):
  File "/usr/local/lib/python3.5/dist-packages/wsgidav/wsgidav_app.py", line 428, in __call__
    for v in app_iter:
  File "/usr/local/lib/python3.5/dist-packages/wsgidav/debug_filter.py", line 154, in __call__
    for v in app_iter:
  File "/usr/local/lib/python3.5/dist-packages/wsgidav/error_printer.py", line 46, in __call__
    app_iter = self._application(environ, sub_app_start_response)
  File "/usr/local/lib/python3.5/dist-packages/wsgidav/http_authenticator.py", line 209, in __call__
    return self.authBasicAuthRequest(environ, start_response)
  File "/usr/local/lib/python3.5/dist-packages/wsgidav/http_authenticator.py", line 260, in authBasicAuthRequest
    return self._application(environ, start_response)
  File "/girder/plugins/wt_home_dir/server/lib/Authorizer.py", line 21, in __call__
    return self.checkAccess(userName, environ, start_response)
  File "/girder/plugins/wt_home_dir/server/lib/Authorizer.py", line 36, in checkAccess
    return self._checkAccess(userName, path, environ, start_response)
  File "/girder/plugins/wt_home_dir/server/lib/Authorizer.py", line 97, in _checkAccess
    tale = self.taleModel.load(taleId, user=user, level=AccessType.ADMIN)
  File "/girder/girder/models/model_base.py", line 1455, in load
    self.requireAccess(doc, user, level)
  File "/girder/girder/models/model_base.py", line 1400, in requireAccess
    (perm, self.name, doc.get('_id', 'unknown'), userid))
girder.exceptions.AccessException: Admin access denied for tale 5c6b8a8dc3039a0001a09cfb (user 5c6b73cec3039a0001a09c87).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/cheroot/server.py", line 1252, in communicate
    req.respond()
  File "/usr/local/lib/python3.5/dist-packages/cheroot/server.py", line 1056, in respond
    self.server.gateway(self).respond()
  File "/usr/local/lib/python3.5/dist-packages/cheroot/wsgi.py", line 150, in respond
    self.req.ensure_headers_sent()
  File "/usr/local/lib/python3.5/dist-packages/cheroot/server.py", line 1103, in ensure_headers_sent
    self.send_headers()
  File "/usr/local/lib/python3.5/dist-packages/cheroot/server.py", line 1120, in send_headers
    status = int(self.status[:3])
ValueError: invalid literal for int() with base 10: ''