Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-73

MirroredWagon infinite loop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.0-beta-3
    • None
    • None

    Description

      The MirroredWagon class includes a get method that runs into an infinite loop.

      I think a return is required after this.impl.get( resource, destination );

      public void get( String resource, File destination )
      throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
      {
      try
      {
      while ( true )
      {
      try

      { this.impl.get( resource, destination ); }

      catch ( TransferFailedException e )

      { nextMirror(); }

      }
      }
      catch ( ExhaustedMirrorsException e )
      {

      }
      }

      Attachments

        1. returnsonmirroredwagon.patch
          0.8 kB
          Phillip Webb
        2. WAGON-73-ConnectAndGetTest.patch
          2 kB
        3. WagonManagerTest.java.patch
          0.8 kB
          Phillip Webb

        Issue Links

          Activity

            People

              brianf Brian E Fox
              philwebb Phillip Webb
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: