cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the repository id ?

nicolasraoul
Star Contributor
Star Contributor
With Alfresco 3.2r I could get the repository id by visiting http://localhost:8080/alfresco/s/api/cmis.html

Unfortunately, with Alfresco 3.3 this URL gives an exception. I tried reinstalling Alfresco with default options, and the exception always appears:
The Web Script /alfresco/s/api/cmis.html has responded with a status of 500 - Internal Error.
04210001 Cannot locate template processor for template org/alfresco/cmis/cmis.get.html
org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:576)
What am I doing wrong?
Note: I need the repository id because I want to connect to Alfresco as an OpenCMIS client.
9 REPLIES 9

nicolasraoul
Star Contributor
Star Contributor
I don't know why the exception appears, but I have found how to get the repository id  Smiley Very Happy

In a console, type the following:
curl -uadmin:admin "http://localhost:8080/alfresco/s/cmis" | grep repositoryId
And it gives the UUID between tags.
Hope this helps someone! Cheers!
Nicolas

raptus
Champ in-the-making
Champ in-the-making
Also works for file ID?? How can I get the file ID?

Thanks in advance,

Raptus

andav
Champ in-the-making
Champ in-the-making
Hello,

I have the same problem. I couldn't find the file Id in order to use connectors from Bonita to download a file.

Thank you

armedia
Champ in-the-making
Champ in-the-making
With Alfresco 3.2r I could get the repository id by visiting http://localhost:8080/alfresco/s/api/cmis.html

Unfortunately, with Alfresco 3.3 this URL gives an exception. I tried reinstalling Alfresco with default options, and the exception always appears:
The Web Script /alfresco/s/api/cmis.html has responded with a status of 500 - Internal Error.
04210001 Cannot locate template processor for template org/alfresco/cmis/cmis.get.html
org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:576)
What am I doing wrong?
Note: I need the repository id because I want to connect to Alfresco as an OpenCMIS client.


I know this is solved, but the issue with the URL is because you had .html in it.

Colin.

bcoulson
Champ in-the-making
Champ in-the-making
Hello

I am new  to Alfresco and CMIS. I am working on a prototype that involves integrating Alfresco with Bonita. I have the same issue brought up in terms of how to get the fileID when I want to check a file out. I have a path but not the fileID. How, if at all, did you solve this problem? At this point, I think the way to go is to access it via the URL interface of CMIS. The java API will not help because Bonita's java connector does not return a value and I don't know how to gain access to the Alfresco workspace inside my java connector.

Any thoughts/tips/idea would help.
Regards
Brenda

mrogers
Star Contributor
Star Contributor
I get the repository id from http://localhost:8080/alfresco/service/cmis/index.html

That's a slightly different URL to the one posted above.

nandhakumars
Champ in-the-making
Champ in-the-making
Hi mrogers,

I tried using http://localhost:8080/alfresco/service/cmis/index.html to get repository id in SOAPUI test, but i'm getting following error.

Error : Web Script Status 405 - Method Not Allowed

Message: 04240003 Script url /cmis/index.html does not support the method POST

Exception: org.springframework.extensions.webscripts.WebScriptException - 04240003 Script url /cmis/index.html does not support the method POST.

How to send the request in GET type?

mitpatoliya
Star Collaborator
Star Collaborator
you need to hit directly this in your browser.

raghav_bhardwaj
Champ on-the-rise
Champ on-the-rise
Above url Didnt work.
localhost:8080/alfresco/service/cmis/index.html
When i try to access this url iam having error as
08080008 Script url /cmis/index.html does not map to a Web Script.

Raghav Bhardwaj