Archiva
  1. Archiva
  2. MRM-1374

Temporary directories created during remote proxy (when build was suddenly suspended in the middle of downloading artifacts) are not cleaned up

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: remote proxy
    • Labels:
      None
    • Number of attachments :
      0

      Description

      To reproduce this issue:

      1. Using the default configuration with repository 'internal' proxying 'central', set repository 'internal' as your mirror. Lock Maven to use only this with <mirrorOf>*</mirrorOf>
      2. Clean up your local repository
      • Build any project. In the middle of a download, disable your internet connection.

      Notice that the temporary working directory (ex. .workingdirectory4849954836595460673.tmp) is present in repository 'internal'. Try enabling your net connection again and build your project. The temporary working directory in 'internal' created from your previous download would still be there even after your project has already been built.

      This should be cleaned up after a certain time has passed during proxying or by a clean up consumer/plugin.

        Issue Links

          Activity

          Hide
          Maria Odea Ching added a comment -

          These temporary working directories also show up if you try to browse the repository from a browser.

          Show
          Maria Odea Ching added a comment - These temporary working directories also show up if you try to browse the repository from a browser.
          Hide
          Olivier Lamy added a comment -

          still the case ? As I can see the code contains finally block to cleanup those tmp directories.

          Show
          Olivier Lamy added a comment - still the case ? As I can see the code contains finally block to cleanup those tmp directories.
          Hide
          Olivier Lamy added a comment -

          no more issues fix for 1.3.x except security. Please use 2.x

          Show
          Olivier Lamy added a comment - no more issues fix for 1.3.x except security. Please use 2.x

            People

            • Assignee:
              Olivier Lamy
              Reporter:
              Maria Odea Ching
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: