You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2013/01/04 21:29:40 UTC

[Bug 54374] New: ant get does not support 307 redirect

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: notifications@ant.apache.org
          Reporter: vbaarda@adaptivecomputing.com
    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.

[Bug 54374] ant get does not support 307 redirect

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54374

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |1.9.0

--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
fixed with svn revision 1429209

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54374] ant get does not support 307 redirect

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54374

--- Comment #2 from Vance Baarda <vb...@adaptivecomputing.com> ---
Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.