https://bz.apache.org/bugzilla/show_bug.cgi?id=65105
--- Comment #3 from Jaikiran Pai <[email protected]> --- I gave this a quick try and indeed, there's an issue here even with setInstanceFollowRedirects being set on the HttpURLConnection that we use internally. So I decided to keep out Ant from the equation and directly try a trivial Java code which uses HttpURLConnection to reproduce this issue by setting HttpURLConnection.setInstanceFollowRedirects(true); even that doesn't follow this specific redirect which happens from the "http" protocol to an "https" protocol. So turns out (like you say) this is a known design decision at the JDK level https://bugs.openjdk.java.net/browse/JDK-6810084. Clearly, we (Ant) need to come up with a custom solution here (and similar tasks like Get). [1] https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java#L2755 -- You are receiving this mail because: You are the assignee for the bug.
