jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r295030 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java
Date Wed, 05 Oct 2005 16:33:59 GMT
Author: tripod
Date: Wed Oct  5 09:33:51 2005
New Revision: 295030

URL: http://svn.apache.org/viewcvs?rev=295030&view=rev
Log:
JCR-240 redefinition of xml-namespace mapping should not be allowed

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java?rev=295030&r1=295029&r2=295030&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java
Wed Oct  5 09:33:51 2005
@@ -81,6 +81,10 @@
                 || QName.NS_DEFAULT_URI.equals(uri)) {
             throw new NamespaceException("default namespace is reserved and can not be changed");
         }
+        // special case: xml namespace
+        if (uri.equals(QName.NS_XML_URI)) {
+            throw new NamespaceException("xml namespace is reserved and can not be changed.");
+        }
         // special case: prefixes xml*
         if (prefix.toLowerCase().startsWith(QName.NS_XML_PREFIX)) {
             throw new NamespaceException("reserved prefix: " + prefix);



Mime
View raw message