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

Jaikiran Pai <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Jaikiran Pai <[email protected]> ---
This looks like some server side change/policy that that URL might have placed.
I can access that URL from browser, curl and wget but when Ant tries it from
Java code, it's receiving a 403 error. In fact, even the following trivial Java
program (which is almost what Ant does internally) results in a 403:

import java.net.URL;
import java.io.InputStream;

public class Fetch {
     public static void main(final String[] args) throws Exception {
        final URL targetURL = new
URL("https://gitlab.com/MedisoArt/public/java-commons/raw/master/build.xml";);
         try (final InputStream is =
targetURL.openConnection().getInputStream()) {
             is.read();
         }
         System.out.println("Done");
     }
}

You might have to talk to whoever manages that URL to understand what
restrictions are in place to access that URL (and what changed on 23 March
2020). Maybe they are using some request headers to decide whether or not to
allow access to the resource.

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

Reply via email to