Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Attachments: head-get-request.txt
Components: core
Created: 13/Sep/12 3:41 AM
Description:

The Jenkins connector for Mylyn issues a HEAD / request followed by a GET /api/xml request. When an "Accept-Encoding: gzip" header is included in the requests, Jenkins sends unexpected content as part of the response to the HEAD request which breaks the HTTP connection.

This can be reproduced by running the Jenkins 1.481 and curl:

$ curl -v --keepalive -H "Accept-Encoding: gzip,deflate" --head http://localhost:8080/? http://localhost:8080/?

> HEAD /? HTTP/1.1
...
< HTTP/1.1 200 OK
< Set-Cookie: JSESSIONID.e8d41638=6c7970ab0aa9ccf39d999cdbe95f53d4; Path=/; <

  • Connection #0 to host localhost left intact
  • Connection #0 seems to be dead!
  • Closing connection #0
  • About to connect() to localhost port 8080 (#0)
  • Trying 127.0.0.1... connected
    > HEAD /? HTTP/1.1

Instead of keeping the connection alive curl closes it because the response wasn't valid.

This problem breaks the Jenkins connector for Mylyn: https://bugs.eclipse.org/bugs/show_bug.cgi?id=376468

Environment: Jenkins 1.458 and later. Reproduced on 1.466.1 and 1.481. The Jenkins instance is behind Apache using mod_proxy.
Project: Jenkins
Priority: Blocker Blocker
Reporter: Steffen Pingel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to