Details

    • Number of attachments :
      3

      Description

      We would recommend that for upload of files to a repository that the following cases be handled to provide greater robustness.

      1.) All uploads be to a "staging" area, this staging area could be the same directory or a temp directory and would upload the file with the file name extension of

      Henk Penning comments:

      > That would be great.
      >
      > I think, the best way for adding/replace stuff is
      >
      > – write a 'temp'
      > – rename 'temp' to 'file'
      >
      > because a rename is truly atomic if 'temp' and 'file' are
      > in the same file system.
      >
      > If you can implement the 'temp' for 'file' to be,
      > for instance, '.tmp.file', I can easily teach the checkers
      > to ignore '.tmp.*' files. I think rsync does something
      > like that (even better .tmp.$$.file).
      >

      So the goals here are to verify that rsync handles ".tmp.$$.file" which will stop it from attempting to sync partial uploads. Henk can alter the md5 checking utilities at Apache to postpone checking .tmp files md5 signatures.

      2.) All file permissions on uploaded files would best handled to be only writable by the individual user, not writable by group and readable by all. All directory permissions should be writable for user and group and readable by all. This forces the following implementation to be required.

      Any file upload that attempts to overwrite a file should instead, move that file out of the way to a temporary location, upload to the new file using strategy (1) and then name it to the old file, once this is completed the old file can be removed. This provides a means be which file "ownership" can be determined and maintained. The problem this solves is the following, if files are "group writable" then any individual in the group can overwite the file altering its contents, historically we cannot tell who actually made the alteration. If there are concerns about the integrity of the artifact or its signature, it is unclear who was responsible for the alteration.

      -Mark Diggory

      1. wagon.patch
        9 kB
        Henry S. Isidro
      2. WAGON-19.patch
        16 kB
        Carlos Sanchez
      3. WebDavWagon.patch
        1 kB
        Henry S. Isidro

        Issue Links

          Activity

          Brett Porter made changes -
          Field Original Value New Value
          Assignee Brett Porter [ brettporter ]
          Brett Porter made changes -
          Fix Version/s 1.4.2 [ 11273 ]
          Brett Porter made changes -
          Assignee Brett Porter [ brettporter ]
          Brett Porter made changes -
          Fix Version/s 1.0-alpha-4 [ 10635 ]
          Key MPARTIFACT-39 WAGON-19
          Project maven-artifact-plugin [ 10319 ] wagon [ 10335 ]
          Fix Version/s 1.5 [ 10914 ]
          Brett Porter made changes -
          Fix Version/s 1.0-alpha-5 [ 11840 ]
          Carlos Sanchez made changes -
          Link This issue is depended upon by MDEPLOY-28 [ MDEPLOY-28 ]
          Carlos Sanchez made changes -
          Fix Version/s 1.0-alpha-7 [ 12280 ]
          Priority Major [ 3 ] Critical [ 2 ]
          Carlos Sanchez made changes -
          Component/s wagon-ssh-external [ 12156 ]
          Component/s wagon-ftp [ 12159 ]
          Component/s wagon-file [ 12150 ]
          Component/s wagon-ssh [ 12158 ]
          Component/s wagon-webdav [ 12157 ]
          Henry S. Isidro made changes -
          Attachment FtpWagon.patch [ 20384 ]
          Henry S. Isidro made changes -
          Attachment FtpWagon.patch [ 20384 ]
          Henry S. Isidro made changes -
          Attachment wagon.patch [ 20395 ]
          Henry S. Isidro made changes -
          Attachment WebDavWagon.patch [ 20396 ]
          Carlos Sanchez made changes -
          Attachment WAGON-19.patch [ 20704 ]
          Carlos Sanchez made changes -
          Link This issue is related to MNG-1905 [ MNG-1905 ]
          Emmanuel Venisse made changes -
          Fix Version/s 1.0-beta-1 [ 12280 ]
          Fix Version/s 1.0-beta-2 [ 12683 ]
          Carlos Sanchez made changes -
          Fix Version/s 1.0 [ 12544 ]
          Fix Version/s 1.0-beta-2 [ 12683 ]
          Brett Porter made changes -
          Workflow jira [ 28509 ] Maven New [ 88492 ]
          Brett Porter made changes -
          Fix Version/s 1.0-beta-3 [ 12544 ]
          Fix Version/s 1.x [ 13408 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Diggory
            • Votes:
              11 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: