02-06-2022 11:06 AM
Hi all
I've been struggling with this for a while.
Using Android Alfresco Content app the following error is returned on attempt to connect:
"An error occurred : null"
Server URL is of the form https://alfresco.foo.bar/alfresco
I have also tried https://alfresco.foo.bar/alfresco/service/cmis but this gives "Your service url value is incorrect"
I have also tried https://alfresco.foo.bar/alfresco/api/-default-/public/cmis/versions/1.1/atom but this gives "org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException"
I have also created create a file called configuration.json and placed it in the /Company Home/Data Dictionary/Mobile/ directory of Content Services in line with this: https://docs.alfresco.com/content-services/latest/config/mobile/
The newer Alfresco Workspace app works perfectly but has a reduced set of features from those I want.
Configuration details:
Community - 7.2.0 - Dockerised
Running behind Nginx Reverse proxy with configuration as per:
https://github.com/keensoft/docker-alfresco/blob/master/volumes/config/nginx.conf
Running HTTPS with Docker build of Share container as per:
https://github.com/keensoft/docker-alfresco/wiki/Running-the-service-behind-an-SSL-Proxy
All help appreciated.
Regards
Marc
02-07-2022 06:49 AM
You need to use the right CMIS Url according to your client.
https://angelborroy.wordpress.com/2019/06/03/using-cmis-browser-protocol/
02-08-2022 01:52 AM
Hi Angel
Thank you so much for replying - I know how busy you are.
The client is the official "Alfrescco Content Service" Android app:
https://play.google.com/store/apps/details?id=org.alfresco.mobile.android.application
SOAP - "Your server could not be reached"
RESTful AtomPub - "Your service url value is incorrect"
RESTful Browser binding - "Your service url value is incorrect"
I have tried the URLs in your link
I had originally followed the instructions here ("latest" config):
https://docs.alfresco.com/content-mobile/latest/config/
https://alfresco had worked perfectly on previous non-dockerised versions of Alfresco
As indicated, I also tried https://hostname/alfresco/service/cmis
Thank you again.
Marc
02-08-2022 03:59 AM
According to documentation...
https://docs.alfresco.com/content-mobile/latest/config/#system-administrators
... that should work: http://server.com:8080/alfresco
Did you try that?
02-08-2022 04:10 AM
Hi Angel
yes - except it is behind an Nginx reverse proxy directing to port 8080, so https://server.com/alfresco
This results in the follwoing in the Nginx logs:
Connecting using standard https://hostname/alfresco automatically converts to the CMIS bind URL:
192.168.0.127 - loginname [08/Feb/2022:09:35:51 +0200] "GET /alfresco/api/-default-/public/cmis/versions/1.0/atom/ HTTP/2.0" 200 29020 "-" "ApacheChemistryOpenCMIS/0.11"
192.168.0.127 - loginname [08/Feb/2022:09:35:51 +0200] "GET /alfresco/api/-default-/public/cmis/versions/1.0/atom/?repositoryId=-default- HTTP/2.0" 200 29020 "-" "ApacheChemistryOpenCMIS/0.11"
192.168.0.127 - loginname [08/Feb/2022:09:35:51 +0200] "GET /alfresco/api/-default-/public/cmis/versions/1.0/atom/id?id=df553697-0021-4759-a864-2dc5caf79639&filter=&includeAllowableActions=true&includeACL=false&includePolicyIds=false&includeRelationships=none&renditionFilter=cmis:none HTTP/1.1" 400 248 "-" "ApacheChemistryOpenCMIS/0.11"
Am I correct that this indicates that it seems to bind correctly and issue a token, but then fails?
02-09-2022 02:49 AM
Hi Angel
Any ideas based on the HTTP request logs above, or is there somewhere else I sould enquire?
Marc
02-09-2022 03:22 AM
It seems that this application has been discontinued.
You may try the new one, Alfresco Mobile Workspace: https://play.google.com/store/apps/details?id=com.alfresco.content.app&hl=en&gl=US
I was able to use that on a local enviroment using following settings:
02-09-2022 03:31 AM
Thanks Angel
Yes, Workspace works well but has a reduced subset of functionality (e.g. Content uploads are limited to pictures).
Thanks for the help.
Marc
Explore our Alfresco products with the links below. Use labels to filter content by product module.