https://issues.apache.org/bugzilla/show_bug.cgi?id=54374
Bug ID: 54374
Summary: ant get does not support 307 redirect
Product: Ant
Version: 1.8.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
In
http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java
is this code:
if (responseCode == HttpURLConnection.HTTP_MOVED_PERM ||
responseCode == HttpURLConnection.HTTP_MOVED_TEMP ||
responseCode == HttpURLConnection.HTTP_SEE_OTHER)
Notice that this statement supports HTTP codes 301, 302, and 303, but not the
newer code 307. We noticed this problem because Nexus uses 307 to redirect.
References:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.8
https://issues.sonatype.org/browse/NEXUS-5246
--
You are receiving this mail because:
You are the assignee for the bug.