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

Opened 13 years ago

Closed 13 years ago

Bug: 404 rather than 500 when original file does not exist

Reported by: cxallan Owned by: atarkowska
Priority: minor Milestone: OMERO-Beta4.3.3
Component: Web Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-10-13 (1)

Description (last modified by cxallan)

When using an original file that does not exist, probably a 404 should be returned rather than a deep exception, an HTTP 500 and the submit dialog for the following URL:

.../webclient/archived_files/download/<non_existent_original_file_id>/

Example exception:

Traceback (most recent call last):

  File "/home/omero/ome.git/dist/lib/python/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/omero/ome.git/dist/lib/python/omeroweb/webclient/views.py", line 174, in wrapped
    return f(request, *args, **kwargs)

  File "/home/omero/ome.git/dist/lib/python/omeroweb/webclient/views.py", line 1927, in archived_files
    files = list(image.getArchivedFiles())

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

Change History (4)

comment:1 Changed 13 years ago by cxallan

  • Description modified (diff)

comment:2 Changed 13 years ago by atarkowska

  • Status changed from new to accepted

comment:3 Changed 13 years ago by atarkowska

  • Remaining Time set to 0.2

comment:4 Changed 13 years ago by Aleksandra Tarkowska <atarkowska@…>

  • Remaining Time changed from 0.2 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed
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.69054 sec.)

We're Hiring!