Barracuda: Bug in HttpServletRequestWrapper.getParameterMap()?
"Udovenko Sergey" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <484A6CA492BE654395D208B1D8D5393974C905@SOMEXEVS001.ex.ordersx.org> |
Seems like there is a bug in the
HttpServletRequestWrapper.getParameterMap() method.
According to the specification, this method suppose to return a map
where values are String[] (arrays). But current implementation returning
a map with just String values instead.
Following quick fix worked for me:
public Map getParameterMap()
{
Map paramMap = new HashMap();
for (Enumeration e = getParameterNames(); e.hasMoreElements();)
{
String name = (String)e.nextElement();
paramMap.put(name, getParameterValues(name));
}
return paramMap;
}
regards,
Sergey Udovenko
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company.
_______________________________________________
Barracuda mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/barracuda
FAQ - http://www.jguru.com/faq/Barracuda