Ivy
  1. Ivy
  2. IVY-959

Listing of URL's under a given URL does not handle fully specified URL's

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC1
    • Fix Version/s: 2.1.0-RC1
    • Component/s: Core
    • Labels:
      None

      Description

      Listing of URL's under a given URL does not handle fully specified URL's thus failing resolution of dynamic versions with certain repositories. The following example is a directory listing returned by the Sonatype Nexus repository manager:

      <html>

      <head>

      <title>Index of /nexus/content/repositories/releases/myorganization/mymodule/</title>

      </head>

      <body>

      <h1>Index of /nexus/content/repositories/releases/myorganization/mymodule/</h1>

      <table cellspacing="10">

      <tr>

      <th align="left">Name</th>

      <th>Last Modified</th>

      <th>Size</th>

      <th>Description</th>

      </tr>

      <tr>

      <td>

      <a href="http://example.com/nexus/content/repositories/releases/myorganization/">Parent Directory

      </a>

      </td>

      </tr>

      <tr>

      <td>

      <a href="http://example.com/nexus/content/repositories/releases/myorganization/mymodule/1.0/">1.0/</a>

      </td>

      <td align="center">

      Tue Oct 28 00:41:33 PDT 2008

      </td>

      <td align="center">

      -

      </td>

      </tr>

      </table>

      </body>

      </html>

      The current implementation fails as it only supports the URL as a path (no protocol or server/port).

      A patch to add support for full URL's is attached.

        Activity

        Hide
        Jing Xue added a comment -

        Hi, would you please consider including this fix in the 2.0 release? Currently it doesn't seem to be merged into the 2.0.x branch. Thanks!

        Show
        Jing Xue added a comment - Hi, would you please consider including this fix in the 2.0 release? Currently it doesn't seem to be merged into the 2.0.x branch. Thanks!
        Hide
        Randy Nott added a comment -

        This works as desired, thank you.

        Show
        Randy Nott added a comment - This works as desired, thank you.
        Hide
        Maarten Coene added a comment -

        Thanks for your contribution!

        I've applied your patch into SVN trunk with an extra check that the fully-specified-URL must point to a sub-location of the base URL.
        Could you please give it a try to check if it works for your situation and post your findings here?

        Show
        Maarten Coene added a comment - Thanks for your contribution! I've applied your patch into SVN trunk with an extra check that the fully-specified-URL must point to a sub-location of the base URL. Could you please give it a try to check if it works for your situation and post your findings here?
        Hide
        Randy Nott added a comment -

        Patch file implementing a fix of this issue.

        Show
        Randy Nott added a comment - Patch file implementing a fix of this issue.

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Randy Nott
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development