Cannot update document's property in SharePoint 2013 using OpenCMIS -


i'm using sharepoint 2013 , i'm trying update document's property opencmis 0.14.0

the code simple:

final string prop = "mycustomproperty"; session session = buildsessionwithatompubbinding("https://domain/_vti_bin/cmis/rest/?getrepositories");  operationcontext oc = session.createoperationcontext(); oc.setfilterstring(prop); cmisobject doc = session.getobjectbypath("/docs/contracts/doc.xsl", oc); system.out.println("doc id before checkout: " + doc.getid());  final map<string, string> prop = new hashmap<string, string>(); prop.put(prop, "ironman"); system.out.println(prop); cmisobject newobj = doc.updateproperties(prop); 

but following exception:

doc id before checkout: 6010-512 exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.cmisconnectionexception: redirects not supported (http status code 302): found     @ org.apache.chemistry.opencmis.client.bindings.spi.atompub.abstractatompubservice.convertstatuscode(abstractatompubservice.java:469)     @ org.apache.chemistry.opencmis.client.bindings.spi.atompub.abstractatompubservice.put(abstractatompubservice.java:685)     @ org.apache.chemistry.opencmis.client.bindings.spi.atompub.abstractatompubservice.put(abstractatompubservice.java:672)     @ org.apache.chemistry.opencmis.client.bindings.spi.atompub.objectserviceimpl.updateproperties(objectserviceimpl.java:340)     @ org.apache.chemistry.opencmis.client.runtime.abstractcmisobject.updateproperties(abstractcmisobject.java:376)     @ org.apache.chemistry.opencmis.client.runtime.abstractcmisobject.updateproperties(abstractcmisobject.java:340)     @ it.alessandro.cmistest.main(cmistest.java:30) 

below there properties used create session:

org.apache.chemistry.opencmis.user=xxxxxxxx org.apache.chemistry.opencmis.password=xxxxxxxx org.apache.chemistry.opencmis.binding.atompub.url=https://domain/_vti_bin/cmis/rest/?getrepositories org.apache.chemistry.opencmis.binding.auth.http.oauth.bearer=false org.apache.chemistry.opencmis.binding.auth.soap.usernametoken=true org.apache.chemistry.opencmis.binding.spi.type=atompub org.apache.chemistry.opencmis.binding.auth.http.basic=false org.apache.chemistry.opencmis.binding.auth.classname=org.apache.chemistry.opencmis.client.bindings.spi.ntlmauthenticationprovider org.apache.chemistry.opencmis.workaround.omitchangetokens=true 

is sharepoint's bug or there's wrong in implementation?


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -