https://bz.apache.org/bugzilla/show_bug.cgi?id=65489

            Bug ID: 65489
           Summary: http condition followRedirects="false" doesn't work
           Product: Ant
           Version: 1.10.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

If you define a condition:

    <http url="https://someURL"; followRedirects="false" />

...and it receives a redirect response, it will follow the redirection, rather
than stopping at that point.

This worked in versions before 1.10.10, but doesn't work (i.e. always follows
the redirection) in 1.10.10 and 1.10.11.

I believe this was caused by the changes for bug 65105. In the commit for that
issue:

https://github.com/apache/ant/commit/6dee37087/

...the new method redirectionAllowed() always returns true unconditionally at
the end when it isn't a protocol change. It seems like this should probably
return followRedirects instead.

For the time being, we've reverted to 1.10.9, and things are working as
expected.

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

Reply via email to