Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1633

Unable to follow redirects with user info in URL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • Maven Compatibility
    • None

    Description

      Maven2 compatible repositories sending 302 redirect with user info embedded in the location response header are followed properly by Maven but not by Ivy.

      See example at https://github.com/aklivity/toystore.

      % ./mvnw dependency:resolve

      [INFO] Scanning for projects...

      [INFO] 

      [INFO] -------------------< io.aklivity.sandbox:toystore >-------------------

      [INFO] Building toystore develop-SNAPSHOT

      [INFO] -------------------------------[ jar ]--------------------------------

      Downloading from anonymous: https://maven.packages.aklivity.io/io/aklivity/sandbox/toys/0.3/toys-0.3.pom

      Downloaded from anonymous: https://maven.packages.aklivity.io/io/aklivity/sandbox/toys/0.3/toys-0.3.pom (550 B at 348 B/s)

      Downloading from anonymous: https://maven.packages.aklivity.io/io/aklivity/sandbox/parent/0.3/parent-0.3.pom

      Downloaded from anonymous: https://maven.packages.aklivity.io/io/aklivity/sandbox/parent/0.3/parent-0.3.pom (1.8 kB at 1.9 kB/s)

      Downloading from anonymous: https://maven.packages.aklivity.io/io/aklivity/sandbox/toys/0.3/toys-0.3.jar

      Downloaded from anonymous: https://maven.packages.aklivity.io/io/aklivity/sandbox/toys/0.3/toys-0.3.jar (1.5 kB at 1.4 kB/s)

      [INFO] 

      [INFO] — maven-dependency-plugin:2.8:resolve (default-cli) @ toystore —

      [INFO] 

      [INFO] The following files have been resolved:

      [INFO]    io.aklivity.sandbox:toys:jar:0.3:compile

      [INFO] 

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD SUCCESS

      [INFO] ------------------------------------------------------------------------

      whereas for Ivy

      % ant

      Buildfile: /Users/jfallows/GitHub/aklivity/toystore/build.xml

       

      resolve:

      [ivy:convertpom] :: Apache Ivy 2.5.0 - 20191020104435 :: https://ant.apache.org/ivy/ ::

      [ivy:convertpom] :: loading settings :: file = /Users/jfallows/GitHub/aklivity/toystore/ivysettings.xml

      [ivy:retrieve] :: resolving dependencies :: io.aklivity.sandbox#toystore;develop-SNAPSHOT

      [ivy:retrieve] confs: [default, master, compile, provided, runtime, test, system, sources, javadoc, optional]

      [ivy:retrieve] :: resolution report :: resolve 1148ms :: artifacts dl 0ms

      ---------------------------------------------------------------------

                                    modules              artifacts  
            conf       number search dwnlded evicted number dwnlded

      ---------------------------------------------------------------------

            default       1     0     0     0     0     0  
            master        0     0     0     0     0     0  
            compile       1     0     0     0     0     0  
          provided       0     0     0     0     0     0  
            runtime       1     0     0     0     0     0  
            test         1     0     0     0     0     0  
            system        0     0     0     0     0     0  
            sources       0     0     0     0     0     0  
            javadoc       0     0     0     0     0     0  
          optional       0     0     0     0     0     0  

      ---------------------------------------------------------------------

      [ivy:retrieve] 

      [ivy:retrieve] :: problems summary ::

      [ivy:retrieve] :::: WARNINGS

      [ivy:retrieve] module not found: io.aklivity.sandbox#toys;0.3

      [ivy:retrieve] ==== ibiblio: tried

      [ivy:retrieve]   https://maven.packages.aklivity.io/io/aklivity/sandbox/toys/0.3/toys-0.3.pom

      [ivy:retrieve]   – artifact io.aklivity.sandbox#toys;0.3!toys.jar:

      [ivy:retrieve]   https://maven.packages.aklivity.io/io/aklivity/sandbox/toys/0.3/toys-0.3.jar

      [ivy:retrieve] ==== ibiblio: tried

      [ivy:retrieve]   https://repo1.maven.org/maven2/io/aklivity/sandbox/toys/0.3/toys-0.3.pom

      [ivy:retrieve]   – artifact io.aklivity.sandbox#toys;0.3!toys.jar:

      [ivy:retrieve]   https://repo1.maven.org/maven2/io/aklivity/sandbox/toys/0.3/toys-0.3.jar

      [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::

      [ivy:retrieve] ::          UNRESOLVED DEPENDENCIES         ::

      [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::

      [ivy:retrieve] :: io.aklivity.sandbox#toys;0.3: not found

      [ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::

      [ivy:retrieve] 

      [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

      Attachments

        1. ivy-userinfo.patch
          1 kB
          John Robert Fallows

        Activity

          People

            Unassigned Unassigned
            jfallows John Robert Fallows
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: