You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Ian Ashley <ia...@opentext.com> on 2012/05/31 13:08:19 UTC

Creating unfiled documents using the AtomPub binding

Dear all,

I seem to remember asking this a while ago but was just seeing anything has been done about it.

It doesn't seem to be possible to create unfiled documents using the AtomPub binding. We get the following exception

Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Object id must be set!
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getLink(AbstractAtomPubService.java:151)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.loadLink(AbstractAtomPubService.java:169)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:87)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:716)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:819)

I seem to remember that this was caused by a "feature" of the specification.

We are using release 0.6.0. Do you know if this has been addressed in the 0.7.0 release, it wasn't mentioned in the release note?

Regards,
Ian

Re: Creating unfiled documents using the AtomPub binding

Posted by Florian Müller <fm...@apache.org>.
 Hi Ian,

 That has been addressed in 0.7.0.


 Florian



> Dear all,
>
> I seem to remember asking this a while ago but was just seeing
> anything has been done about it.
>
> It doesn't seem to be possible to create unfiled documents using the
> AtomPub binding. We get the following exception
>
> Caused by:
> 
> org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException:
> Object id must be set!
> at
> 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getLink(AbstractAtomPubService.java:151)
> at
> 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.loadLink(AbstractAtomPubService.java:169)
> at
> 
> org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:87)
> at
> 
> org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:716)
> at
> 
> org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:819)
>
> I seem to remember that this was caused by a "feature" of the 
> specification.
>
> We are using release 0.6.0. Do you know if this has been addressed in
> the 0.7.0 release, it wasn't mentioned in the release note?
>
> Regards,
> Ian