tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52579] New: Tomcat5.5.35+Java1.5 cannot return proper value of a request parameter
Date Thu, 02 Feb 2012 10:03:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52579

             Bug #: 52579
           Summary: Tomcat5.5.35+Java1.5 cannot return proper value of a
                    request parameter
           Product: Tomcat 5
           Version: 5.5.35
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: hayashihra@nttdata.co.jp
    Classification: Unclassified


Created attachment 28251
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28251
JSP file to reproduce the matter

(1) Overview

When I install Tomcat5.5.35+jdk1.5.0_22 and run the JSP(please see the attached
document),
I cannot get proper value of a request parameter.

I enter multibyte character (e.g. 10 or aa) into the textbox of the JSP,
it runs correcly and i can get the input value (e.g. 10 or aa).
But I enter 1 byte character (e.g. "1" or "a"),
it runs incorrectly and i can get nothing.

Please advise me.
(Our customers are also waiting for the reason.)
Thank you.


(2) Steps to Reproduce
[2-1] Install Tomcat5.5.35+jdk1.5.0_22
[2-2] Deploy the JSP file in the following directory.
      /apache-tomcat-5.5.35/webapps/jsp-examples
[2-3] Enter the 1 byte character (e.g. "1" or "0") to the textbox and push ok
button.


(3) Actual Results
The "message" shows nothing.


(4) Expected Results
The "message" shows the input character.


(5) Build Date & Platform
Build 2012-02-02 on Windows7
(I suppose it does not depend on the Platform.)


(6) Additional Information
Tomcat5.5.34+jdk1.5.0_22 runs correctly.
So the following codes may be the reason:

---
org.apache.tomcat.util.buf.ByteChunk.toStringInternal()

# Line514

CharBuffer cb;
cb = charset.decode(ByteBuffer.wrap(buff, start, end-start));
return new String(cb.array(), cb.arrayOffset(), cb.length());
---

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message