Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #11281 (closed)

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

SuspiciousOperation: Invalid characters in session key

Reported by: omero-qa Owned by: atarkowska
Priority: major Milestone: 5.0.0
Component: Web Version: 4.4.8
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description (last modified by atarkowska)

Traceback (most recent call last):

  File "/OMERO/OMERO.server/lib/python/django/core/handlers/base.py", line 178, in get_response
    response = middleware_method(request, response)

  File "/OMERO/OMERO.server/lib/python/django/contrib/sessions/middleware.py", line 28, in process_response
    if request.session.get_expire_at_browser_close():

  File "/OMERO/OMERO.server/lib/python/django/contrib/sessions/backends/base.py", line 252, in get_expire_at_browser_close
    if self.get('_session_expiry') is None:

  File "/OMERO/OMERO.server/lib/python/django/contrib/sessions/backends/base.py", line 64, in get
    return self._session.get(key, default)

  File "/OMERO/OMERO.server/lib/python/django/contrib/sessions/backends/base.py", line 195, in _get_session
    self._session_cache = self.load()

  File "/OMERO/OMERO.server/lib/python/django/contrib/sessions/backends/file.py", line 50, in load
    session_file = open(self._key_to_file(), "rb")

  File "/OMERO/OMERO.server/lib/python/django/contrib/sessions/backends/file.py", line 43, in _key_to_file
    "Invalid characters in session key")

SuspiciousOperation: Invalid characters in session key


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'csrftoken': 'jQ0v6KDGcIXeEcTjezU6qRzJThf86Kt7',
 'sessionid': '5dqcufr39vdrn0inbpzn27p72bhm9kmh'},
META:{'DOCUMENT_ROOT': '/home/yukako/src/SSBD/SSBD/',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'ja,en-us;q=0.7,en;q=0.3',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'csrftoken=jQ0v6KDGcIXeEcTjezU6qRzJThf86Kt7; sessionid=5dqcufr39vdrn0inbpzn27p72bhm9kmh',
 'HTTP_HOST': '172.21.20.17',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0',
 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',
 'PATH_INFO': u'/webclient/',
 'PATH_TRANSLATED': '/home/yukako/src/SSBD/SSBD/wsgi.py/webclient/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '172.21.20.229',
 'REMOTE_PORT': '55968',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/omero/webclient/',
 'SCRIPT_FILENAME': '/OMERO/OMERO.server/var/omero.fcgi',
 'SCRIPT_NAME': u'/omero',
 'SERVER_ADDR': '172.21.20.17',
 'SERVER_ADMIN': 'yukako.tohsato@riken.jp',
 'SERVER_NAME': '172.21.20.17',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.15 (Red Hat) Server at 172.21.20.17 Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.15 (Red Hat)',
 'TZ': 'Asia/Tokyo',
 'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x4b54550>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x4b4ce90>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>

Change History (7)

comment:1 Changed 8 years ago by atarkowska

  • Description modified (diff)
  • Summary changed from SuspiciousOperation: Invalid characters in session to SuspiciousOperation: Invalid characters in session key

This is due to Django Bug. It should be considered during next Django upgrade

comment:2 Changed 8 years ago by atarkowska

  • Component changed from from QA to Web

comment:3 Changed 8 years ago by spli

See also #11771

comment:4 Changed 8 years ago by atarkowska

  • Milestone changed from Unscheduled to 5.0.0

comment:5 Changed 8 years ago by jburel

  • Priority changed from minor to major

comment:6 Changed 8 years ago by atarkowska

  • Resolution set to fixed
  • Status changed from new to closed

This ticket can be closed as Django upgrade should resolve that issue, https://code.djangoproject.com/ticket/19664

comment:7 Changed 8 years ago by wmoore

I'm not sure that this has got anything to do with the "file backend". However, to fix the issue we'd have to handle it in OMERO 4.4, since that's where the problem occurs, and I don't think this is bad enough to justify a 4.4.11.

Version 0, edited 8 years ago by wmoore (next)
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.65032 sec.)

We're Hiring!