[
https://issues.apache.org/jira/browse/CMIS-714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabriele Columbro updated CMIS-714:
-----------------------------------
Fix Version/s: (was: OpenCMIS 1.0.0)
OpenCMIS 0.12.0
> 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
> Assignee: Florian Müller
> Fix For: OpenCMIS 0.12.0
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)