You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by delbd <de...@oma.be> on 2005/02/28 15:13:45 UTC
url rewriting fails with multipart/form-data
Hello,
Using struts and tomcat to handle a file upload form, i noticed the following
problem. If the browsers doesn't accept cookies or tomcat does not yet use
cookies with the involved session (ie we are at first page so tomcat is still
probing the browser), tomcat is unable to read the jsessionid from the url of
the multipart/form-data encoded POST. Method request.getUserPrincipal()
returns null. This does not happens if cookies are used (browser accept
cookies and tomcat has finished probing the browser) or if the form is a non
multipart one.
Does anyone knows how to, either
- Have tomcat be able to extract jsessionid from url when it is a multipart
POST
- Have tomcat use exclusively cookies (no url rewriting)
This is a big problem here as it prevent us to send emails with links to
fileupload struts form where authentification is required.
Thanks for help if any
--
David Delbecq
Royal Meteorological Institute of Belgium
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org