Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 738181017A for ; Thu, 25 Jul 2013 18:27:55 +0000 (UTC) Received: (qmail 17567 invoked by uid 500); 25 Jul 2013 18:27:55 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 17523 invoked by uid 500); 25 Jul 2013 18:27:55 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 17420 invoked by uid 500); 25 Jul 2013 18:27:54 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 17290 invoked by uid 99); 25 Jul 2013 18:27:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jul 2013 18:27:54 +0000 Date: Thu, 25 Jul 2013 18:27:54 +0000 (UTC) From: "Animesh Chaturvedi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-1304) "mvn -pl :cloud-client-ui jetty:run" strips permission of files in script/ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-1304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Animesh Chaturvedi resolved CLOUDSTACK-1304. -------------------------------------------- Resolution: Fixed Resolving as I see commit from frank > "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, 4.2.0 > Reporter: frank zhang > Assignee: frank zhang > Fix For: 4.2.0 > > > "mvn -pl :cloud-client-ui jetty:run" calls ant task 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 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