chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Potts (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CMIS-399) Empty custom CMIS properties on custom document types result in faulty XML
Date Tue, 06 Dec 2011 00:02:41 GMT

     [ https://issues.apache.org/jira/browse/CMIS-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeff Potts resolved CMIS-399.
-----------------------------

    Resolution: Cannot Reproduce

I cannot reproduce this problem as reported, but I highly suspect the reporter is seeing CMIS-481,
which is when you try to set a prop to None for any prop type other than String.
                
> Empty custom CMIS properties on custom document types result in faulty XML
> --------------------------------------------------------------------------
>
>                 Key: CMIS-399
>                 URL: https://issues.apache.org/jira/browse/CMIS-399
>             Project: Chemistry
>          Issue Type: Bug
>          Components: python-cmislib
>    Affects Versions: OpenCMIS 0.4.0
>         Environment: This behaviour has been replicated on several systems including
CentOS 5, Windows 7, Ubuntu 10.04 and Fedora 15.
> python version 2.6
> cmislib version 0.4.1
>            Reporter: Bjarki Gudlaugsson
>            Assignee: Jeff Potts
>              Labels: cmis, property, python, xml
>
> When calling createDocument on CmisFolder and submitting an empty property (e.g. custom:custom_property)
for a custom document type (e.g. custom:custom_document_type) the resulting xml looks like
this:
> <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
>   <cmis:value>D:custom:custom_document_type</cmis:value>
> </cmis:propertyId>
> <cmis:propertyString propertyDefinitionId="custom:custom_property">
>   <cmis:value></cmis:value>
> </cmis:propertyString>
> It is invalid and it results in the CMIS server (Alfresco in my case) not setting any
of the submitted custom properties. It should look like this (and this is how the Java version
does it):
> <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
>   <cmis:value>D:custom:custom_document_type</cmis:value>
> </cmis:propertyId>
> <cmis:propertyString propertyDefinitionId="custom:custom_property" />

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message