You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Jochen Kraushaar <jo...@doubleSlash.de> on 2015/05/26 15:59:36 UTC
Error in OpenCMIS 0.12.0 applyPolicy AtomPub method?
Hi,
I'm trying to apply a policy to an object using OpenCMIS 0.12.0 and the
AtomPub binding. I used following commands from the workbench console:
def object = session.getObjectByPath("/path/to/object")
def policy = session.getObject("c7239edf-44cc-4aba-81c4-97ee9e994c87")
session.applyPolicy(object, policy)
But the policy ID is not send to server, see request log:
POST
/cmis/atom11/default/policies?id=059165f9-2432-40fe-9777-e57a092bc5e9
HTTP/1.1
Host: localhost:8181
Transfer-Encoding: chunked
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Authorization: Basic [hidden]
Content-Type: application/atom+xml;type=entry
Pragma: no-cache
Connection: keep-alive
User-Agent: Apache Chemistry OpenCMIS/0.12.0
Cache-Control: no-cache
Accept-Encoding: gzip,deflate
<?xml version='1.0' encoding='UTF-8'?><atom:entry
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"><atom:id>urn:uuid:00000000-0000-0000-0000-00000000000</atom:id><atom:title></atom:title><atom:updated>2015-05-26T13:12:33.134Z</atom:updated><cmisra:object><cmis:properties><cmis:propertyId
propertyDefinitionId="cmis:objectId"><cmis:value>059165f9-2432-40fe-9777-e57a092bc5e9</cmis:value></cmis:propertyId></cmis:properties></cmisra:object></atom:entry>
I found nothing about this problem in the issue tracker. Did I do
something wrong?
Regards
Jochen
Re: Error in OpenCMIS 0.12.0 applyPolicy AtomPubmethod?
Posted by Florian Müller <fm...@apache.org>.
Hi Jochen,
That's a bug. Please create an issue in JIRA [1].
Thanks,
Florian.
[1] https://issues.apache.org/jira/browse/CMIS
> Hi,
>
> I'm trying to apply a policy to an object using OpenCMIS 0.12.0 and
> the AtomPub binding. I used following commands from the workbench
> console:
>
> def object = session.getObjectByPath("/path/to/object")
> def policy = session.getObject("c7239edf-44cc-4aba-81c4-97ee9e994c87")
> session.applyPolicy(object, policy)
>
> But the policy ID is not send to server, see request log:
>
> POST
> /cmis/atom11/default/policies?id=059165f9-2432-40fe-9777-e57a092bc5e9
> HTTP/1.1
> Host: localhost:8181
> Transfer-Encoding: chunked
> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> Authorization: Basic [hidden]
> Content-Type: application/atom+xml;type=entry
> Pragma: no-cache
> Connection: keep-alive
> User-Agent: Apache Chemistry OpenCMIS/0.12.0
> Cache-Control: no-cache
> Accept-Encoding: gzip,deflate
>
> <?xml version='1.0' encoding='UTF-8'?><atom:entry
> xmlns:atom="http://www.w3.org/2005/Atom"
> xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
> xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"><atom:id>urn:uuid:00000000-0000-0000-0000-00000000000</atom:id><atom:title></atom:title><atom:updated>2015-05-26T13:12:33.134Z</atom:updated><cmisra:object><cmis:properties><cmis:propertyId
> propertyDefinitionId="cmis:objectId"><cmis:value>059165f9-2432-40fe-9777-e57a092bc5e9</cmis:value></cmis:propertyId></cmis:properties></cmisra:object></atom:entry>
>
> I found nothing about this problem in the issue tracker. Did I do
> something wrong?
>
> Regards
> Jochen