Community
Participate
Working Groups
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.
You can add &protocol=http to force only http mirrors.
Perfect. Thanks!