Maven Wagon

Add support for uploading file with server-side umask setting

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: wagon-ssh
  • Labels:
    None
  • Number of attachments :
    1

Description

Here's a patch for wagon-ssh that uploads a file according to a set value of umask on the server side.

In our project, the project member uploads the file to the directory that directory mode is 2775. And, umask 002 is set to all the user accounts. However, wagon-ssh always up-loads the file by 644 permission when there is no filePermissions setting in the Maven's setting.xml file.

Issue Links

Activity

Hide
Brett Porter added a comment -

could you adapt your patch so that it's only triggered based on a configuration option?

Maybe <filePermissions>umask</filePermissions>?

In addition, I think you can reuse the executeCommand function for much of this

Show
Brett Porter added a comment - could you adapt your patch so that it's only triggered based on a configuration option? Maybe <filePermissions>umask</filePermissions>? In addition, I think you can reuse the executeCommand function for much of this
Hide
Brett Porter added a comment -

an alternate solution was put in place in WAGON-173

Show
Brett Porter added a comment - an alternate solution was put in place in WAGON-173

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: