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

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

BUG:Adding comment raised AttributeError

Reported by: omero-qa Owned by: atarkowska
Priority: critical Milestone: OMERO-4.4
Component: Web Version: n.a.
Keywords: testing,phase1 Cc: jamoore, bpindelski, rleigh
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-05-22 (15)

Description

http://qa.openmicroscopy.org.uk/qa/feedback/4325/

Comment: Trying to add comment to a discussion that I have started.

Traceback (most recent call last):

  File "/home/hudson/hudson/workspace/OMERO-merge-blue/src/dist/lib/python/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/hudson/hudson/workspace/OMERO-merge-blue/src/dist/lib/python/omeroweb/decorators.py", line 313, in wrapped
    retval = f(request, *args, **kwargs)

  File "/home/hudson/hudson/workspace/OMERO-merge-blue/src/dist/lib/python/omeroweb/decorators.py", line 347, in wrapper
    context = f(request, *args, **kwargs)

  File "/home/hudson/hudson/workspace/OMERO-merge-blue/src/dist/lib/python/omeroweb/webclient/views.py", line 1090, in annotate_comment
    textAnn = manager.createCommentAnnotations(content, oids, well_index=index)

  File "/home/hudson/hudson/workspace/OMERO-merge-blue/src/dist/lib/python/omeroweb/webclient/controller/container.py", line 497, in createCommentAnnotations
    l_ann = getattr(omero.model, t+"AnnotationLinkI")()

AttributeError: 'module' object has no attribute 'ShareAnnotationLinkI'


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'comment': [u'foobar'], u'share': [u'567']}>,
COOKIES:{'sessionid': '55add463a03c76d71a59b35c787afe70'},
META:{'CONTENT_LENGTH': '24',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
 'DOCUMENT_ROOT': '/var/www',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': '*/*',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=55add463a03c76d71a59b35c787afe70',
 'HTTP_HOST': 'howe.openmicroscopy.org.uk',
 'HTTP_ORIGIN': 'http://howe.openmicroscopy.org.uk',
 'HTTP_REFERER': 'http://howe.openmicroscopy.org.uk/webclient/public/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH': '/usr/local/bin:/usr/bin:/bin',
 'PATH_INFO': u'/webclient/annotate_comment/',
 'PATH_TRANSLATED': '/var/www/omero.fcgi/webclient/annotate_comment/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.12.2.185',
 'REMOTE_PORT': '53047',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/webclient/annotate_comment/',
 'SCRIPT_FILENAME': '/var/www/omero.fcgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '134.36.65.228',
 'SERVER_ADMIN': 'webmaster@localhost',
 'SERVER_NAME': 'howe.openmicroscopy.org.uk',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.14 (Ubuntu) Server at howe.openmicroscopy.org.uk Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)',
 'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x4752e50>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x2761050>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>

Change History (10)

comment:1 Changed 7 years ago by atarkowska

  • Milestone changed from Unscheduled to OMERO-Beta4.4
  • Priority changed from minor to critical
  • Sprint set to 2012-05-22 (15)

comment:2 Changed 7 years ago by atarkowska

  • Cc r.leigh@… added

The same error happened to Roger Feedback 4321

Error after clicking on "Add comment" when adding a comment to blazej's tag.
Logged in as roger
Clicked on "Public" tag
Chose "567" tag, with "Something" as the description
Added comment "Comment on tag"
Clicked "Add Comment"

comment:3 Changed 7 years ago by atarkowska

  • Cc atarkowska bpindelski rleigh added; bpindelski@… r.leigh@… removed
  • Owner changed from atarkowska to jmoore

Josh: it looks like ShareAnnotationLinkI is not in FactoryMap?, am I missing something?

comment:4 Changed 7 years ago by jmoore

  • Cc jmoore added; atarkowska removed
  • Owner changed from jmoore to atarkowska

There is no ShareAnnotationLink only a SessionAnnotationLink (session is the superclass of share)

comment:5 Changed 7 years ago by atarkowska

  • Remaining Time set to 0.3

Sorry for that I should use IShare.addComment :-) was confused

comment:6 Changed 7 years ago by atarkowska

  • Status changed from new to accepted

comment:7 Changed 7 years ago by atarkowska

  • Remaining Time changed from 0.3 to 0
  • Status changed from accepted to closed

comment:8 Changed 7 years ago by Aleksandra Tarkowska <A.Tarkowska@…>

  • Resolution set to fixed

(In [a9c7b2d5e3645718ba4359151ad003d53fff81f5/ome.git] on branch develop) fixing commenting on share, close #8737

comment:9 Changed 7 years ago by atarkowska

  • Component changed from from QA to Web

comment:10 Changed 7 years ago by atarkowska

  • Keywords testing phase1 added
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.81904 sec.)

We're Hiring!