PQ49986: JSPWRITER METHODS RETURN WRONG VALUE IF IT HANDLES DBCS.


APAR

APAR status
Closed as program error.

Error description
If DBCS charactor is in internal buffer of javax.servlet.
jsp.JspWriter class. Then getBuffersize() and getRemaining()
return invalid value.
API document of JspWriter says that getRemaining() method
should return the size of the buffer in bytes.
But Websphere's implementation returns the number of chars
instead of bytes.
Local fix
Problem summary
<html><body><% int a, b, c; %><% a = out.getRemaining(); %>X<% b = out.getRemaining(); %>Y<% c
=out.getRemaining();><pre>
a = <%= a %>
b = <%= b %>
c = <%= c %></pre></html>
You will see the value of out.getRemaining() be reduced by 2 for
char printed. Can run this jsp before and after 3.55.  The
diff is that 3.55 will be 2 times 3.54.
Problem conclusion
ptf.
Temporary fix
Comments
APAR information
APAR numberPQ49986
Reported component nameWAS ADVANCED SU
Reported component ID5648C8402
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2001-06-26
Closed date2001-08-22
Last modified date2001-08-22

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:APAR is sysrouted FROM one or more of the following:


Modules/Macros
ENGINE
APAR is sysrouted TO one or more of the following:Modules/Macros

Fix information
Fixed component nameWAS ADVANCED SU
Fixed component ID5648C8402

Applicable component levels
R350 PSYUP











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
Software version: 350
Reference #: PQ49986
IBM Group: Software Group
Modified date: 2001-08-22