Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005018 [Resin] minor always 04-02-12 23:11 04-04-12 16:15
Reporter ralscha View Status public  
Assigned To alex
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.28 Product Version 4.0.27
  Product Build
Summary 0005018: Part.getHeader method not case insensitive
Description According to javadoc
(http://download.oracle.com/otndocs/jcp/servlet-3.0-fr-oth-JSpec/) [^] the
parameter from the javax.servlet.http.Part.getHeader(..) method should be case
insensitive. Tomcat 7.0.26 handles this correctly, but Resin does not.

"Returns the value of the specified mime header as a String. If the Part did
not include a header of the specified name, this method returns null. If there
are multiple headers with the same name, this method returns the first header
in the part. The header name is case insensitive. You can use this method with
any request header."

The browser sends: Content-Disposition
Resin stores it lowercase: content-disposition

Resin only returns the header with
  part.getHeader("content-disposition")
With
  part.getHeader("Content-Disposition")
it returns nothing.

There is a github project that demonstrates the problem
https://github.com/ralscha/uploadproblem [^]
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0005734)
alex
04-04-12 16:15

server/1652
 

- Issue History
Date Modified Username Field Change
04-02-12 23:11 ralscha New Issue
04-04-12 15:53 alex Status new => assigned
04-04-12 15:53 alex Assigned To  => alex
04-04-12 16:14 alex Assigned To alex =>
04-04-12 16:14 alex Assigned To  => alex
04-04-12 16:15 alex Status assigned => closed
04-04-12 16:15 alex Note Added: 0005734
04-04-12 16:15 alex Resolution open => fixed
04-04-12 16:15 alex Fixed in Version  => 4.0.28


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker