[
https://issues.apache.org/jira/browse/CMIS-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry updated CMIS-299:
------------------------
I use
Alfresco Community 3.4
AtomPub binding
And when I set empty list or null directly to working copy property the
property sets to empty value (for working copy) but checkIn restore property
value from previous version to the new version. And this problem happes only in
case of empty list or null. In case of non empty list it works fine.
> checkIn method don't set empty multiple value property
> --------------------------------------------------------
>
> Key: CMIS-299
> URL: https://issues.apache.org/jira/browse/CMIS-299
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-client
> Affects Versions: 0.2.0-incubating
> Environment: used with alfresco repository
> Reporter: Dmitry
>
> I try to checkIn working copy object and set multiple value property with
> empty value
> But property store not empty value from previous version
> I have tried to set null value of property and empty list but in any case I
> have gotten same result.
> Document checkIn = (Document)session.getObject(checkOut.checkIn(true, new
> HashMap(){{put("avetti:customdtos",null);}}, null, "Checkin"));
> and
> Document checkIn = (Document)session.getObject(checkOut.checkIn(true, new
> HashMap(){{put("avetti:customdtos",new ArrayList());}}, null, "Checkin"));
> I have tried to set property to Working copy directly
> And then do checkIn
> checkOut.updateProperties(new HashMap(){{put("avetti:customdtos",new
> ArrayList());}});
> or
> checkOut.updateProperties(new HashMap(){{put("avetti:customdtos",null);}});
> and
> Document checkIn = (Document)session.getObject(checkOut.checkIn(true, null,
> null, "Checkin"));
> But result have not changed
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.