jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1159274 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Thu, 18 Aug 2011 15:05:34 GMT
Author: mduerig
Date: Thu Aug 18 15:05:34 2011
New Revision: 1159274

URL: http://svn.apache.org/viewvc?rev=1159274&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)
- deny registration of name space prefix starting with xml

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1159274&r1=1159273&r2=1159274&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Thu Aug 18 15:05:34 2011
@@ -435,6 +435,9 @@ public class RepositoryServiceImpl exten
                 throw new NamespaceException("Cannot register reserved namespace: " + prefix);
             }
         }
+        if (prefix.length() > 3 && prefix.toLowerCase().startsWith("xml")) {
+            throw new NamespaceException("Cannot register reserved namespace: " + prefix);
+        }
 
         Paths.addKnownNamespace(prefix, uri);
         namespaces.setMapping(prefix, uri);



Mime
View raw message