[OPENAM-5065] PLLClient should call getErrorStream() to get response body on IOException. Created: 20/Nov/14  Updated: 20/Nov/16  Resolved: 20/Nov/16

Status: Closed
Project: OpenAM
Component/s: other
Affects Version/s: 10.0.2, 11.0.0, 11.0.2, 12.0.0
Fix Version/s: 10.0.3, 11.0.3, 12.0.1, 13.0.0

Type: Improvement Priority: Minor
Reporter: Jonathan Thomas Assignee: Jonathan Thomas
Resolution: Fixed Votes: 0
Labels: release-notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Support Ticket IDs:

 Description   

In PLLClient.send() refactor to call getErrorStream() as suggested in following link

https://docs.oracle.com/javase/6/docs/technotes/guides/net/http-keepalive.html

When calling getInputStream() from HttpURLConnection, if an IOException occurs, catch the exception and call getErrorStream() to get the response body (if there is any)

With Keep-Alive connections you should not abandon a connection by ignoring the response body. Doing so may results in idle TCP connections.



 Comments   
Comment by Jonathan Thomas [ 16/Jan/15 ]

Fixed with r12087 trunk, r12088 for 12.0.x , r12089 for 11.0.x and r12090 for 10.0.x

Comment by Quentin CASTEL [X] (Inactive) [ 20/Nov/16 ]

modification of the status, in order to migrate the 'Zendesk ID' field to 'Support Ticket ID' field.

Comment by Quentin CASTEL [X] (Inactive) [ 20/Nov/16 ]

modification of the status, in order to migrate the 'Zendesk ID' field to 'Support Ticket ID' field.

Generated at Tue Oct 27 07:29:31 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.