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

Bug 341854

Summary: Download server mirror re-direct incompatible with some HTTP clients
Product: Community Reporter: Konstantin Komissarchik <konstantin>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2011-04-04 19:26:59 EDT
We (Sapphire project) automate download of various dependencies from eclipse.org download server as part of the project build to allow contributors to build Sapphire locally from scratch. The build script uses standard Ant "get" task with a URL that asks for the first relevant proxy. 

The mirror re-direct script can re-direct to an FTP server. The problem is that if this happens, our build fails with the following message:

"Redirection detected from http to ftp. Protocol switch unsafe, not allowed."

This message comes from Ant get task. I have not found rationale for this, but it seems to me that this can affect clients other than Ant too. I can certainly think of cases where a re-direct to FTP is unsafe (such as when client is a behind a proxy that doesn't allow FTP).

I have confirmed via code inspection of the get task that there is no switch that we can set to force this to work.

Setting this to sev major as this breaks our build randomly and we have no workaround short of "keep retrying until mirror rotation changes". What I'd like to see is a URL switch that causes ftp mirrors to be ignored.
Comment 1 Denis Roy CLA 2011-04-05 09:14:44 EDT
You can add &protocol=http to force only http mirrors.
Comment 2 Konstantin Komissarchik CLA 2011-04-05 13:37:01 EDT
Perfect. Thanks!