Maven
  1. Maven
  2. MNG-4966

Preserve double slashes in the scm connection url - identifies absolute repository paths for mercurial

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.0.1
    • Fix Version/s: 3.0.2
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      The mercurial scm (hg) use double slashes after the hostname part of the repository url to identify that a repository path is absolute, as opposed to relative. Maven should not remove such double slashes from the scm connection url.

      The following is an example of a absolute repository path: scm:hg:ssh://localhost//opt/foo. Note the double slash between 'localhost' and 'opt', it is interpreted by hg as the absolute path /opt/foo on the server localhost.

      A relative repository url on the other hand, scm:hg:ssh://localhost/foo, is resolved relative to the user's home directory on the server localhost, f.x /home/user/foo.

      With maven 3.0 and 3.0.1 double slashes are silently removed and it is thus not possible to release a project that use a absolute scm connection url with mercurial.

      The provide patch removes the removal of double slashes from the url normalizer. It also change the test case for the removal code to test that url:s that contain double slashes are preserved instead.

        Issue Links

          Activity

          Fredrik Jonson created issue -
          Fredrik Jonson made changes -
          Field Original Value New Value
          Link This issue is related to SCM-581 [ SCM-581 ]
          Hide
          Benjamin Bentmann added a comment -

          Fixed in r1056720.

          Show
          Benjamin Bentmann added a comment - Fixed in r1056720 .
          Benjamin Bentmann made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 3.0.2 [ 16952 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Status Open [ 1 ] Closed [ 6 ]
          Benjamin Bentmann made changes -
          Link This issue is duplicated by SCM-581 [ SCM-581 ]
          Benjamin Bentmann made changes -
          Link This issue is related to SCM-581 [ SCM-581 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Link This issue is duplicated by SCM-581 [ SCM-581 ]
          Mark Thomas made changes -
          Workflow jira [ 12715223 ] Default workflow, editable Closed status [ 12755643 ]
          Mark Thomas made changes -
          Flags Patch [ 10430 ]
          Patch Submitted Yes [ 10763 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Link This issue is duplicated by SCM-581 [ SCM-581 ]
          Mark Thomas made changes -
          Workflow jira [ 12952110 ] Default workflow, editable Closed status [ 12990423 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          1h 37m 1 Benjamin Bentmann 08/Jan/11 08:47

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Fredrik Jonson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development