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

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

BUG:NoneType' object has no attribute 'getOwner'

Reported by: omero-qa Owned by: atarkowska
Priority: critical Milestone: OMERO-4.4
Component: Web Version: n.a.
Keywords: testing,phase1 Cc: web-team@…, rkferguson
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-06-19 (17)

Description (last modified by atarkowska)

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

Comment: Trying to view shared image in data tree of user-6 read-only-1 after user-2 read-only-1 had shared it with user-6. Note - still logged in as user-2 just wanted t make sure share was visible.

TemplateSyntaxError at /webclient/load_public/2435/

Caught AttributeError while rendering: 'NoneType' object has no attribute 'getOwner'

Request Method: 	GET
Request URL: 	http://10.34.2.150:8000/webclient/load_public/2435/?view=icon
Django Version: 	1.3.1
Exception Type: 	TemplateSyntaxError
Exception Value: 	

Caught AttributeError while rendering: 'NoneType' object has no attribute 'getOwner'

Exception Location: 	/Users/rkferguson/Documents/openmicroscopy/dist/lib/python/omero/gateway/__init__.py in getOwner, line 1147
Python Executable: 	/usr/local/bin/python
Python Version: 	2.6.1
Python Path: 	

['/Users/rkferguson/Documents/openmicroscopy/components/tools/OmeroWeb/omeroweb',
 '/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
 '/usr/local/lib/python2.6/site-packages/pip-1.1-py2.6.egg',
 '/usr/local/src/tables',
 '/usr/local/Cellar/zeroc-ice33/3.3/python',
 '/Users/rkferguson/Documents/openmicroscopy/dist/lib/python',
 '/Users/rkferguson/Documents/openmicroscopy/components/tools/OmeroWeb',
 '/usr/local/lib/python26.zip',
 '/usr/local/lib/python2.6',
 '/usr/local/lib/python2.6/plat-darwin',
 '/usr/local/lib/python2.6/plat-mac',
 '/usr/local/lib/python2.6/plat-mac/lib-scriptpackages',
 '/usr/local/Extras/lib/python',
 '/usr/local/lib/python2.6/lib-tk',
 '/usr/local/lib/python2.6/lib-old',
 '/usr/local/lib/python2.6/lib-dynload',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
 '/usr/local/lib/python2.6/site-packages',
 '/usr/local/lib/python2.6/site-packages/PIL']

Server time: 	Wed, 23 May 2012 14:13:19 +0100


Template error

In template /Users/rkferguson/Documents/openmicroscopy/components/tools/OmeroWeb/omeroweb/webclient/templates/webclient/public/share_content_icon.html, error at line 70

Caught AttributeError while rendering: 'NoneType' object has no attribute 'getOwner'

60 	
61 	{% if share.imgSize %}
62 	
63 	<div id="toolbar" class="toolbar_noborder"></div>
64 	<div class="clear"> </div>
65 	
66 	<ul id="dataIcons">
67 	{% for c in share.imageInShare %}
68 	<li id="image_icon-{{ c.id }}" title="{{ c.name }}" {% if not c.canEdit %}class="editonly"{% else %}class="readonly"{% endif %}>
69 	{% if share.share.isOwned %}
70 	<img id="{{ c.id }}" src="{% url render_thumbnail c.id %}" alt="image" title="{{ c.name }}, owned by {{ c.getOwner.getNameWithInitial }}"/>
71 	{% else %}
72 	<img id="{{ c.id }}" src="{% url render_thumbnail c.id share.share.id %}" alt="image" title="{{ c.name }}, owned by {{ c.getOwner.getNameWithInitial }}"/>
73 	{% endif %}
74 	</li>
75 	{% endfor %}
76 	</ul>
77 	
78 	{% else %}
79 	<p>{% trans "No data." %}</p>
80 	{% endif %}

/Users/rkferguson/Documents/openmicroscopy/dist/lib/python/django/core/handlers/base.py in get_response




                        for middleware_method in self._view_middleware:

                            response = middleware_method(request, callback, callback_args, callback_kwargs)

                            if response:

                                break

                    if response is None:

                        try:



                            response = callback(request, *callback_args, **callback_kwargs)

    ...



                        except Exception, e:

                            # If the view raised an exception, run it through exception

                            # middleware, and if the exception middleware returns a

                            # response, use that. Otherwise, reraise the exception.

                            for middleware_method in self._exception_middleware:

                                response = middleware_method(request, e)

Change History (9)

comment:1 Changed 12 years ago by atarkowska

  • Component changed from from QA to Web
  • Milestone changed from Unscheduled to OMERO-Beta4.4
  • Priority changed from minor to critical
  • Sprint set to 2012-06-05 (16)

comment:2 Changed 12 years ago by atarkowska

  • Keywords testing phase1 added

comment:3 Changed 12 years ago by jburel

  • Sprint changed from 2012-06-05 (16) to 2012-06-19 (17)

Moved from sprint 2012-06-05 (16)

comment:4 Changed 12 years ago by atarkowska

  • Description modified (diff)

comment:5 Changed 12 years ago by atarkowska

Exactly the same problem in #9084

comment:6 Changed 12 years ago by atarkowska

  • Status changed from new to accepted

comment:7 Changed 12 years ago by atarkowska

  • Remaining Time set to 0.1

comment:8 Changed 12 years ago by atarkowska

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

comment:9 Changed 12 years ago by rkferguson

Retested - no problem found.

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

We're Hiring!