From 60ee47624583411db004bf3601491320dabe588e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20G=C3=BCtlein?= Date: Tue, 27 Apr 2010 14:57:25 +0200 Subject: check for invalid result_uri --- lib/rest_client_wrapper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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" -- cgit v1.2.3