[
https://issues.apache.org/jira/browse/HTTPCLIENT-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-832.
------------------------------------------
Resolution: Fixed
Sebastian,
Standard cookie specs now distinguish between format / syntax errors and
violations of restrictions imposed by a particular cookie specification.
CookieSpec#validate methods now throw CookieRestrictionViolationException
exception instead of MalformedCookieException in the latter case.
Please review and let me know if that fixes the problem for you.
Oleg
> MalformedCookieException: distinguish cookie syntax errors from cross-domain
> errors
> ------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-832
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-832
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpCookie
> Reporter: Sebb
> Priority: Minor
> Fix For: 4.1.0
>
>
> MalformedCookieException is used for both cookies with syntax errors,
> and for cookies which are invalid for the particular context - e.g.
> cross-domain cookies.
> I think it would be helpful to be able to distinguish these without
> needing to examine the message text.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]