You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Roland Weber (JIRA)" <ji...@apache.org> on 2007/08/25 09:25:31 UTC

[jira] Created: (HTTPCLIENT-688) HttpOptions.getAllowedMethods expects single Allow header

HttpOptions.getAllowedMethods expects single Allow header
---------------------------------------------------------

                 Key: HTTPCLIENT-688
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-688
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.0 Alpha 1
            Reporter: Roland Weber
            Priority: Trivial


In client.methods.HttpOptions.getAllowMethods(), a single Allow header is parsed to obtain the result. Since the value is a comma-separated list, servers can optionally return the values in multiple headers. HttpMethod.getHeaders(name) should be used instead of .getFirstHeader(name).


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


[jira] Updated: (HTTPCLIENT-688) HttpOptions.getAllowedMethods expects single Allow header

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

Oleg Kalnichevski updated HTTPCLIENT-688:
-----------------------------------------

    Fix Version/s: 4.0 Alpha 3

> HttpOptions.getAllowedMethods expects single Allow header
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-688
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-688
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.0 Alpha 1
>            Reporter: Roland Weber
>            Priority: Trivial
>             Fix For: 4.0 Alpha 3
>
>
> In client.methods.HttpOptions.getAllowMethods(), a single Allow header is parsed to obtain the result. Since the value is a comma-separated list, servers can optionally return the values in multiple headers. HttpMethod.getHeaders(name) should be used instead of .getFirstHeader(name).

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


[jira] Updated: (HTTPCLIENT-688) HttpOptions.getAllowedMethods expects single Allow header

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

Andrea Selva updated HTTPCLIENT-688:
------------------------------------

    Attachment: fix_httpc_688.patch

I hope this is a suitable patch
Selva Andrea

> HttpOptions.getAllowedMethods expects single Allow header
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-688
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-688
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.0 Alpha 1
>            Reporter: Roland Weber
>            Priority: Trivial
>             Fix For: 4.0 Alpha 3
>
>         Attachments: fix_httpc_688.patch
>
>
> In client.methods.HttpOptions.getAllowMethods(), a single Allow header is parsed to obtain the result. Since the value is a comma-separated list, servers can optionally return the values in multiple headers. HttpMethod.getHeaders(name) should be used instead of .getFirstHeader(name).

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


[jira] Resolved: (HTTPCLIENT-688) HttpOptions.getAllowedMethods expects single Allow header

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

Oleg Kalnichevski resolved HTTPCLIENT-688.
------------------------------------------

    Resolution: Fixed

Patch checked in. I just made a minor change to it and replaced the array of Headers with our new shiny HeaderIterator. Many thanks for contributing the patch, Adrea

Oleg 

> HttpOptions.getAllowedMethods expects single Allow header
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-688
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-688
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.0 Alpha 1
>            Reporter: Roland Weber
>            Priority: Trivial
>             Fix For: 4.0 Alpha 3
>
>         Attachments: fix_httpc_688.patch
>
>
> In client.methods.HttpOptions.getAllowMethods(), a single Allow header is parsed to obtain the result. Since the value is a comma-separated list, servers can optionally return the values in multiple headers. HttpMethod.getHeaders(name) should be used instead of .getFirstHeader(name).

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