You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gordon McNair (JIRA)" <ji...@codehaus.org> on 2010/09/24 01:55:32 UTC

[jira] Created: (MRELEASE-599) Generated tarball has damaged permissions

Generated tarball has damaged permissions
-----------------------------------------

                 Key: MRELEASE-599
                 URL: http://jira.codehaus.org/browse/MRELEASE-599
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
    Affects Versions: 2.0-beta-8
         Environment: Centos 5.5; Java 1.6; Hudson 1.366; Maven 2.1.0; Archiva 1.2.1
            Reporter: Gordon McNair


We have a POM that builds an assembly which contains war file and configuration file (script). When we deploy a SNAPSHOT build the tarball retains permissions as expected. When we do a release build using the release plugin (2.0-beta-8 the one pulled in by Maven 2.1.0) it produces the same tarball but the permissions of the entities in the tarball are "corrupted".

The current SNAPSHOT case tarball has content as follows:

-rw-rw-r-- hudson/hudson  1607 2010-09-14 15:38:06 opt/D/s/scripts/cTool.sh
-rw-rw-r-- hudson/hudson 14872500 2010-09-14 15:38:01 opt/D/s/apache-tomcat/webapps/s.war

The last release case tarball has content as follows:

-rw-r--r-- 0/0            1607 2010-08-04 17:25:23 opt/D/s/scripts/cTool.sh
-rwsrwsrwt 0/0        14846594 2010-08-04 17:24:19 opt/D/s/apache-tomcat/webapps/s.war

I intend to try force setting the permissions in the tarball to try and work around this.

-- 
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

        

[jira] Commented: (MRELEASE-599) Generated tarball has damaged permissions

Posted by "Gordon McNair (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236313#action_236313 ] 

Gordon McNair commented on MRELEASE-599:
----------------------------------------

As I've thought about this more I agree that the likely place the "problem" is in is the assembly area. The only strange thing was that it wasn't seen until running as part of doing a release and that building a snapshot doesn't see it.

If you think it's more appropriate this issue could be closed and I'll document it over in the assembly plugin.

> Generated tarball has damaged permissions
> -----------------------------------------
>
>                 Key: MRELEASE-599
>                 URL: http://jira.codehaus.org/browse/MRELEASE-599
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-8
>         Environment: Centos 5.5; Java 1.6; Hudson 1.366; Maven 2.1.0; Archiva 1.2.1
>            Reporter: Gordon McNair
>
> We have a POM that builds an assembly which contains war file and configuration file (script). When we deploy a SNAPSHOT build the tarball retains permissions as expected. When we do a release build using the release plugin (2.0-beta-8 the one pulled in by Maven 2.1.0) it produces the same tarball but the permissions of the entities in the tarball are "corrupted".
> The current SNAPSHOT case tarball has content as follows:
> -rw-rw-r-- hudson/hudson  1607 2010-09-14 15:38:06 opt/D/s/scripts/cTool.sh
> -rw-rw-r-- hudson/hudson 14872500 2010-09-14 15:38:01 opt/D/s/apache-tomcat/webapps/s.war
> The last release case tarball has content as follows:
> -rw-r--r-- 0/0            1607 2010-08-04 17:25:23 opt/D/s/scripts/cTool.sh
> -rwsrwsrwt 0/0        14846594 2010-08-04 17:24:19 opt/D/s/apache-tomcat/webapps/s.war
> I intend to try force setting the permissions in the tarball to try and work around this.

-- 
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

        

[jira] Commented: (MRELEASE-599) Generated tarball has damaged permissions

Posted by "Gordon McNair (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236310#action_236310 ] 

Gordon McNair commented on MRELEASE-599:
----------------------------------------

I did some more reading/research and found that MASSEMBLY-449 is an open issue on the assembly plugin that seems to describe this issue. They were resolving by going back to version 2.2-beta3 of that plugin from 2.2-beta5. We are using 2.2-beta4 of the plugin

The strange thing is that the same version of the assembly plugin works with normal deploys of snapshots but the problem manifests with artifacts built with release plugin.

I found an older release that uses release plugin 2.0-beta-8 and 2.2-beta2 of assembly but still exhibits the "corruption" of permissions in a tarball.

Not sure if this helps but you never know.

> Generated tarball has damaged permissions
> -----------------------------------------
>
>                 Key: MRELEASE-599
>                 URL: http://jira.codehaus.org/browse/MRELEASE-599
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-8
>         Environment: Centos 5.5; Java 1.6; Hudson 1.366; Maven 2.1.0; Archiva 1.2.1
>            Reporter: Gordon McNair
>
> We have a POM that builds an assembly which contains war file and configuration file (script). When we deploy a SNAPSHOT build the tarball retains permissions as expected. When we do a release build using the release plugin (2.0-beta-8 the one pulled in by Maven 2.1.0) it produces the same tarball but the permissions of the entities in the tarball are "corrupted".
> The current SNAPSHOT case tarball has content as follows:
> -rw-rw-r-- hudson/hudson  1607 2010-09-14 15:38:06 opt/D/s/scripts/cTool.sh
> -rw-rw-r-- hudson/hudson 14872500 2010-09-14 15:38:01 opt/D/s/apache-tomcat/webapps/s.war
> The last release case tarball has content as follows:
> -rw-r--r-- 0/0            1607 2010-08-04 17:25:23 opt/D/s/scripts/cTool.sh
> -rwsrwsrwt 0/0        14846594 2010-08-04 17:24:19 opt/D/s/apache-tomcat/webapps/s.war
> I intend to try force setting the permissions in the tarball to try and work around this.

-- 
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

        

[jira] Commented: (MRELEASE-599) Generated tarball has damaged permissions

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236312#action_236312 ] 

Brett Porter commented on MRELEASE-599:
---------------------------------------

The release plugin does a clean check out. Are you using SVN? Do you have the svn:executable property set to * for the shell file? You can confirm in target/checkout (in comparison to the current directory).

That said, this shouldn't affect the assembly since the file modes are configured in the assembly descriptor as you said. Those issues are probably a better place to pursue the problem.

> Generated tarball has damaged permissions
> -----------------------------------------
>
>                 Key: MRELEASE-599
>                 URL: http://jira.codehaus.org/browse/MRELEASE-599
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-8
>         Environment: Centos 5.5; Java 1.6; Hudson 1.366; Maven 2.1.0; Archiva 1.2.1
>            Reporter: Gordon McNair
>
> We have a POM that builds an assembly which contains war file and configuration file (script). When we deploy a SNAPSHOT build the tarball retains permissions as expected. When we do a release build using the release plugin (2.0-beta-8 the one pulled in by Maven 2.1.0) it produces the same tarball but the permissions of the entities in the tarball are "corrupted".
> The current SNAPSHOT case tarball has content as follows:
> -rw-rw-r-- hudson/hudson  1607 2010-09-14 15:38:06 opt/D/s/scripts/cTool.sh
> -rw-rw-r-- hudson/hudson 14872500 2010-09-14 15:38:01 opt/D/s/apache-tomcat/webapps/s.war
> The last release case tarball has content as follows:
> -rw-r--r-- 0/0            1607 2010-08-04 17:25:23 opt/D/s/scripts/cTool.sh
> -rwsrwsrwt 0/0        14846594 2010-08-04 17:24:19 opt/D/s/apache-tomcat/webapps/s.war
> I intend to try force setting the permissions in the tarball to try and work around this.

-- 
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

        

[jira] (MRELEASE-599) Generated tarball has damaged permissions

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MRELEASE-599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MRELEASE-599.
-----------------------------------

    Resolution: Not A Bug
      Assignee: Robert Scholte

Not a maven-release-plugin bug.
                
> Generated tarball has damaged permissions
> -----------------------------------------
>
>                 Key: MRELEASE-599
>                 URL: https://jira.codehaus.org/browse/MRELEASE-599
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-8
>         Environment: Centos 5.5; Java 1.6; Hudson 1.366; Maven 2.1.0; Archiva 1.2.1
>            Reporter: Gordon McNair
>            Assignee: Robert Scholte
>
> We have a POM that builds an assembly which contains war file and configuration file (script). When we deploy a SNAPSHOT build the tarball retains permissions as expected. When we do a release build using the release plugin (2.0-beta-8 the one pulled in by Maven 2.1.0) it produces the same tarball but the permissions of the entities in the tarball are "corrupted".
> The current SNAPSHOT case tarball has content as follows:
> -rw-rw-r-- hudson/hudson  1607 2010-09-14 15:38:06 opt/D/s/scripts/cTool.sh
> -rw-rw-r-- hudson/hudson 14872500 2010-09-14 15:38:01 opt/D/s/apache-tomcat/webapps/s.war
> The last release case tarball has content as follows:
> -rw-r--r-- 0/0            1607 2010-08-04 17:25:23 opt/D/s/scripts/cTool.sh
> -rwsrwsrwt 0/0        14846594 2010-08-04 17:24:19 opt/D/s/apache-tomcat/webapps/s.war
> I intend to try force setting the permissions in the tarball to try and work around this.

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