cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 4.2.e Errors with Python API and getCheckedOutDocs

dpclar0
Champ in-the-making
Champ in-the-making
My Alfresco repository was recently updated to 4.2.e.  Now when I call .getCheckedOutDocs() through the Python API, I receive a 500 error with a runtime exception from the https://<server>/s/cmis/checkedout URL. 

Is this caused by the latest Alfresco release?  Is there a workaround to return a list of checked out files through the Python API?
4 REPLIES 4

jpotts
World-Class Innovator
World-Class Innovator
Which specific release of cmislib are you running? This may be an issue that I have fixed in HEAD.

Jeff

dpclar0
Champ in-the-making
Champ in-the-making
I'm seeing the error with cmislib 0.5.1.

As a test, I pulled the version from https://svn.apache.org/repos/asf/chemistry/cmislib/ and am still experiencing the issue.

jpotts
World-Class Innovator
World-Class Innovator
I just tested with cmislib 0.5.1 running against 4.2.e Community Edition and had no problems using the old service URL, which is:

http://localhost:8080/alfresco/cmisatom

As well as the new service URL for 4.2, which is:

http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom

Both of these work fine.

However if I use the extremely old service URL, which is:

http://localhost:8080/alfresco/s/api/cmis

I will get an error 500.

Can you try with the correct URL (the second one in the list above) and let me know what you see?

Jeff

dpclar0
Champ in-the-making
Champ in-the-making
You nailed it.  My scripts were pointing to the very old service URL.  Once I changed them to the URL for 4.2, it worked as expected.

Thanks for your quick response!