chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <florian.muel...@alfresco.com>
Subject Re: atom:title and cmis:name
Date Thu, 23 Sep 2010 12:39:40 GMT
Hi Florent,

That's a bug. I'll fix it.


- Florian

On 23/09/2010 13:23, Florent Guillaume wrote:
> Hi,
>
> In AtomEntryParser.parseEntry the atom title is added to the
> properties using (simplified):
>          // overwrite cmis:name with Atom title
>          if (atomTitle != null)  {
>              PropertyString nameProperty = new
> PropertyStringImpl(PropertyIds.NAME, atomTitle);
>              ((PropertiesImpl)
> fObject.getProperties()).addProperty(nameProperty);
>          }
>
> and addProperty does:
>          propertyList.add(property);
>          properties.put(property.getId(), property);
>
> which means that if a cmis:name was already specified in the
> properties (like the swing client does), the map is correctly
> overwritten but the list sees it added at the end, not replaced.
>
> Is this expected?
>
> Florent
>


Mime
View raw message