reschke commented on code in PR #2050: URL: https://github.com/apache/jackrabbit-oak/pull/2050#discussion_r1938456067
########## oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/impl/GlobalNameMapper.java: ########## @@ -67,10 +68,15 @@ protected static boolean isHiddenName(String name) { protected static boolean isExpandedName(String name) { if (name.startsWith("{")) { int brace = name.indexOf('}', 1); - return brace != -1 && name.substring(1, brace).indexOf(':') != -1; - } else { - return false; + if (brace != -1) { + String namespace = name.substring(1, brace); + // the empty namespace and "internal" are valid as well, otherwise it always contains a colon (as it is a URI) Review Comment: As most people do not understand the difference between URI and "relative reference" we may want to refer to Section 3 of RFC 3986. -- 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