You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "linzhixing (JIRA)" <ji...@apache.org> on 2013/09/12 19:24:51 UTC

[jira] [Created] (CMIS-721) TCK Create and Delete Relationship test doesn't work well because of updatability of cmis:sourceId and cmis:targetId

linzhixing created CMIS-721:
-------------------------------

             Summary: TCK Create and Delete Relationship test doesn't work well because of updatability of cmis:sourceId and cmis:targetId
                 Key: CMIS-721
                 URL: https://issues.apache.org/jira/browse/CMIS-721
             Project: Chemistry
          Issue Type: Bug
         Environment: Workbenck version: "Version: 1.0.0-SNAPSHOT / Revision: 1519696 / Build: 2013-09-03T16:33:20+0200"
            Reporter: linzhixing
            Priority: Minor


org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest.createRelationship(AbstractSessionTest.java:526)
org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest.createRelationship(AbstractSessionTest.java:498)
org.apache.chemistry.opencmis.tck.tests.crud.CreateAndDeleteRelationshipTest.run(CreateAndDeleteRelationshipTest.java:62)

--
AbstractSessionTest.java:498 calls SessionImpl#createRelationship and then converts properties including cmis:sourceId and cmis:targetId at Line:817, with updatabilityFilter(ONCREATE, READWRITE)
ObjectFactoryImpl#convertProperties loops the properties but skips if a property's updatability is not contained in the updatabilityFilter.(at Line:406)

According to specs 2.1.6.1.2, cmis:sourceId and cmis:targetId are both of updatability:READONLY, and so my server does.
That is why cmis:sourceId and cmis:targetId is not passed to Atompub ObjectServiceImpl#createRelation and it caused that error.

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