Archiva
  1. Archiva
  2. MRM-859

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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

        James William Dumay created issue -
        james.w.dumay made changes -
        Field Original Value New Value
        Assignee James William Dumay [ james.w.dumay ]
        Fix Version/s 1.1 [ 13861 ]
        james.w.dumay made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        James William Dumay added a comment -

        Committed in r673685.

        Show
        James William Dumay added a comment - Committed in r673685.
        james.w.dumay made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:30:08 UTC 2015 [ 1428222608952 ]
        Mark Thomas made changes -
        Workflow jira [ 12707684 ] Default workflow, editable Closed status [ 12737187 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:01:51 UTC 2015 [ 1428267711911 ]
        Mark Thomas made changes -
        Workflow jira [ 12944726 ] Default workflow, editable Closed status [ 12982025 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        9m 33s 1 james.w.dumay 03/Jul/08 10:18
        In Progress In Progress Closed Closed
        13s 1 james.w.dumay 03/Jul/08 10:18

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development