diff --git a/hydra-access-controls/app/models/hydra/access_controls/permission.rb b/hydra-access-controls/app/models/hydra/access_controls/permission.rb index 0f589772..cdfe1ada 100644 --- a/hydra-access-controls/app/models/hydra/access_controls/permission.rb +++ b/hydra-access-controls/app/models/hydra/access_controls/permission.rb @@ -83,7 +83,7 @@ def build_agent(name, type) # however in order to ensure backward compatibility with already recorded values we are normalizing # the fragment here. See https://developer.mozilla.org/en-US/docs/Web/API/URL/hash def build_agent_resource(prefix, name) - [Agent.new(::RDF::URI.new("#{prefix}##{URI.encode(name)}").normalize!)] + [Agent.new(::RDF::URI.new("#{prefix}##{name}").normalize!)] end def build_access(access)