Continuum
  1. Continuum
  2. CONTINUUM-2533

UpdateWorkingCopyPhaseTest fails in continuum-release, file url is incorrect

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4.0 (Beta)
    • Fix Version/s: 1.4.1
    • Component/s: SCM
    • Labels:
      None
    • Environment:
      Subversion-Kommandozeilenclient, Version 1.6.6-SlikSvn-tag-1.6.6@40358-WIN32.

      Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
      Java version: 1.6.0_17
    • Complexity:
      Intermediate
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      The error is: "Unable to open an ra_local session to URL".
      This can be corrected by adding a third "/" to the scm URL
      in line 114 (Revision 928595) to org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest
      so that the URL reads:
      "scm:svn:file:///" + projectUrl
      There is an empty hostname, so the third slash seems to be required,
      See
      http://svnbook.red-bean.com/nightly/en/svn.basic.in-action.html#svn.advanced.reposurls
      for reference.

      -------------------------------------------------------------------------------
      Test set: org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest
      -------------------------------------------------------------------------------
      Tests run: 3, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 12.032 sec <<< FAILURE!
      testWorkingDirDoesNotExist(org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest) Time elapsed: 10.922 sec <<< ERROR!
      org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to checkout project
      Provider message:
      The svn command failed.
      Command output:
      svn: Unable to open an ra_local session to URL
      svn: Unable to open repository 'file://d:/Development/workspace/external/continuum-1.4.0/continuum-release/target/scm-test/trunk'

      at org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhase.execute(UpdateWorkingCopyPhase.java:126)
      at org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest.testWorkingDirDoesNotExist(UpdateWorkingCopyPhaseTest.java:63)

      testWorkingDirAlreadyExistsWithProjectCheckout(org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest) Time elapsed: 0.453 sec <<< FAILURE!
      junit.framework.AssertionFailedError
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.assertTrue(Assert.java:20)
      at junit.framework.Assert.assertTrue(Assert.java:27)
      at org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest.testWorkingDirAlreadyExistsWithProjectCheckout(UpdateWorkingCopyPhaseTest.java:79)

      1. urlpatch
        0.7 kB
        Reimer Prochnow

        Activity

        Hide
        Brett Porter added a comment -

        Fixed way back in r990780

        Show
        Brett Porter added a comment - Fixed way back in r990780

          People

          • Assignee:
            Emmanuel Venisse
            Reporter:
            Reimer Prochnow
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: