cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Mobile Configuration

wouter_leysen
Champ in-the-making
Champ in-the-making
We are running alfresco behind an Apache reverse proxy. This setup works fine, but we are experiencing problems when testing Alfresco Mobile. The mobile application connects to our server and lists the available sites. When we try to connect to one of the sites, the connection fails.

I found that the URL to connect to a site, does not use the Fully Qualified Domain Name. Instead it uses the server IP on port 8080. Is there a way to correct this.

We are running alfresco community edition: Version: Community - v3.4.0 (d 3370)

Any help would be appreciated.

Kind regards,
Wouter
13 REPLIES 13

dddanmar
Champ in-the-making
Champ in-the-making
Hi,

Just thought I'd note we are having exactly the same problem.

Apache Proxy + Alfresco + Ubuntu 10.04

Our rewrite rules:
RewriteEngine On
RewriteRule ^/share/proxy/(.*) /share/page/proxy/$1 [QSA,PT]

<Proxy *>
  Order deny,allow
  Allow from all
</Proxy>

ProxyRequests Off
ProxyPass / http://192.168.x.x:8080/
ProxyPassReverse / http://192.168.x.x:8080/

The error that is returned on the mobile app:

The server returned an error connecting to URL: http://192.168.x.x:8080/alfresco/service/cmis/workspace/blahblahblah, the request times out.

Looking into this issue today/tomorrow, but would be good if anyone had any pointers?

mikeh
Star Contributor
Star Contributor
Seems to be a bug or a setting that needs a better default value - could you raise in JIRA please? We have an "Alfresco iOS" project you can log it under.

Thanks,
Mike

dddanmar
Champ in-the-making
Champ in-the-making
Hi Mike,

I've had a look at Jira @ https://issues.alfresco.com/

Looking in https://issues.alfresco.com/jira/secure/BrowseProjects.jspa#all , I'm unable to see an Alfresco IOS project to log the issue under.

–Dan

mikeh
Star Contributor
Star Contributor
Sorry, I guess that's still internal - please raise as a normal Alfresco project issue.

Thanks,
Mike

dddanmar
Champ in-the-making
Champ in-the-making
Thanks Mike, I've submitted the issue here : https://issues.alfresco.com/jira/browse/ALF-10633

mikeh
Star Contributor
Star Contributor
Did you see the update on the JIRA issue?

What might be happening is that the server is returning URL's in the atom entries with port 8080, but the app is configured to use port 80. The app uses the full URLs that are generated by the server and only construct URLs for specific cases.

i.e. it might be your Apache proxy settings not fully proxying the return URLs. Maybe you could post a bit more config info about that?

Thanks,
Mike

dddanmar
Champ in-the-making
Champ in-the-making
Hi,

The JIRA reply got lost in my mail forwarding rules, I just saw it today.

I'm going to take a closer look at the data going through the proxy to see if Apache should be doing the URL rewrite at that point, or if Alfresco should be parsing the correct dns name instead.

Can you recommend what more info I can provide to help? I've got the rewrite rules as posted earlier, not sure what other configuration to list here.

Cheers,
Dan

gavinc
Champ in-the-making
Champ in-the-making
This turned out to be a configuration issue with the repository.

The bug associated with this post got moved to https://issues.alfresco.com/jira/browse/MOBILE-42 please refer to the comments on the JIRA issue for details of solution.

patrice
Champ in-the-making
Champ in-the-making
Hi,

We have the exact same problem as described in JIRA MOBILE-42 but we don't find the file spring-webscripts-config-custom.xml. Do we have to create it ? Or am I blind ?  Smiley Very Happy

Patrice