about summary refs log tree commit diff
path: root/app/services/process_interaction_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-05-12 16:47:55 +0200
committerGitHub <noreply@github.com>2017-05-12 16:47:55 +0200
commit43d754eb42e119f4852170988e04a4cb9c4ecb64 (patch)
tree0ae48ee2ce5757f65c06139711c3d34b57b33468 /app/services/process_interaction_service.rb
parent2cc0d56652906e5c021aafe66dd50d5983399c37 (diff)
Fix not rejecting remote URIs when parsing out local IDs (#3012)
Diffstat (limited to 'app/services/process_interaction_service.rb')
-rw-r--r--app/services/process_interaction_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb
index 16eac2353..bc8361510 100644
--- a/app/services/process_interaction_service.rb
+++ b/app/services/process_interaction_service.rb
@@ -123,7 +123,9 @@ class ProcessInteractionService < BaseService
   end
 
   def status(xml)
-    Status.find(TagManager.instance.unique_tag_to_local_id(activity_id(xml), 'Status'))
+    uri = activity_id(xml)
+    return nil unless TagManager.instance.local_id?(uri)
+    Status.find(TagManager.instance.unique_tag_to_local_id(uri, 'Status'))
   end
 
   def activity_id(xml)