Alfresco 4.2.e Errors with Python API and getCheckedOutDocs

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2014 05:59 PM
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?
Is this caused by the latest Alfresco release? Is there a workaround to return a list of checked out files through the Python API?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2014 10:26 AM
Which specific release of cmislib are you running? This may be an issue that I have fixed in HEAD.
Jeff
Jeff

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2014 11:06 AM
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.
As a test, I pulled the version from https://svn.apache.org/repos/asf/chemistry/cmislib/ and am still experiencing the issue.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2014 02:09 PM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2014 09:52 AM
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!
Thanks for your quick response!
