summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-04-27 14:57:25 +0200
committerMartin Gütlein <martin.guetlein@gmail.com>2010-04-27 14:57:25 +0200
commit60ee47624583411db004bf3601491320dabe588e (patch)
treef6373b31a29d147616fb3f59ca56eb3d312339ab /lib
parent9f61630a6fadb0f4050eff8912f6c250924f6055 (diff)
check for invalid result_uri
Diffstat (limited to 'lib')
-rw-r--r--lib/rest_client_wrapper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rest_client_wrapper.rb b/lib/rest_client_wrapper.rb
index 194a742..7b3e148 100644
--- a/lib/rest_client_wrapper.rb
+++ b/lib/rest_client_wrapper.rb
@@ -102,6 +102,8 @@ module OpenTox
LOGGER.debug "result is a task '"+task.uri.to_s+"', wait for completion"
task.wait_for_completion
raise task.description unless task.completed?
+ do_halt 502,"task resultURI is invalid: '"+task.resultURI.to_s+
+ "'",task.uri,nil unless task.resultURI and Utils.is_uri?(task.resultURI)
res = WrapperResult.new(task.resultURI)
LOGGER.debug "task resultURI "+res.to_s
res.content_type = "text/uri-list"