commit/galaxy-central: dan: External display applications will now return HTTP not found for non-existant parameters/datasets when requested.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/94a58c2fbf39/ changeset: 94a58c2fbf39 user: dan date: 2011-11-15 18:11:09 summary: External display applications will now return HTTP not found for non-existant parameters/datasets when requested. affected #: 1 file diff -r 04acee047c2c585730e9a8266de81d25d5c25d7f -r 94a58c2fbf39ed76218d4af0ac30cb286b61541c lib/galaxy/web/controllers/dataset.py --- a/lib/galaxy/web/controllers/dataset.py +++ b/lib/galaxy/web/controllers/dataset.py @@ -806,7 +806,11 @@ #in case some display app wants all files to be in the same 'directory', #data can be forced to param, but not the other way (no filename for other direction) #get param name from url param name - action_param = display_link.get_param_name_by_url( action_param ) + try: + action_param = display_link.get_param_name_by_url( action_param ) + except ValueError, e: + log.debug( e ) + return paste.httpexceptions.HTTPNotFound( str( e ) ) value = display_link.get_param_value( action_param ) assert value, "An invalid parameter name was provided: %s" % action_param assert value.parameter.viewable, "This parameter is not viewable." Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket