Issue Details (XML | Word | Printable)

Key: WAGON-176
Type: Improvement Improvement
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Brett Porter
Reporter: Jun Futagawa
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven Wagon

Add support for uploading file with server-side umask setting

Created: 05/May/06 11:33 AM   Updated: 28/May/08 01:06 AM
Component/s: wagon-ssh
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File ScpWagon-server_side_umask.patch (6 kB)

Issue Links:
Duplicate
 


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Brett Porter added a comment - 27/May/08 12:16 PM
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


Brett Porter added a comment - 28/May/08 01:06 AM
an alternate solution was put in place in WAGON-173