You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2009/03/13 21:29:05 UTC

[jira] Created: (HTTPCLIENT-832) MalformedCookieException: distinguish cookie syntax errors from cross-domain errors

 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
            Reporter: Sebb
            Priority: Minor


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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] Updated: (HTTPCLIENT-832) MalformedCookieException: distinguish cookie syntax errors from cross-domain errors

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated HTTPCLIENT-832:
----------------------------

    Component/s: HttpCookie

>  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
>
> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] Resolved: (HTTPCLIENT-832) MalformedCookieException: distinguish cookie syntax errors from cross-domain errors

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] Closed: (HTTPCLIENT-832) MalformedCookieException: distinguish cookie syntax errors from cross-domain errors

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb closed HTTPCLIENT-832.
---------------------------


That looks very good - thanks for fixing this.

>  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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] Updated: (HTTPCLIENT-832) MalformedCookieException: distinguish cookie syntax errors from cross-domain errors

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCLIENT-832:
-----------------------------------------

    Fix Version/s: 4.1.0

>  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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org