Konrad Windszus created OAK-11683:
-------------------------------------
Summary: Prevent registration of invalid namespace URIs to prefixes
Key: OAK-11683
URL: https://issues.apache.org/jira/browse/OAK-11683
Project: Jackrabbit Oak
Issue Type: Improvement
Reporter: Konrad Windszus
In OAK-10304 additional logging was added whenever
{{NamespaceRegistry.registerNamespace(...)}} was called with an invalid URI.
However registering such invalid mapping was still supported and was leading to
subtle issues whenever the expanded name form was used as JCR method argument
(OAK-9584).
To prevent this violation of the JCR spec (i.e. only supporting using qualified
node names for illegal namespace URIs) I would opt for explicitly throwing an
exception whenever an invalid URI is registered as namespace.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)