cancel
Showing results for 
Search instead for 
Did you mean: 

Download link error for file names with spaces in between

sureshj
Champ in-the-making
Champ in-the-making
Actually I have two problems to be encountered with Alfresco Share:

First, Download link error for file names with spaces
Second, Preview does not load the document at all

I have given the error info for download link:

URL: http://<companydomain.com>/share/proxy/alfresco/api/node/content/workspace/SpacesStore/6dc74319-5c9f-459b-9dda-0aa4bff00694/Demo%20Scenarios.doc?a=true

Do anybody experienced this problem before? I could not see any topic on this yet. Can anybody help out to fix this issue?

Thanks
Suresh

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.alfresco.error.AlfrescoRuntimeException: Error during endpoint proxy processing: Invalid uri 'http://<companydomain.com>/alfresco/wcs/api/node/content/workspace/SpacesStore/6dc74319-5c9f-459b-9dda-0aa4bff00694/Demo Scenarios.doc?a=true': escaped absolute path not valid
   org.alfresco.web.scripts.servlet.EndPointProxyServlet.service(EndPointProxyServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.IllegalArgumentException: Invalid uri 'http://<companydomain.com>/alfresco/wcs/api/node/content/workspace/SpacesStore/6dc74319-5c9f-459b-9dda-0aa4bff00694/Demo Scenarios.doc?a=true': escaped absolute path not valid
   org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
   org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
   org.alfresco.connector.RemoteClient.service(RemoteClient.java:524)
   org.alfresco.connector.RemoteClient.call(RemoteClient.java:412)
   org.alfresco.connector.HttpConnector.call(HttpConnector.java:140)
   org.alfresco.connector.AuthenticatingConnector.call(AuthenticatingConnector.java:294)
   org.alfresco.web.scripts.servlet.EndPointProxyServlet.service(EndPointProxyServlet.java:255)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
7 REPLIES 7

jpfi
Champ in-the-making
Champ in-the-making
Hi,
did you everfind a solution to this problem? I'm currently facing the same…
cheers, jan

mikeh
Star Contributor
Star Contributor
Are you using a proxy server? I don't know of a fix right now if you are, but I suspect that might be causing the issue…

Thanks,
Mike

jpfi
Champ in-the-making
Champ in-the-making
Hi Mike,
yub, browsed the web last week & found the solution. We used an Apache with mod_jk in front of our tomcat & and our jkOption configs were wrong.
here is a helpful website about jkOption pitfalls: http://temporary.name/java/index.php/uncategorized/mod_jk-pitfalls-jkoptions-and-request-uri-handlin...
Cheers, jan

sureshj
Champ in-the-making
Champ in-the-making
With Apache HTTP 2.2 and mod_jk to forward requests to Alfresco Tomcat

Added the following VirtualHost entry
JkOptions     +ForwardURICompatUnparsed
to my VirtualHost configuration and it works fine now.

iseyfi
Champ in-the-making
Champ in-the-making
I am having a similar issue but it is not with opening files. I have a remote call to Repository. In the call the variable that is being passed contains a space. I get the same error. Here is the exact error message.

Exception: java.lang.IllegalArgumentException - Invalid uri 'http://alfresco.domain.com:8080/alfresco/wcs/api/groups/Domain Employees/children?authorityType=USER': escaped absolute path not valid

You can see that I am trying to get members of a group called Domain Employees. Since it uses the port 8080, it is by passing apache. Any ideas why this is happening?

thanks in advance.

iseyfi
Champ in-the-making
Champ in-the-making
I originally thought the URL was being encoded but turns out it was not being encoded. I used stringUtils.urlEncode("Domain Employees") and it worked.

skliarie
Champ in-the-making
Champ in-the-making
We use webdav for "Edit Online" in MS Office. Files without spaces in them are opened perfectly, the problem is with spaces. Requests for files with spaces in the name always return "Authorization failed" error.

It happens both when the proxied by apache or accessed directly on port 7070:

https://docs.COMPANYNAME.com:7070/alfresco/mysite/documentLibrary/Test%20Folder%202/Sub%20Folder%202...

Any idea?