You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Leon Stein (JIRA)" <ji...@codehaus.org> on 2011/12/06 07:07:39 UTC

[jira] Issue Comment Edited: (MCHANGES-237) The goal jira-report always results in HTTP 400 error when accessing https://*.jira.com

    [ https://jira.codehaus.org/browse/MCHANGES-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284989#comment-284989 ] 

Leon Stein edited comment on MCHANGES-237 at 12/6/11 12:06 AM:
---------------------------------------------------------------

The problem is that HttpClient is refusing to accept authentication cookie from Jira, as it's set on domain starting with dot (.<company>.atlassian.net). Setting BROWSER_COMPATIBILITY cookie policy on HttpClient fixes the problem (see attached patch).



      was (Author: leons727):
    The problem is that HttpClient is refusing to accept authentication cookie from Jira, as it's set on domain starting with dot (.<company>.atlassian.net). Adding BROWSER_COMPATIBILITY to http client fixes the problem (see attached patch).


  
> The goal jira-report always results in HTTP 400 error when accessing https://*.jira.com
> ---------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-237
>                 URL: https://jira.codehaus.org/browse/MCHANGES-237
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: jira
>    Affects Versions: 2.4
>            Reporter: Gabriel Peter
>            Priority: Blocker
>         Attachments: fixed-MCHANGES237.patch
>
>
> The http-client used by plugin, rejects one of the cookies from https://company.jira.com and the missing cookie is the culprit of the 400 error. Maven 2.2.1 used. See extract below: 
> 27.4.2011 9:52:50 org.apache.commons.httpclient.HttpMethodBase processResponseHeaders
> WARNING: Cookie rejected: "$Version=0; studio.crowd.tokenkey=; $Path=/; $Domain=.davinci.jira.com". Illegal domain attribute ".davinci.jira.com". Domain of origin: "davinci.jira.com"
> 27.4.2011 9:52:50 org.apache.commons.httpclient.HttpMethodBase processResponseHeaders
> WARNING: Cookie rejected: "$Version=0; studio.crowd.tokenkey=M2peMiHnn4NggIbmyHpKEQ00; $Path=/; $Domain=.davinci.jira.com". Illegal domain attribute ".davinci.jira.com". Domain of origin: "davinci.jira.com"
> 27.4.2011 9:52:51 org.apache.commons.httpclient.HttpMethodBase getResponseBody
> WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira