incubator-cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-1304) "mvn -pl :cloud-client-ui jetty:run" strips permission of files in script/
Date Mon, 04 Mar 2013 20:05:12 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-1304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13592574#comment-13592574
] 

ASF subversion and git services commented on CLOUDSTACK-1304:
-------------------------------------------------------------

Commit d922f6fd4b41d939ee00c55638d8c5e8b56c8b77 in branch refs/heads/master from Hugo Trippaers
<trippie@gmail.com>
[ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=d922f6f ]

CLOUDSTACK-1304 Set permissions using the chmod ant task

                
> "mvn  -pl :cloud-client-ui jetty:run" strips permission of files in script/
> ---------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1304
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1304
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.1.0
>            Reporter: frank zhang
>            Assignee: frank zhang
>             Fix For: 4.1.0
>
>
> "mvn  -pl :cloud-client-ui jetty:run" calls ant task <copy> to copy files under
script/ to "${basedir}/target/generated-webapp/WEB-INF/classes/scripts">
> it will strip all permission on files to default system permission which erases execution
bit on script. the reason is 
> "Unix Note: File permissions are not retained when files are copied; they end up with
the default UMASK permissions instead. This is caused by the lack of any means to query or
set file permissions in the current Java runtimes. If you need a permission-preserving copy
function, use <exec executable="cp" ... > instead."
> http://ant.apache.org/manual/Tasks/copy.html
> this issue will prevent mgmt server executes any shell script due to lacking of execution
permission on script

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message