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 #5867 (closed)

Opened 13 years ago

Closed 13 years ago

Bug:Web admin creating new user

Reported by: saloynton Owned by: atarkowska
Priority: major Milestone: OMERO-Beta4.3
Component: General Version: n.a.
Keywords: n.a. Cc: wmoore, saloynton, jamoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-06-16 (14)

Description

I was creating new user for scenario 14, created the user and had the following returned.

Traceback (most recent call last):

  File "/home/omero/OMERO.server-4.3.0-DEV-21278bf2/lib/python/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/omero/OMERO.server-4.3.0-DEV-21278bf2/lib/python/omeroweb/webadmin/views.py", line 154, in wrapped
    return f(request, *args, **kwargs)

  File "/home/omero/OMERO.server-4.3.0-DEV-21278bf2/lib/python/omeroweb/webadmin/views.py", line 223, in wrapped
    return f(request, *args, **kwargs)

  File "/home/omero/OMERO.server-4.3.0-DEV-21278bf2/lib/python/omeroweb/webadmin/views.py", line 428, in manage_experimenter
    if form.is_valid():

  File "/home/omero/OMERO.server-4.3.0-DEV-21278bf2/lib/python/django/forms/forms.py", line 120, in is_valid
    return self.is_bound and not bool(self.errors)

  File "/home/omero/OMERO.server-4.3.0-DEV-21278bf2/lib/python/django/forms/forms.py", line 111, in _get_errors
    self.full_clean()

  File "/home/omero/OMERO.server-4.3.0-DEV-21278bf2/lib/python/omeroweb/custom_forms.py", line 35, in full_clean
    if value is not None and len(value)>0:

TypeError: object of type 'bool' has no len()


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'first_name': [u'scott2'], u'last_name': [u'share'], u'middle_name': [u''], u'confirmation': [u'ome'], u'default_group': [u'3'], u'institution': [u''], u'other_groups': [u'3'], u'omename': [u'sharedscott'], u'active': [u'on'], u'password': [u'ome'], u'email': [u'saloynton@dundee.ac.uk']}>,
COOKIES:{'sessionid': 'ca7e1e2ecc0ecb84ef6d3e3fe3d4d5e2'},
META:{'CONTENT_LENGTH': '181',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
 'DOCUMENT_ROOT': '/var/www',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=ca7e1e2ecc0ecb84ef6d3e3fe3d4d5e2',
 'HTTP_HOST': 'gretzky.openmicroscopy.org.uk',
 'HTTP_ORIGIN': 'http://gretzky.openmicroscopy.org.uk',
 'HTTP_REFERER': 'http://gretzky.openmicroscopy.org.uk/webadmin/experimenter/new/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1',
 'PATH': '/usr/local/bin:/usr/bin:/bin',
 'PATH_INFO': u'/webadmin/experimenter/create/',
 'PATH_TRANSLATED': '/var/www/omero.fcgi/webadmin/experimenter/create/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.12.3.48',
 'REMOTE_PORT': '55101',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/webadmin/experimenter/create/',
 'SCRIPT_FILENAME': '/var/www/omero.fcgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '134.36.65.227',
 'SERVER_ADMIN': 'webmaster@localhost',
 'SERVER_NAME': 'gretzky.openmicroscopy.org.uk',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.14 (Ubuntu) Server at gretzky.openmicroscopy.org.uk Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)',
 'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x4dd06d0>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x4daf190>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>

Change History (1)

comment:1 Changed 13 years ago by Aleksandra Tarkowska <aleksandrat@…>

  • Remaining Time set to 0
  • Resolution set to fixed
  • Status changed from new to closed

(In [0b3548acf4e46b848bb5bea2768eb4a7eb7d0d29/ome.git] on branch develop) ths fixes form processing data, close #5867 and add test for non ascii characters

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.67776 sec.)

We're Hiring!