cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco iOS 2.1.1 for iOS 8 failed to save account

gatsu2811
Champ in-the-making
Champ in-the-making
Hi,

Since it working on Android 4.2.2, I tried using the same configuration from Android to iPad (iOS 8);

User name: myusername
Password: mypassword
Hostname: walet.h******.com.my
Description: Walet
HTTPS: On
Sync Files: Off
Port: 443
Service Documents: /alfresco/service/cmis
Client Certificate: blank

Below is Connection Diagnostic using above settings;

Checking network connection: OK
Checking server connection: Not OK

So, I changed "Service Documents" parameter and Connection Diagnostic seems improved;

<strong>Settings</strong>
User name: myusername
Password: mypassword
Hostname: walet.h******.com.my
Description: Walet
HTTPS: On
Sync Files: Off
Port: 443
Service Documents: /alfresco
Client Certificate: blank

<strong>Connection Diagnostic</strong>
Checking network connection: OK
Checking server connection: OK
Authenticating with Alfresco: OK
Connecting to Alfresco: OK
Checking repository connection: Not OK

I realised that there are difference when logging by Android and iOS.

Below there are localhost access log logging by Android;

115.164.208.105 - - [15/Jul/2015:10:50:39 +0800] "GET /alfresco/service/cmis HTTP/1.1" 200 33892
115.164.208.105 - - [15/Jul/2015:10:50:40 +0800] "GET /alfresco/service/cmis?repositoryId=e348ca8d-0475-4893-96ad-6ee2b573dba5 HTTP/1.1" 200 33892
115.164.208.105 - - [15/Jul/2015:10:50:41 +0800] "GET /alfresco/service/cmis/arg/n?noderef=workspace%3A%2F%2FSpacesStore%2F0d93965c-86ce-4540-9112-6c33ff9f6efa&filter=&includeAllowableActions=true&includePolicyIds=false&includeRelationships=none&includeACL=false&renditionFilter=cmis%3Anone HTTP/1.1" 200 7165
115.164.208.105 - - [15/Jul/2015:10:50:42 +0800] "GET /alfresco/service/cmis/type/cmis:folder HTTP/1.1" 200 13152
115.164.208.105 - - [15/Jul/2015:10:50:42 +0800] "GET /alfresco/service/cmis/type/P:sys:localized HTTP/1.1" 200 2154
115.164.208.105 - - [15/Jul/2015:10:50:42 +0800] "GET /alfresco/service/cmis/type/P:cm:titled HTTP/1.1" 200 3532
115.164.208.105 - - [15/Jul/2015:10:50:42 +0800] "GET /alfresco/service/cmis/type/P:app:uifacets HTTP/1.1" 200 2837
115.164.208.105 - - [15/Jul/2015:10:50:43 +0800] "POST /alfresco/service/cmis/queries HTTP/1.1" 201 7705
115.164.208.105 - - [15/Jul/2015:10:50:43 +0800] "GET /alfresco/service/cmis/s/workspaceSmiley FrustratedpacesStore/arg/p?path=%2FData+Dictionary%2FMobile&filter=&includeAllowableActions=true&includePolicyIds=false&includeRelationships=none&includeACL=false&renditionFilter=cmis%3Anone HTTP/1.1" 404 1866
115.164.208.105 - - [15/Jul/2015:10:50:44 +0800] "GET /alfresco/api/-default-/public/alfresco/versions/1/people/myusername HTTP/1.1" 200 217
115.164.208.105 - - [15/Jul/2015:10:50:44 +0800] "GET /alfresco/api/-default-/public/alfresco/versions/1/people/myusername/favorites?where=(EXISTS(target/file))&maxItems=50&skipCount=0 HTTP/1.1" 200 112
115.164.208.105 - - [15/Jul/2015:10:50:44 +0800] "GET /alfresco/api/-default-/public/alfresco/versions/1/people/myusername HTTP/1.1" 200 217
115.164.208.105 - - [15/Jul/2015:10:50:44 +0800] "GET /alfresco/api/-default-/public/alfresco/versions/1/people/myusername/favorites?where=(EXISTS(target/folder))&maxItems=50&skipCount=0 HTTP/1.1" 200 112
115.164.208.105 - - [15/Jul/2015:10:50:53 +0800] "GET /alfresco/service/cmis/s/workspaceSmiley FrustratedpacesStore/i/0d93965c-86ce-4540-9112-6c33ff9f6efa/children?orderBy=cmis%3Aname+ASC&includeAllowableActions=true&includeRelationships=none&renditionFilter=cmis%3Anone&includePathSegment=true&maxItems=50&skipCount=0 HTTP/1.1" 200 114413
115.164.208.105 - - [15/Jul/2015:10:50:56 +0800] "GET /alfresco/service/cmis/type/F:st:sites HTTP/1.1" 200 13287
115.164.208.105 - - [15/Jul/2015:10:51:06 +0800] "GET /alfresco/api/-default-/public/alfresco/versions/1/people/myusername/activities?maxItems=50&skipCount=0 HTTP/1.1" 200 21381

And, localhost access log logging by iOS;

115.164.208.105 - - [15/Jul/2015:11:09:29 +0800] "GET /alfresco/service/api/server HTTP/1.1" 200 144
115.164.208.105 - - [15/Jul/2015:11:09:29 +0800] "GET /alfresco/api/-default-/public/cmis/versions/1.0/atom HTTP/1.1" 200 28468
115.164.208.105 - - [15/Jul/2015:11:09:31 +0800] "GET /alfresco/api/-default-/public/cmis/versions/1.0/atom HTTP/1.1" 200 28468
115.164.208.105 - - [15/Jul/2015:11:09:35 +0800] "GET /alfresco/service/api/server HTTP/1.1" 200 144
115.164.208.105 - - [15/Jul/2015:11:09:36 +0800] "GET /alfresco/api/-default-/public/cmis/versions/1.0/atom HTTP/1.1" 200 28468
115.164.208.105 - - [15/Jul/2015:11:09:38 +0800] "GET /alfresco/api/-default-/public/cmis/versions/1.0/atom HTTP/1.1" 200 28468


Thank you in advance.
5 REPLIES 5

mikeh
Star Contributor
Star Contributor
You're correct to remove the "/service/cmis" part from the service document and go with "/alfresco" - this allows the underlying Alfresco iOS SDK to determine the best endpoint for your repository version.

The problem you're seeing is almost certainly due to incorrectly-formed absolute URLs in the CMIS response body. That's the most common failure on that last step of the diagnostics check.

Have a read of my post here to see if this resolves your issue: https://forums.alfresco.com/comment/149481#comment-149481

Thanks,
Mike

gatsu2811
Champ in-the-making
Champ in-the-making
Thank you for you response. I tried the walkaround but still failure at checking repository connection step. Forgot to mention earlier that I'm using a self-signed certificate. Can it be the problem?

mikeh
Star Contributor
Star Contributor
Yes, that will be a problem as we no longer support self-signed certificates. You may have luck if you upload the local CA certificate you used to generate the self-signed certificate to the device. I know this works on the simulator, but haven't tried it on an actual iPhone or iPad.

Thanks,
Mike

gatsu2811
Champ in-the-making
Champ in-the-making
Hi,

Thank you for responding. I purchased valid SSL certificate last Tuesday so that I can login from my iPad, but unfortunately the same error still occurred. However, I find that URL in my atom file is https://mydomain/-default-/public/cmis/versions/1.0/atom…, not https://mydomain/alfresco/api/-default-/public/cmis/versions/1.0/atom… Could that be the problem?

gatsu2811
Champ in-the-making
Champ in-the-making
I changed ProxyPass and ProxyPassReverse in my VirtualHost like below;

ProxyPass /-default-/public/cmis/versions/1.0/atom ajp://localhost:8009/alfresco/api/-default-/public/cmis/versions/1.0/atom
ProxyPassReverse /-default-/public/cmis/versions/1.0/atom ajp://localhost:8009/alfresco/api/-default-/public/cmis/versions/1.0/atom

And it's working.