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

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

Bug: Switch user

Reported by: wmoore Owned by: atarkowska
Priority: blocker Milestone: OMERO-4.4
Component: Web Version: n.a.
Keywords: n.a. Cc: atarkowska, cxallan
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-01-17 (6)

Description

In a read-only or read-write group, try to switch to another user's data:

Environment:


Request Method: GET
Request URL: http://localhost:8000/webclient/userdata/?experimenter=152

Django Version: 1.3.1
Python Version: 2.6.1
Installed Applications:
['django.contrib.staticfiles',
 'django.contrib.markup',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'omeroweb.feedback',
 'omeroweb.webadmin',
 'omeroweb.webclient',
 'omeroweb.webgateway',
 'omeroweb.webtest',
 'omeroweb.webmobile',
 'omeroweb.webpublic',
 'omeroweb.webredirect',
 'omeroweb.common']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/Users/will/Desktop/OMERO/dist/lib/python/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/Users/will/Desktop/OMERO/components/tools/OmeroWeb/omeroweb/../omeroweb/webclient/views.py" in wrapped
  171.         return f(request, *args, **kwargs)
File "/Users/will/Desktop/OMERO/components/tools/OmeroWeb/omeroweb/../omeroweb/webclient/views.py" in load_template
  555.             if form_users.is_valid():
File "/Users/will/Desktop/OMERO/dist/lib/python/django/forms/forms.py" in is_valid
  121.         return self.is_bound and not bool(self.errors)
File "/Users/will/Desktop/OMERO/dist/lib/python/django/forms/forms.py" in _get_errors
  112.             self.full_clean()
File "/Users/will/Desktop/OMERO/dist/lib/python/django/forms/forms.py" in full_clean
  267.         self._clean_fields()
File "/Users/will/Desktop/OMERO/dist/lib/python/django/forms/forms.py" in _clean_fields
  284.                     value = field.clean(value)
File "/Users/will/Desktop/OMERO/components/tools/OmeroWeb/omeroweb/../omeroweb/webadmin/custom_forms.py" in clean
  283.         Field.clean(self, value)
File "/Users/will/Desktop/OMERO/dist/lib/python/django/forms/fields.py" in clean
  163.         value = self.to_python(value)
File "/Users/will/Desktop/OMERO/dist/lib/python/django/forms/models.py" in to_python
  973.         except (ValueError, self.queryset.model.DoesNotExist):

Exception Type: AttributeError at /webclient/userdata/
Exception Value: 'list' object has no attribute 'model'

Change History (6)

comment:1 Changed 12 years ago by wmoore

  • Owner changed from wmoore to atarkowska

This appears to be fixed by removing the is_valid() check. See https://github.com/aleksandra-tarkowska/openmicroscopy/commit/ad4086b4f4eac03cabb7fb24a47663f0243d0d75
Not sure if we need this check, since the form is not being submitted at this stage. Ola needs to verifiy this...?

comment:2 Changed 12 years ago by Will Moore <will@…>

(In [ad4086b4f4eac03cabb7fb24a47663f0243d0d75/ome.git]) Fix bug in switching user. See #7692

comment:3 Changed 12 years ago by jburel

  • Sprint changed from 2012-01-03 (5) to 2012-01-17 (6)

Moved from sprint 2012-01-03 (5)

comment:4 Changed 12 years ago by atarkowska

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

fixed in gh/will-moore/sprint6-web-backlog

comment:5 Changed 12 years ago by atarkowska

comment:6 Changed 12 years ago by Aleksandra Tarkowska <atarkowska@…>

  • Remaining Time set to 0

(In [110965e3fd45386e6a1c7c61a0f1f4b533d2b432/ome.git] on branch develop) fixing switch user attribute error, close #7692

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

We're Hiring!