chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-521) Empty non-required ID properties on documents are mistakenly flagged as a test failures
Date Thu, 05 Apr 2012 09:27:32 GMT

    [ https://issues.apache.org/jira/browse/CMIS-521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247106#comment-13247106
] 

Florian Müller commented on CMIS-521:
-------------------------------------

I have done some debugging against the P8 CMIS server.

The reported TCK failures only occur if the checked objects have been returned from getCheckedOutDocs().
The property "CMISObject" is actually not returned in that case. It is missing in the AtomPub
response.
Therefore, the reported failure seems to be correct.

                
> Empty non-required ID properties on documents are mistakenly flagged as a test failures
> ---------------------------------------------------------------------------------------
>
>                 Key: CMIS-521
>                 URL: https://issues.apache.org/jira/browse/CMIS-521
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-tck
>    Affects Versions: OpenCMIS 0.7.0
>         Environment: n/a
>            Reporter: jay brown
>            Priority: Minor
>              Labels: test
>             Fix For: OpenCMIS 0.7.0
>
>
> I just noticed that we have failures when we run against our public P8 CMIS server
> (Ask Florian for url/creds/etc for our test server - he has them)
> Here is what is happening.    The class CMISScalars is a test class with a bunch of test
properties to exercise property persistence.
> CMISObject is a not-required prop of type ID. 
> When it is not set (as it is not usually set in our tests) is comes across in the XML
responses like this:
>   <cmis:propertyId queryName="CMISObject" displayName="CMISObject" localName="CMISObject"
propertyDefinitionId="CMISObject"/>
> That is - empty, which is valid. 
> But the TCK test fails in several places when it encounters objects with this unset property
with this message:
>  FAILURE: PWC check: idd_FA946B30-018C-42C2-AE69-E4EDACCB894F (AbstractCmisTest.java:125)
>     FAILURE: Property CMISObject (AbstractSessionTest.java:2847)
>       FAILURE: Property is not included in response! (AbstractSessionTest.java:2845)
>         INFO: Object is null!
> AbstractSessionTest.checkProperty is getting called for this prop and it is dutifully
returning a failure since its null.  (at least that is what it looks like)

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