Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with MultipartrequestWrapper

 
tat jugran
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have got a problem..

Some one did crap code.. they have parameter in HttpServletRequest
.

Those parameters name contains space "white character" at the end.. So much code is done with the same..

In the same page now file upload is done. so the request coming in is now MultipartRequest.

When i am trying to upload file, these parameters with white space at the end are not containing any white space at the end.. I guess it is trimmed in the implementation. When i am not uploading file it is coming with white space..

Now you will say that i can trim the same and use, but so much code is done with the same.. and some values are appended after that space..

So some of the parameters are becoming like "variable_ 1231" existing code can not be changed..

Any one faced the same problem.. Is it MultipartRequestWrapper's problem .

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which MultipartRequestWrapper are you talking about? There are several. Regardless, it's not part of the servlet spec, so belongs in a different forum.
 
tat jugran
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its about jakartamultipart request.. where i should post it?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic