APAR status
Closed as program error.
Error description
IllegalStateException when content-length is set and client gets
disconnected before serving the request.
Local fix
N/A
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users setting *
* the content-length for a response. *
****************************************************************
* PROBLEM DESCRIPTION: An IllegalStateException is thrown when *
* the content-length is set and the *
* client is disconnected before serving *
* the request. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
Fix Pack 5.0.1 added a block of code to verify that the content
length set in response header is the same as written into the
response. An IllegalException is thrown if they do not match.
The code did not check the special case when an IOException has
been thrown because the client closed the connection. In such a
case, an IllegalStateException is thrown.
Problem conclusion
Code was added to prevent the IllegalStateException from being
thrown.
Temporary fix
Was 5.0.1 (ptf1) added a checking block in
HttpConnection.flush to make sure content-length set
and writen is the same.
The checking did not pay attention whether the connection
is bad or good.
To check bad connection, did the following in the test fix:
In ResponseStream.flush(), when IOException occurres,
call response.setBrokenConnection.
HttpResponse.setBrokenConenction() (new code)
calls connection.setBroken() that sets broken flag
in HttpConnection.
When HttpResponse.flush() checking contentLength,
it calls connection.isBroken() first.
If isBroken() returns true, the content length versification
block is ignored. Otherwise normal flow is executed.
Comments
APAR information |
APAR number |
PQ75699 |
Reported component name |
WEBSPHERE AE NT |
Reported component ID |
5630A2201 |
Reported release |
00A |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2003-06-26 |
Closed date |
2003-08-05 |
Last modified date |
2003-08-05 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
|
Fix information |
Fixed component name |
WAS BASE 5.0 |
Fixed component ID |
5630A3600 |
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
|