Using Apache Camel CMIS with Sharepoint 2013

I can successfully access the AtomPad 2013 AtomPub interface from Chrome REST clients, the following URL gives me the file I want:

http://ourintranet:100/personal/myname/_vti_bin/cmis/rest/5612e38e-a324-4030-9fee-7d05cd9053a4?getContentStream&objectId=4-512 

However, using the same URL in the Camel CMIS route, I get HTTP 302 (file not found) and distracting me from the error page.

I tried the route:

 from("cmis:http://ourintranet:100/personal/myname/_vti_bin/cmis/rest/5612e38e-a324-4030-9fee-7d05cd9053a4?getContentStream&objectId=4-512") .to("file:c:/myFolder") 

Running Wireshark to see what happens, it seems that Camel CMIS does not send part of the request to the server and can consider it as a parameter for the CMIS component (in accordance with the component’s usage guide).

So what is the correct way to use Camel CMIS component with Sharepoint?

+7
sharepoint apache-camel cmis
source share
1 answer

You tried to add the query parameter to uri like this

 from("cmis:http://ourintranet:100/personal/myname/_vti_bin/cmis/rest/5612e38e-a324-4030-9fee-7d05cd9053a4?query=getContentStream&objectId=4-512") .to("file:c:/myFolder") 

According to http://camel.apache.org/cmis.html :

inquiry | Query cmis to run against the repository. If this is not specified, the consumer will retrieve each node from the content repository, relaying the data tree recursively

0
source share

All Articles