Unable to retrieve comments with iPad app
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2014 06:04 AM
We use alfresco community 4.2.f to share documents. The users who use an iPad to view documents get an annoying red bar on top of the document with the message "Unable to retrieve comments"
This is not the case when using the Android app. We don't experience any problems with comments on the site.
We want to get rid of this bar. Any help is appreciated!
This is not the case when using the Android app. We don't experience any problems with comments on the site.
We want to get rid of this bar. Any help is appreciated!
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2014 09:37 AM
Hi, we are getting the same error. Is it a bug ? Is there any fix available for it?
Thanks!
Thanks!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2014 09:51 PM
I have the same problem, on iPhone.
Seems the API URL from the iOS apps are incorrect. Reviewing the tomcat access_log, I see this entry:
"GET /alfresco/service/api/node/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/comments?pageSize=25&startIndex=0&reverse=true HTTP/1.1" 404
But the correct URL should be:
/alfresco/service/api/<strong>comment</strong>/node/<strong>store</strong>/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/comments?pageSize=25&startIndex=0&reverse=true
I have verified that URL correctly displays a JSON response.
iOS app URL is missing both ../comment/.. and ../store/..
Note, these other 404 entries in the access_log exist along with the one for comments:
/alfresco/service/api/node/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/content/thumbnails/doclib?c=queue HTTP/1.1" 404
/alfresco/service/api/node/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/ratings HTTP/1.1" 404
/alfresco/service/api/node/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/tags HTTP/1.1" 404
Seems the API URL from the iOS apps are incorrect. Reviewing the tomcat access_log, I see this entry:
"GET /alfresco/service/api/node/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/comments?pageSize=25&startIndex=0&reverse=true HTTP/1.1" 404
But the correct URL should be:
/alfresco/service/api/<strong>comment</strong>/node/<strong>store</strong>/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/comments?pageSize=25&startIndex=0&reverse=true
I have verified that URL correctly displays a JSON response.
iOS app URL is missing both ../comment/.. and ../store/..
Note, these other 404 entries in the access_log exist along with the one for comments:
/alfresco/service/api/node/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/content/thumbnails/doclib?c=queue HTTP/1.1" 404
/alfresco/service/api/node/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/ratings HTTP/1.1" 404
/alfresco/service/api/node/1a0b110f-1e09-4ca2-b367-fe25e4964a4e/tags HTTP/1.1" 404

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2014 12:02 PM
Yes, you are correct, unfortunately the URLs are being incorrectly constructed. We've identified the issue and raised it in JIRA: https://issues.alfresco.com/jira/browse/MOBSDK-769
