Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324060

Summary: [build][hudson] Multiple builds are started at once
Product: z_Archived Reporter: Eike Stepper <stepper>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: 0.8.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Eike Stepper CLA 2010-08-31 03:47:59 EDT
Is this related to HTTP redirections?
Comment 1 Steffen Pingel CLA 2010-08-31 15:00:15 EDT
Looking at the HTTP dump it seems that indeed two requests are sent:

POST /job/test-parameterized/build HTTP/1.1
User-Agent: Mylyn/3.5.0 Apache XML-RPC/3.0 Eclipse/3.6.0 (org.eclipse.sdk.ide) HttpClient/3.1 Java/1.6.0_20 (Sun) Linux/2.6.34-020634rc6-generic (i386; en_CA)
Content-Length: 665
...
HTTP/1.1 302 Found
Server: Winstone Servlet Engine v0.9.10
Location: http://localhost:8080/job/test-parameterized/
Content-Length: 0
Connection: Keep-Alive
Date: Tue, 31 Aug 2010 18:56:45 GMT
X-Powered-By: Servlet/2.5 (Winstone/0.9.10)

POST /job/test-parameterized/build HTTP/1.1
User-Agent: Mylyn/3.5.0 Apache XML-RPC/3.0 Eclipse/3.6.0 (org.eclipse.sdk.ide) HttpClient/3.1 Java/1.6.0_20 (Sun) Linux/2.6.34-020634rc6-generic (i386; en_CA)
Content-Length: 665
Content-Type: application/x-www-form-urlencoded
...
HTTP/1.1 302 Found
Server: Winstone Servlet Engine v0.9.10
Location: http://localhost:8080/job/test-parameterized/
Content-Length: 0
Connection: Keep-Alive
Date: Tue, 31 Aug 2010 18:56:45 GMT
X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
Comment 2 Steffen Pingel CLA 2011-08-27 13:53:26 EDT
I have fixed the handling code. The request was indeed being send twice due to erroneous checking of the HTTP response code.
Comment 3 Steffen Pingel CLA 2011-08-27 13:53:30 EDT
Created attachment 202269 [details]
mylyn/context/zip