commit/galaxy-central: dan: Add status code 404 to response in tool_runner when a tool does not exist.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/0f9ac20283c6/ Changeset: 0f9ac20283c6 User: dan Date: 2013-10-10 17:45:42 Summary: Add status code 404 to response in tool_runner when a tool does not exist. Affected #: 1 file diff -r 0226b3a74e2a64ddca1ce166de3d7c491315c4a5 -r 0f9ac20283c65288daa887508594ae67049047d0 lib/galaxy/webapps/galaxy/controllers/tool_runner.py --- a/lib/galaxy/webapps/galaxy/controllers/tool_runner.py +++ b/lib/galaxy/webapps/galaxy/controllers/tool_runner.py @@ -61,6 +61,7 @@ if not tool: log.error( "index called with tool id '%s' but no such tool exists", tool_id ) trans.log_event( "Tool id '%s' does not exist" % tool_id ) + trans.response.status = 404 return "Tool '%s' does not exist, kwd=%s " % ( tool_id, kwd ) if tool.require_login and not trans.user: message = "You must be logged in to use this tool." 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)
-
commits-noreply@bitbucket.org