Jaime Porras López created CMIS-714:
---------------------------------------
Summary: Update Smoke Test: always fail with empty properties
Key: CMIS-714
URL: https://issues.apache.org/jira/browse/CMIS-714
Project: Chemistry
Issue Type: Bug
Components: opencmis-tck
Affects Versions: OpenCMIS 0.10.0
Reporter: Jaime Porras López
Update a docuemnt with an empty set of properties is tried as part of the
Update Smoke Test. This is always failing because the OpenCMIS client is
checking that the set ois not empty. So the exception is always thrown in the
OpenCMIS client, not in the server.
{code:title=Update Smoke Test code}
org.apache.chemistry.opencmis.tck.tests.crud.UpdateSmokeTest.updateDocument(Session,
Folder)
...
// update nothing
try {
properties = new HashMap<String, Object>();
doc2.updateProperties(properties, false);
} catch (Exception e) {
addResult(createResult(WARNING,
"updateProperties without property changes returned an
error: " + e.getMessage(), e, false));
}
...
{code}
{code:title=OpenCMIS client code}
org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(Map<String,
?>, boolean)
...
if (properties == null || properties.isEmpty()) {
throw new IllegalArgumentException("Properties must not be empty!");
}
...
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira