Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-270

RemoteCatalogArchetypeDataSource leaves open wagon connection when archetype catalog retrieval fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-alpha-5
    • None
    • None

    Description

      If you have an archetype catalog entry with a bad url/archetype catalog file (the file isn't there), the RemoteArchetypeCatalogDataSource blows up when it tries to get the file over wagon. After it blows up, the wagon connection is not disconnected - as a result, there is an orphaned job in progress 'Updating indexes: 0%' (which is also badly named). The problem is on line 88:

      wagon.connect( wagonRepository );

      (get fails) >>>>>>> wagon.get( fileName , catalog );

      wagon.disconnect();
      return readCatalog( new FileReader( catalog ) );

      I assume it should disconnect in the catch() block below

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            sonady Dan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: