grails / grails-core

The Grails Web Application Framework
http://grails.org
Apache License 2.0
2.78k stars 950 forks source link

GRAILS-1938: Redirect Fails on Multi-Part File Upload #6592

Closed graemerocher closed 9 years ago

graemerocher commented 16 years ago

Original Reporter: scottdelap Environment: Not Specified Version: 1.0-RC1 Migrated From: http://jira.grails.org/browse/GRAILS-1938

After completing a multi-part file upload, I attempt to perform a redirect. At this point the code fails. It appears as if the request is being processed twice. Since the file has already been read from the request the following error results:

org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadBase$UnknownSizeException: the request was rejected because its size is unknown

An example application illustrating the issue is attached.

graemerocher commented 16 years ago

graemerocher said: Hmm your application works fine for me have you tried the RC2 release? What platform are you on?

graemerocher commented 16 years ago

domix said: I´m using RC2 with WebFlow and the error persist

graemerocher commented 16 years ago

valdemar said: I also see this after upgrading my grails-application to RC2 on OSX Leopard.

graemerocher commented 16 years ago

graemerocher said: Can one of you two post an app that reproduces the problem, because for me the problem doesn't occur with the current attached sample app

graemerocher commented 16 years ago

scottdelap said: Never thought of just checking Safari as the issue. Still odd.

graemerocher commented 16 years ago

graemerocher said: Hmm ok now that gives me something to go on. I'll investigate again. Thanks

graemerocher commented 16 years ago

wangjammer5 said: Is this the same bug that JIRA and other applications suffer from with Safari 3? There is a known issue with redirects in Safari