DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38636>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38636 Summary: HttpState.clearCookies() should be synchronized Product: HttpClient Version: 3.0 RC2 Platform: Other OS/Version: other Status: NEW Severity: minor Priority: P2 Component: Commons HttpClient AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] The HttpState class has a clearCookies method that is not synchronized but should be considering it modifies an ArrayList (which is unsynchronized). All other methods which modify or read from the ArrayList are synchronized except the clearCookies method. I stumbled upon this fact because a webapp I am working on that uses HttpClient threw an IllegalArgumentException indicating that one of the cookies in the array returned from HttpState.getCookies() was null, which shouldn't be possible. Upon further inspection and testing, the only possible option is that the threadsafety hole left by the unsynchronized clearCookies method caused the issue. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
