cancel
Showing results for 
Search instead for 
Did you mean: 

'Download URL did not contain all required args'

sethgregory
Champ in-the-making
Champ in-the-making
Running into an interesting problem here; suddenly, whenever I click on a file to download/view, I get this error.  Anybody seen it before?


11:23:05,536 ERROR [[localhost].[/].[downloadContent]] Servlet.service() for servlet downloadContent threw exception
java.lang.IllegalArgumentException: Download URL did not contain all required args: /download/direct/workspace/SpacesStore/f5260991-cfb2-11da-a03e-e367d5045061/Alfresco Pilot (Working Copy).doc
        at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:120)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
2 REPLIES 2

sethgregory
Champ in-the-making
Champ in-the-making
FYI, this has been fixed.   Alfresco 1.2 does not like it when you change the context of the application.  I had remapped Alfresco to run in the root context, and this broke the file download.  Mapping it back to /alfresco fixed it.

kevinr
Star Contributor
Star Contributor
You are correct. There is an aggressive check on the number of expected URL elements in the various Alfresco servlets. We will fix it to check for the use of "/" as the root web context.

I have raised a JIRA task for this:
http://www.alfresco.org/jira/browse/AWC-633

Thanks,

Kevin