chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Elslip (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-631) Unable to clear values for properties with ID data type
Date Thu, 28 Feb 2013 00:31:12 GMT
Jon Elslip created CMIS-631:
-------------------------------

             Summary: Unable to clear values for properties with ID data type
                 Key: CMIS-631
                 URL: https://issues.apache.org/jira/browse/CMIS-631
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-client
    Affects Versions: OpenCMIS 0.8.0
            Reporter: Jon Elslip
            Priority: Minor


Trying to clear a property with data type ID is not persisted when passing null as the value.
No error occurs, but the previous value is sent to the CMIS server. Setting properties with
other data types clears their values.

Here are the values that are passed to org.apache.chemistry.opencmis.client.api.CmisObject.updateProperties:

{SVCPStr=null, MVCPIntIntegers_HCVL=[], SVCPDateTime=null, SVCPID=null, MVCPStrDoggies_CVL=[],
MVCPBoo=[], MVCPIntGrades_CVL=[], SVCPStr_HCVL=null, cmis:name=idd_6D25229C-7320-41AA-A7D3-1AF64B524716,
MVCPID=[], MVCPDateTime=[], MVCPStrBirds_HCVL=[], SVCPInt_HCVL=null, SVCPBoo=null, MVCPFlt=[],
MVCPInt=[], SVCPInt_CVL=null, SVCPStr_CVL=null, MVCPStr=[], DocumentTitle=null, SVCPFlt=null,
SVCPInt=null}

Note the value of SVCPID is null.

Here is what is being sent to the CMIS server via http. Note the value of SVCP below is not
empty, but is the previous value:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<atom:entry xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
xmlns:p8ext="http://www.ibm.com/xmlns/prod/ecm/cmis/p8extensions" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
    <cmisra:object>
        <cmis:properties>
            <cmis:propertyInteger propertyDefinitionId="ReservationType" localName="ReservationType"
displayName="Reservation Type" queryName="ReservationType"/>
            <cmis:propertyInteger propertyDefinitionId="MajorVersionNumber" localName="MajorVersionNumber"
displayName="Major Version Number" queryName="MajorVersionNumber">
                <cmis:value>1</cmis:value>
            </cmis:propertyInteger>
            <cmis:propertyString propertyDefinitionId="cmis:name" localName="Name" displayName="Name"
queryName="cmis:name">
                <cmis:value>idd_6D25229C-7320-41AA-A7D3-1AF64B524716</cmis:value>
            </cmis:propertyString>
            <cmis:propertyDateTime propertyDefinitionId="SVCPDateTime" localName="SVCPDateTime"
displayName="SVCP DateTime" queryName="SVCPDateTime"/>
            <cmis:propertyInteger propertyDefinitionId="MinorVersionNumber" localName="MinorVersionNumber"
displayName="Minor Version Number" queryName="MinorVersionNumber">
                <cmis:value>0</cmis:value>
            </cmis:propertyInteger>
            <cmis:propertyBoolean propertyDefinitionId="IsVersioningEnabled" localName="IsVersioningEnabled"
displayName="Is Versioning Enabled" queryName="IsVersioningEnabled">
                <cmis:value>true</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyDateTime propertyDefinitionId="cmis:lastModificationDate" localName="DateLastModified"
displayName="Date Last Modified" queryName="cmis:lastModificationDate">
                <cmis:value>2013-02-27T16:12:58.627-08:00</cmis:value>
            </cmis:propertyDateTime>
            <cmis:propertyString propertyDefinitionId="MVCPStrBirds_HCVL" localName="MVCPStrBirds_HCVL"
displayName="MVCP Str Birds_HCVL" queryName="MVCPStrBirds_HCVL"/>
            <cmis:propertyString propertyDefinitionId="MVCPStr" localName="MVCPStr" displayName="MVCP
Str" queryName="MVCPStr"/>
            <cmis:propertyId propertyDefinitionId="cmis:objectId" localName="Id" displayName="ID"
queryName="cmis:objectId">
                <cmis:value>idd_6D25229C-7320-41AA-A7D3-1AF64B524716</cmis:value>
            </cmis:propertyId>
            <cmis:propertyString propertyDefinitionId="DocumentTitle" localName="DocumentTitle"
displayName="Document Title" queryName="DocumentTitle">
                <cmis:value>idd_6D25229C-7320-41AA-A7D3-1AF64B524716</cmis:value>
            </cmis:propertyString>
            <cmis:propertyDateTime propertyDefinitionId="DateCheckedIn" localName="DateCheckedIn"
displayName="Date Checked In" queryName="DateCheckedIn">
                <cmis:value>2013-02-13T17:57:15.064-08:00</cmis:value>
            </cmis:propertyDateTime>
            <cmis:propertyString propertyDefinitionId="SVCPStr" localName="SVCPStr" displayName="SVCP
Str" queryName="SVCPStr"/>
            <cmis:propertyDateTime propertyDefinitionId="DateContentLastAccessed" localName="DateContentLastAccessed"
displayName="Date Content Last Accessed" queryName="DateContentLastAccessed"/>
            <cmis:propertyId propertyDefinitionId="SVCPID" localName="SVCPID" displayName="SVCP
ID" queryName="SVCPID">
                <cmis:value>{9D0641D2-3AC8-45B5-997E-779767256642}</cmis:value>
            </cmis:propertyId>
            <cmis:propertyString propertyDefinitionId="cmis:createdBy" localName="Creator"
displayName="Creator" queryName="cmis:createdBy">
                <cmis:value>CEAdmin</cmis:value>
            </cmis:propertyString>
            <cmis:propertyBoolean propertyDefinitionId="MVCPBoo" localName="MVCPBoo" displayName="MVCP
Boo" queryName="MVCPBoo"/>
            <cmis:propertyInteger propertyDefinitionId="MVCPIntGrades_CVL" localName="MVCPIntGrades_CVL"
displayName="MVCP Int Grades_CVL" queryName="MVCPIntGrades_CVL"/>
            <cmis:propertyBoolean propertyDefinitionId="IsInExceptionState" localName="IsInExceptionState"
displayName="Is In Exception State" queryName="IsInExceptionState">
                <cmis:value>false</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyBoolean propertyDefinitionId="SVCPBoo" localName="SVCPBoo" displayName="SVCP
Boo" queryName="SVCPBoo"/>
            <cmis:propertyString propertyDefinitionId="CurrentState" localName="CurrentState"
displayName="Current State" queryName="CurrentState"/>
            <cmis:propertyString propertyDefinitionId="SVCPStr_CVL" localName="SVCPStr_CVL"
displayName="SVCP Str_CVL" queryName="SVCPStr_CVL"/>
            <cmis:propertyId propertyDefinitionId="IndexationId" localName="IndexationId"
displayName="Indexation Id" queryName="IndexationId"/>
            <cmis:propertyInteger propertyDefinitionId="MVCPIntIntegers_HCVL" localName="MVCPIntIntegers_HCVL"
displayName="MVCP Int Integers_HCVL" queryName="MVCPIntIntegers_HCVL"/>
            <cmis:propertyInteger propertyDefinitionId="VersionStatus" localName="VersionStatus"
displayName="Version Status" queryName="VersionStatus">
                <cmis:value>1</cmis:value>
            </cmis:propertyInteger>
            <cmis:propertyBoolean propertyDefinitionId="cmis:isImmutable" localName="IsFrozenVersion"
displayName="Is Frozen Version" queryName="cmis:isImmutable">
                <cmis:value>false</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyString propertyDefinitionId="SVCPStr_HCVL" localName="SVCPStr_HCVL"
displayName="SVCP Str_HCVL" queryName="SVCPStr_HCVL"/>
            <cmis:propertyInteger propertyDefinitionId="SVCPInt_HCVL" localName="SVCPInt_HCVL"
displayName="SVCP Int_HCVL" queryName="SVCPInt_HCVL"/>
            <cmis:propertyDateTime propertyDefinitionId="MVCPDateTime" localName="MVCPDateTime"
displayName="MVCP DateTime" queryName="MVCPDateTime"/>
            <cmis:propertyBoolean propertyDefinitionId="IsReserved" localName="IsReserved"
displayName="Is Reserved" queryName="IsReserved">
                <cmis:value>false</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyBoolean propertyDefinitionId="CmIsMarkedForDeletion" localName="CmIsMarkedForDeletion"
displayName="Is Marked For Deletion" queryName="CmIsMarkedForDeletion">
                <cmis:value>false</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyDecimal propertyDefinitionId="MVCPFlt" localName="MVCPFlt" displayName="MVCP
Flt" queryName="MVCPFlt"/>
            <cmis:propertyInteger propertyDefinitionId="ClassificationStatus" localName="ClassificationStatus"
displayName="Classification Status" queryName="ClassificationStatus">
                <cmis:value>0</cmis:value>
            </cmis:propertyInteger>
            <cmis:propertyInteger propertyDefinitionId="MVCPInt" localName="MVCPInt" displayName="MVCP
Int" queryName="MVCPInt"/>
            <cmis:propertyDecimal propertyDefinitionId="SVCPFlt" localName="SVCPFlt" displayName="SVCP
Flt" queryName="SVCPFlt"/>
            <cmis:propertyInteger propertyDefinitionId="SVCPInt" localName="SVCPInt" displayName="SVCP
Int" queryName="SVCPInt"/>
            <cmis:propertyBoolean propertyDefinitionId="cmis:isLatestVersion" localName="IsCurrentVersion"
displayName="Is Current Version" queryName="cmis:isLatestVersion">
                <cmis:value>true</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyString propertyDefinitionId="MVCPStrDoggies_CVL" localName="MVCPStrDoggies_CVL"
displayName="MVCP Str Doggies_CVL" queryName="MVCPStrDoggies_CVL"/>
            <cmis:propertyString propertyDefinitionId="cmis:lastModifiedBy" localName="LastModifier"
displayName="Last Modifier" queryName="cmis:lastModifiedBy">
                <cmis:value>CEAdmin</cmis:value>
            </cmis:propertyString>
            <cmis:propertyId propertyDefinitionId="MVCPID" localName="MVCPID" displayName="MVCP
ID" queryName="MVCPID"/>
            <cmis:propertyDateTime propertyDefinitionId="ContentRetentionDate" localName="ContentRetentionDate"
displayName="Content Retention Date" queryName="ContentRetentionDate"/>
            <cmis:propertyInteger propertyDefinitionId="SVCPInt_CVL" localName="SVCPInt_CVL"
displayName="SVCP Int_CVL" queryName="SVCPInt_CVL"/>
            <cmis:propertyDateTime propertyDefinitionId="cmis:creationDate" localName="DateCreated"
displayName="Date Created" queryName="cmis:creationDate">
                <cmis:value>2013-02-13T17:57:15.064-08:00</cmis:value>
            </cmis:propertyDateTime>
            <cmis:propertyInteger propertyDefinitionId="CmIndexingFailureCode" localName="CmIndexingFailureCode"
displayName="Indexing Failure Code" queryName="CmIndexingFailureCode"/>
            <cmis:propertyString propertyDefinitionId="cmis:changeToken" localName="" displayName="cmis:changeToken"
queryName="cmis:changeToken">
                <cmis:value>17</cmis:value>
            </cmis:propertyString>
            <cmis:propertyString propertyDefinitionId="cmis:checkinComment" localName=""
displayName="cmis:checkinComment" queryName="cmis:checkinComment"/>
            <cmis:propertyInteger propertyDefinitionId="cmis:contentStreamLength" localName="ContentSize"
displayName="Content Size" queryName="cmis:contentStreamLength"/>
            <cmis:propertyId propertyDefinitionId="cmis:contentStreamId" localName="" displayName="cmis:contentStreamId"
queryName="cmis:contentStreamId"/>
            <cmis:propertyString propertyDefinitionId="cmis:contentStreamMimeType" localName="MimeType"
displayName="Mime Type" queryName="cmis:contentStreamMimeType"/>
            <cmis:propertyString propertyDefinitionId="cmis:contentStreamFileName" localName=""
displayName="cmis:contentStreamFileName" queryName="cmis:contentStreamFileName"/>
            <cmis:propertyId propertyDefinitionId="cmis:versionSeriesId" localName="VersionSeries"
displayName="Version Series" queryName="cmis:versionSeriesId">
                <cmis:value>idv_107A1EB3-FC2A-4F8A-A1C7-605F106796F3</cmis:value>
            </cmis:propertyId>
            <cmis:propertyString propertyDefinitionId="cmis:versionLabel" localName=""
displayName="cmis:versionLabel" queryName="cmis:versionLabel">
                <cmis:value>1.0</cmis:value>
            </cmis:propertyString>
            <cmis:propertyBoolean propertyDefinitionId="cmis:isMajorVersion" localName=""
displayName="cmis:isMajorVersion" queryName="cmis:isMajorVersion">
                <cmis:value>true</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyBoolean propertyDefinitionId="cmis:isLatestMajorVersion" localName=""
displayName="cmis:isLatestMajorVersion" queryName="cmis:isLatestMajorVersion">
                <cmis:value>true</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyString propertyDefinitionId="cmis:versionSeriesCheckedOutBy"
localName="" displayName="cmis:versionSeriesCheckedOutBy" queryName="cmis:versionSeriesCheckedOutBy"/>
            <cmis:propertyId propertyDefinitionId="cmis:versionSeriesCheckedOutId" localName=""
displayName="cmis:versionSeriesCheckedOutId" queryName="cmis:versionSeriesCheckedOutId"/>
            <cmis:propertyBoolean propertyDefinitionId="cmis:isVersionSeriesCheckedOut"
localName="" displayName="cmis:isVersionSeriesCheckedOut" queryName="cmis:isVersionSeriesCheckedOut">
                <cmis:value>false</cmis:value>
            </cmis:propertyBoolean>
            <cmis:propertyId propertyDefinitionId="cmis:baseTypeId" localName="" displayName="cmis:baseTypeId"
queryName="cmis:baseTypeId">
                <cmis:value>cmis:document</cmis:value>
            </cmis:propertyId>
            <cmis:propertyId propertyDefinitionId="cmis:objectTypeId" localName="" displayName="cmis:objectTypeId"
queryName="cmis:objectTypeId">
                <cmis:value>QAALL</cmis:value>
            </cmis:propertyId>
        </cmis:properties>
        <p8ext:ClassDisplayName>QA ALL</p8ext:ClassDisplayName>
    </cmisra:object>
    <atom:id>http://cm-terranovavm01:9080/fncmis/resources/NexusDS/Content/idd_6D25229C-7320-41AA-A7D3-1AF64B524716</atom:id>
    <atom:updated>2013-02-27T16:12:58.627-08:00</atom:updated>
    <app:edited>2013-02-27T16:12:58.627-08:00</app:edited>
    <atom:published>2013-02-27T16:12:58.627-08:00</atom:published>
    <atom:title>idd_6D25229C-7320-41AA-A7D3-1AF64B524716</atom:title>
    <atom:summary>idd_6D25229C-7320-41AA-A7D3-1AF64B524716</atom:summary>
    <atom:content src="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/ContentStream/idd_6D25229C-7320-41AA-A7D3-1AF64B524716/-1"/>
    <atom:author>
        <atom:name>CEAdmin</atom:name>
    </atom:author>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/Content/idd_6D25229C-7320-41AA-A7D3-1AF64B524716"
rel="self" type="application/atom+xml;type=entry" cmisra:id="idd_6D25229C-7320-41AA-A7D3-1AF64B524716"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/Content/idd_6D25229C-7320-41AA-A7D3-1AF64B524716"
rel="edit" type="application/atom+xml;type=entry" cmisra:id="idd_6D25229C-7320-41AA-A7D3-1AF64B524716"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/AllowableActions/idd_6D25229C-7320-41AA-A7D3-1AF64B524716"
rel="http://docs.oasis-open.org/ns/cmis/link/200908/allowableactions" type="application/cmisallowableactions+xml"
cmisra:id="idd_6D25229C-7320-41AA-A7D3-1AF64B524716"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/Parents/QAALL/idd_6D25229C-7320-41AA-A7D3-1AF64B524716"
rel="up" type="application/atom+xml;type=feed" cmisra:id="idd_6D25229C-7320-41AA-A7D3-1AF64B524716"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/Allversions/idd_6D25229C-7320-41AA-A7D3-1AF64B524716"
rel="version-history" type="application/atom+xml;type=feed" cmisra:id="idd_6D25229C-7320-41AA-A7D3-1AF64B524716"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/LatestVersion/idd_6D25229C-7320-41AA-A7D3-1AF64B524716"
rel="current-version" type="application/atom+xml;type=entry" cmisra:id="idd_6D25229C-7320-41AA-A7D3-1AF64B524716"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/Relationships/QAALL/idd_6D25229C-7320-41AA-A7D3-1AF64B524716?MAX_ITEMS=25"
rel="http://docs.oasis-open.org/ns/cmis/link/200908/relationships" type="application/atom+xml;type=feed"
cmisra:id="idd_6D25229C-7320-41AA-A7D3-1AF64B524716"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/Type/QAALL?includePropertyDefinitions=true"
rel="describedby" type="application/atom+xml;type=entry" cmisra:id="QAALL"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/Service?repositoryId=NexusDS"
rel="service" type="application/atomsvc+xml"/>
    <atom:link href="http://cm-terranovavm01:9080/fncmis/resources/NexusDS/ContentStream/idd_6D25229C-7320-41AA-A7D3-1AF64B524716/-1"
rel="edit-media" length="0" cmisra:id="idd_6D25229C-7320-41AA-A7D3-1AF64B524716"/>
</atom:entry>

Setting the ID property to a different GUID value works, the problem just appears when setting
it to null (or empty string).

--
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

Mime
View raw message