Hello,
I have a similar problem using the pseudo protocol upload : the file uploaded
is well copied in a destination folder if its size is under the authorized
size, otherwise an exception is raised but I can't handle it with a
"map:handle-errors" construction.
Any idea ?
<map:pipeline>
<map:match pattern="FileUpload">
<map:act type="copy-source" src="upload://NewFile">
<map:parameter name="dest" value="{global:UserFiles}{CurrentFolder}"/>
</map:act>
<map:act type="resource-exists"
src="{global:UserFiles}{CurrentFolder}{request-param:uploaded_file}">
... // OK here
</map:act>
... // display a page error
</map:match>
</map:pipeline>
-----Message d'origine-----
De : Maik Zygan [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 18 janvier 2006 14:48
À : [email protected]
Objet : Content length exceeds maximum upload size.
Hi,
Everytime I try to upload a file that's larger then the configured upload size
I get the following exception.
<map:handle-errors> Does'nt work, the problem looks like this exception is
handled by the servlet itself.
Does enyone know how I get Cocoon not to display this exception?
I'm using Apache 2.1.7
Problem in creating the Request
Message: Content length exceeds maximum upload size.
Description: java.io.IOException: Content length exceeds maximum upload size.
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
cause
java.io.IOException: Content length exceeds maximum upload size.
request-uri
/platform/ebp/pk/ebp-portlets
full exception chain stacktrace
java.io.IOException: Content length exceeds maximum upload size.
at
org.apache.cocoon.servlet.multipart.RequestFactory.getServletRequest(RequestFactory.java:78)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1029)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
stacktrace
java.io.IOException: Content length exceeds maximum upload size.
at
org.apache.cocoon.servlet.multipart.RequestFactory.getServletRequest(RequestFactory.java:78)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1029)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Apache Cocoon 2.1.7
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]