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

Opened 8 years ago

Closed 8 years ago

Bug:Crash on delete tag

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

Description

When I was deleting the tag for the second time in a read only group the following happened.

Traceback (most recent call last):

File "/home/omero/OMERO.server-4.3.0-DEV-e5f99ad4/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-e5f99ad4/lib/python/omeroweb/webclient/views.py", line 157, in wrapped

return f(request, *args, kwargs)

File "/home/omero/OMERO.server-4.3.0-DEV-e5f99ad4/lib/python/omeroweb/webclient/views.py", line 1512, in manage_action_containers

manager.createTagAnnotation(o_type, tag, desc)

File "/home/omero/OMERO.server-4.3.0-DEV-e5f99ad4/lib/python/omeroweb/webclient/controller/container.py", line 603, in createTagAnnotation

t_ann = getattr(self.conn, "get"+otype.title()+"AnnotationLink?")(selfobject.id, ann.id.val)

AttributeError?: 'OmeroWebGateway?' object has no attribute 'getImageAnnotationLink'

<WSGIRequest
GET:<QueryDict: {u'url': [u'/webclient/metadata_details/image/11666/']}>,
POST:<QueryDict: {u'tag': [u'mitotic'], u'description': [u'']}>,
COOKIES:{'sessionid': 'da4c3ea370993d2e3ed16336641e7e45'},
META:{'CONTENT_LENGTH': '24',

'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=da4c3ea370993d2e3ed16336641e7e45',
'HTTP_HOST': 'gretzky.openmicroscopy.org.uk',
'HTTP_ORIGIN': 'http://gretzky.openmicroscopy.org.uk',
'HTTP_REFERER': 'http://gretzky.openmicroscopy.org.uk/webclient/action/newtag/image/11666/?url=/webclient/metadata_details/image/11666/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit?/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4',
'PATH': '/usr/local/bin:/usr/bin:/bin',
'PATH_INFO': u'/webclient/action/addtag/image/11666/',
'PATH_TRANSLATED': '/var/www/omero.fcgi/webclient/action/addtag/image/11666/',
'QUERY_STRING': 'url=/webclient/metadata_details/image/11666/',
'REMOTE_ADDR': '10.12.2.219',
'REMOTE_PORT': '50532',
'REQUEST_METHOD': 'POST',
'REQUEST_URI': '/webclient/action/addtag/image/11666/?url=/webclient/metadata_details/image/11666/',
'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 0x4871d10>,
'wsgi.input': <flup.server.fcgi_base.InputStream? object at 0x43e0110>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>

Change History (3)

comment:1 Changed 8 years ago by wmoore

  • Cc atarkowska added; wmoore removed
  • Component changed from General to Web
  • Owner changed from atarkowska to wmoore
  • Sprint set to 2011-05-05 (11)

comment:2 Changed 8 years ago by wmoore

  • Status changed from new to accepted

comment:3 Changed 8 years ago by Will Moore <will@…>

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

(In [c162467c6995d940feb7c18bd14a017f09c27312/ome.git] on branch develop) Fix bug with trying to add existing tag in web. Closes #5035

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

We're Hiring!