You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Klevenz, Stephan" <st...@sap.com> on 2010/06/17 12:18:53 UTC

Issues with setContent()

Hi,

I found issues with setContent() and prepared some JUnit tests tagged by @Ignore annotation because they currently fail.

AbstractWriteObjectIT
WriteObjectAtomPubIT
WriteObjectWebServicesIT

Issue 1)
Document.setContent() Method is not supported for AtomPub Binding (CmisNotSupportedException). I would like to use this to update existing content. For WebService binding it is working.

Issue 2)
Document.setConente() + overwrite flag false throws CmisConstraintException but should throw a CmisConentAlreadyExistException (see spec 2.2.4.16.3).

For verification just remove the @ignore annotations at AbstractWriteObjectIT class and run derived binding related tests.

Regards,
Stephan