Alfresco mobile - "An error occurred : null"

cancel
Showing results for 
Search instead for 
Did you mean: 
globaladvisors_
Member II

Alfresco mobile - "An error occurred : null"

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

7 Replies
angelborroy
Alfresco Employee

Re: Alfresco mobile - "An error occurred : null"

You need to use the right CMIS Url according to your client.

https://angelborroy.wordpress.com/2019/06/03/using-cmis-browser-protocol/

Hyland Developer Evangelist
globaladvisors_
Member II

Re: Alfresco mobile - "An error occurred : null"

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

angelborroy
Alfresco Employee

Re: Alfresco mobile - "An error occurred : null"

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?

Hyland Developer Evangelist
globaladvisors_
Member II

Re: Alfresco mobile - "An error occurred : null"

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?

globaladvisors_
Member II

Re: Alfresco mobile - "An error occurred : null"

Hi Angel

Any ideas based on the HTTP request logs above, or is there somewhere else I sould enquire?

Marc

angelborroy
Alfresco Employee

Re: Alfresco mobile - "An error occurred : null"

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:

 

Screenshot 2022-02-09 at 09.19.20.png

 

Screenshot 2022-02-09 at 09.19.38.png

 

Hyland Developer Evangelist
globaladvisors_
Member II

Re: Alfresco mobile - "An error occurred : null"

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