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

Opened 10 years ago

Closed 8 years ago

BUG: Delete doesn't remove multi-copies from jsTree

Reported by: rkferguson Owned by: wmoore
Priority: major Milestone: OMERO-5.2.3
Component: Web Version: 4.4.9
Keywords: BACKPORT-4.4 Cc: ux@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description (last modified by rkferguson)

Using howe user-4 read-only-1

Doing cutting and deleting in Insight while Web open. Deleted image in Insight that was selected in Web - went back to Web and tried to move it in Web (not deliberately knowing it was deleted). Got

"404 Error
Url: /webclient/metadata_details/image/8705/
We are sorry, but that Image (id:8705) does not exist, or if it does, you have no permission to see it."
dialog warning - tried to select another image - failed with following error message.

Seemed to have crashed but when returned to it later was active again (had switched network connection, so may have automatically re-connected)

A bit of a fringe case but error handling may be relevant elsewhere.

Traceback (most recent call last):

  File "/home/hudson/hudson/workspace/OMERO-merge-stable/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-stable/src/dist/lib/python/omeroweb/decorators.py", line 377, in wrapped
    retval = f(request, *args, **kwargs)

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

  File "/home/hudson/hudson/workspace/OMERO-merge-stable/src/dist/lib/python/omeroweb/webclient/views.py", line 1588, in manage_action_containers
    rv = manager.move(parent,destination)

  File "/home/hudson/hudson/workspace/OMERO-merge-stable/src/dist/lib/python/omeroweb/webclient/controller/container.py", line 946, in move
    self.conn.deleteObjectDirect(up_dsl._obj)

AttributeError: 'NoneType' object has no attribute '_obj'


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'destination': [u'dataset-1252'], u'parent': [u'dataset-1251']}>,
COOKIES:{'sessionid': '358889286b2d533c0d9fb25c2412512f'},
META:{'CONTENT_LENGTH': '44',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
 'DOCUMENT_ROOT': '/var/www',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/json, text/javascript, */*; q=0.01',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=358889286b2d533c0d9fb25c2412512f',
 'HTTP_HOST': 'howe.openmicroscopy.org.uk',
 'HTTP_ORIGIN': 'http://howe.openmicroscopy.org.uk',
 'HTTP_REFERER': 'http://howe.openmicroscopy.org.uk/webclient/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.71 (KHTML, like Gecko) Version/6.1 Safari/537.71',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH': '/usr/local/bin:/usr/bin:/bin',
 'PATH_INFO': u'/webclient/action/move/image/8703/',
 'PATH_TRANSLATED': '/var/www/omero.fcgi/webclient/action/move/image/8703/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.34.0.135',
 'REMOTE_PORT': '57743',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/webclient/action/move/image/8703/',
 '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 0x7f41bd254c10>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x7f41bd254650>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>

Change History (9)

comment:1 Changed 10 years ago by rkferguson

  • Description modified (diff)
  • Summary changed from BUG: Crash trying use Web client after deleting image in Insight to BUG: Error message trying use Web client after deleting image in Insight

comment:2 Changed 10 years ago by rkferguson

Getting same issue when I delete the copy of an image - the original image is also deleted, but remains visible in the dataset until refreshed. If you click on the original (now deleted) without refreshing you get the same error message.

This is probably a more common case than the one above.

comment:3 Changed 9 years ago by wmoore

  • Summary changed from BUG: Error message trying use Web client after deleting image in Insight to BUG: Delete doesn't remove multi-copies from jsTree

comment:4 Changed 9 years ago by wmoore

  • Milestone changed from 5.1.2 to 5.1.3

comment:5 Changed 9 years ago by jburel

  • Cc ux@… added
  • Milestone changed from 5.1.4 to 5.2.0

Moving to 5.2 so it is covered by the jstree work and testing

comment:6 Changed 9 years ago by jamoore

  • Milestone changed from 5.2.0 to OMERO-5.2.0

Splitting due to milestone decoupling.

comment:7 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.1 to OMERO-5.2.2

Milestone OMERO-5.2.1 deleted

comment:8 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.2 to OMERO-5.2.1

Milestone OMERO-5.2.2 deleted

comment:9 Changed 8 years ago by jburel

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

no longer valid
Tested this morning
created a dataset, added to 2 projects. Delete the dataset.
It is removed from the tree.

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

We're Hiring!