Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-859

Use File.createTempFile() when downloading files from a remote repository

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: None
    • Labels:
      None

      Description

      Use File.createTempFile() when downloading artifacts from a remote repository during a proxy request.

      Currently when a file is downloaded it is saved in a temporary location before being moved in place. If a second request for the same artifact is made it will try and write to the same location as the first request at the same time. This causes the repository server to return an error.

      This is common in use cases where Archiva is proxying a large file from a slow connecton.

        Activity

        Hide
        jameswdumay James William Dumay added a comment -

        Committed in r673685.

        Show
        jameswdumay James William Dumay added a comment - Committed in r673685.

          People

          • Assignee:
            james.w.dumay james.w.dumay
            Reporter:
            jameswdumay James William Dumay
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development