jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1874685 - /jackrabbit/commons/filevault/trunk/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/impl/util/DocumentViewXmlContentHandler.java
Date Mon, 02 Mar 2020 08:45:22 GMT
Author: kwin
Date: Mon Mar  2 08:45:22 2020
New Revision: 1874685

URL: http://svn.apache.org/viewvc?rev=1874685&view=rev
Log:
JCRVLT-409 better error message in case filename prefix is not a proper
XML namespace

Modified:
    jackrabbit/commons/filevault/trunk/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/impl/util/DocumentViewXmlContentHandler.java

Modified: jackrabbit/commons/filevault/trunk/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/impl/util/DocumentViewXmlContentHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/commons/filevault/trunk/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/impl/util/DocumentViewXmlContentHandler.java?rev=1874685&r1=1874684&r2=1874685&view=diff
==============================================================================
--- jackrabbit/commons/filevault/trunk/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/impl/util/DocumentViewXmlContentHandler.java
(original)
+++ jackrabbit/commons/filevault/trunk/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/impl/util/DocumentViewXmlContentHandler.java
Mon Mar  2 08:45:22 2020
@@ -169,8 +169,8 @@ public class DocumentViewXmlContentHandl
                         // how to get name of root node?
                         name = getExpandedName(rootNodeName);
                     }
-                } catch (IllegalNameException|NamespaceException e) {
-                    throw new SAXException("Given root node name '" + rootNodeName + "' (implicitly
given via filename) cannot be resolved. The prefix used in the filename must be defined in
the XML as well!", e);
+                } catch (IllegalNameException|NamespaceException|IllegalArgumentException
e) {
+                    throw new SAXException("Given root node name '" + rootNodeName + "' (implicitly
given via filename) cannot be resolved. The prefix used in the filename must be declared as
XML namespace in the child docview XML as well!", e);
                 }
         } else {
             name = NameFactoryImpl.getInstance().create(uri, getNormalizedName(localName));



Mime
View raw message