chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fguilla...@apache.org
Subject svn commit: r921324 - /incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java
Date Wed, 10 Mar 2010 12:08:44 GMT
Author: fguillaume
Date: Wed Mar 10 12:08:44 2010
New Revision: 921324

URL: http://svn.apache.org/viewvc?rev=921324&view=rev
Log:
CMIS-151: fix parsing of cmis:aclCapability and unknown tags in service document

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java?rev=921324&r1=921323&r2=921324&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/stax/ServiceDocumentReader.java
Wed Mar 10 12:08:44 2010
@@ -14,6 +14,7 @@
  * Authors:
  *     Bogdan Stefanescu, Nuxeo
  *     Florent Guillaume, Nuxeo
+ *     Michael Durig, Day
  */
 package org.apache.chemistry.atompub.client.stax;
 
@@ -155,8 +156,14 @@ public abstract class ServiceDocumentRea
                 readRepositorySpecificInformation(ctx, reader);
             } else if (CMIS.CHANGES_ON_TYPE.equals(name)) {
                 changeLogBaseTypes.add(BaseType.get(reader.getElementText()));
+            } else if (CMIS.ACL_CAPABILITY.equals(name)) {
+                // TODO implement ACL capabilities
             } else {
-                map.put(name.getLocalPart(), reader.getElementText());
+                try {
+                    map.put(name.getLocalPart(), reader.getElementText());
+                } catch (XMLStreamException e) {
+                    // ignore unknown tag containing non-text
+                }
             }
         }
         if (changeLogBaseTypes.isEmpty()) {



Mime
View raw message