[ 
http://jira.codehaus.org/browse/MSITE-396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukas Theussl closed MSITE-396.
-------------------------------

         Assignee: Lukas Theussl
       Resolution: Fixed
    Fix Version/s: 2.1

The chmod command is now optional and configurable, see MSITE-141.

> Site Deployment with scpexe fails because of chmod exit code
> ------------------------------------------------------------
>
>                 Key: MSITE-396
>                 URL: http://jira.codehaus.org/browse/MSITE-396
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 2.0
>         Environment: Linux
>            Reporter: Klaus Reimer
>            Assignee: Lukas Theussl
>             Fix For: 2.1
>
>         Attachments: error.txt
>
>
> When deploying a site via scpexe protocol then Maven executes this command 
> after uploading the files:
>   chmod -Rf g+w,a+rX /somepath
> The target directory on the server does not belong to the user uploading the 
> files. The user has write permissions, but he is not the owner. And this 
> means that chmod fails. It displays no error message because of the -f 
> parameter but it returns an exit code 1 which is processed by Maven. The 
> result is the attached error message.
> When I change the owner of the target directory then it works but we can't do 
> this because we have multiple SSH users uploading the files. The permissions 
> are already correct on the server (They are handled by ACLs) so there is no 
> need to call chmod at all. So I suggest to let the user configure if chmod is 
> executed at all or to ignore the return value of chmod (If you already use -f 
> to hide error messages then you are most likely not interested in errors so 
> also ignoring the error code smells fine)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to