Author: fmui
Date: Sun Mar 17 08:57:22 2013
New Revision: 1457399
URL: http://svn.apache.org/r1457399
Log:
fixed Allowable Action check in XMLConverter
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLConverter.java
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLConverter.java
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLConverter.java?rev=1457399&r1=1457398&r2=1457399&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLConverter.java
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLConverter.java
Sun Mar 17 08:57:22 2013
@@ -863,12 +863,12 @@ public class XMLConverter {
if (source.getAllowableActions() != null) {
for (Action action : Action.values()) {
- if (action == Action.CAN_CREATE_ITEM && cmisVersion ==
CmisVersion.CMIS_1_0) {
- LOG.warn("Receiver only understands CMIS 1.0 but the
Allowable Actions contain the canCreateItem action. "
- + "The canCreateItem action has been removed from
the Allowable Actions.");
- continue;
- }
if (source.getAllowableActions().contains(action)) {
+ if (action == Action.CAN_CREATE_ITEM && cmisVersion ==
CmisVersion.CMIS_1_0) {
+ LOG.warn("Receiver only understands CMIS 1.0 but the
Allowable Actions contain the canCreateItem action. "
+ + "The canCreateItem action has been removed
from the Allowable Actions.");
+ continue;
+ }
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS,
action.value(), Boolean.TRUE);
}
}