Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341854 - Download server mirror re-direct incompatible with some HTTP clients
Summary: Download server mirror re-direct incompatible with some HTTP clients
Status: RESOLVED WORKSFORME
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Website (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: phoenix.ui CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 19:26 EDT by Konstantin Komissarchik CLA
Modified: 2011-04-05 13:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!