reschke commented on code in PR #2258: URL: https://github.com/apache/jackrabbit-oak/pull/2258#discussion_r2068755029
########## oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/ReadWriteNamespaceRegistry.java: ########## @@ -71,11 +71,13 @@ public void registerNamespace(String prefix, String uri) // sanity check for legal namespace names (excluding the "internal" // namespace, see OAK-74) - if (!NamespaceConstants.NAMESPACE_REP.equals(uri)) { - if (!uri.contains(":")) { + if (!NamespaceConstants.NAMESPACE_REP.equals(uri) && !uri.contains(":")) { + if (Boolean.parseBoolean(System.getProperty("oak.allowInvalidNamespaceUris", "true"))) { Review Comment: @kwin - can we move this into a static variable and a short comment about what the system property does? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org