Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-203

patch: scp: honour repository directory permission mode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-alpha-5
    • wagon-ssh
    • None

    Description

      makes the Scp wagon to honor the directory mode. follow (posix?) mkdir conventions ("By default, the mode of created directories is 0777 (`a+rwx') minus the bits set in the umask").

      It remains the question whether the directory mode string should be shell escaped or if it was already validated before, or we trust the user (the best option!)

      M2 pom model doesn't support permission definition (¿yet?) so to test you need to inject some permisions when the Repository is created (i did it at org.apache.maven.artifact.manager.DefaultWagonManager@line 142)

      Attachments

        1. scp-honour-mode.diff
          6 kB
          Juan F. Codagnone

        Activity

          People

            trygvis Trygve Laugstol
            juam Juan F. Codagnone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: