Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2985

DefaultWagonManager does not safely remove TransferListeners from the wagon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-1
    • 3.0-alpha-1
    • None
    • None
    • osx intel, java 5

    Description

      The method "getRemoteFile()" registers several transfer listeners, but never removes them.
      The method "putRemoteFile()" might left transfer listeners registered if an exception is raised.

      The results is that executing those method repeteadly continously increments the number of listeners. When embedded, the problem is specially relevant (see http://jira.codehaus.org/browse/MNGECLIPSE-302).

      Attached is a patch with test cases.

      Attachments

        1. MNG-2985-maven-artifact.patch
          10 kB
          Abel Muiño
        2. MNG-2985-maven-artifact.patch
          8 kB
          Abel Muiño
        3. MNG-2985-maven-artifact.with-license.patch
          11 kB
          Abel Muiño

        Activity

          People

            carlos Carlos Sanchez Gonzalez
            amuino Abel Muiño
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: