chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: Error in OpenCMIS 0.12.0 applyPolicy AtomPub method?
Date Tue, 26 May 2015 14:20:17 GMT
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


Mime
View raw message