You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anton (JIRA)" <ji...@apache.org> on 2017/04/19 15:04:41 UTC

[jira] [Created] (MASSEMBLY-852) permissions are lost if is present

Anton created MASSEMBLY-852:
-------------------------------

             Summary: <directoryMode> permissions are lost if <include> is present
                 Key: MASSEMBLY-852
                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-852
             Project: Maven Assembly Plugin
          Issue Type: Bug
          Components: component descriptor, permissions
    Affects Versions: 3.0.0
         Environment: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T00:58:10+03:00)
Java version: 1.8.0_51, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_51/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.8.1.el6.x86_64", arch: "amd64", family: "unix"
            Reporter: Anton
            Priority: Minor
         Attachments: test.rar

Used next descriptor:
{code:xml}
    <assembly>
        <id>test</id>
        <formats>
                <format>zip</format>
        </formats>
         <includeBaseDirectory>false</includeBaseDirectory>
        <fileSets>
                <fileSet>
                        <directory>bin</directory>
                        <outputDirectory>bin-include</outputDirectory>
                        <includes>
                            <include>*</include>
                        </includes>
                        <directoryMode>700</directoryMode>
                        <fileMode>700</fileMode>
                </fileSet>
                <fileSet>
                        <directory>bin</directory>
                        <outputDirectory>bin-no-include</outputDirectory>
                        <directoryMode>700</directoryMode>
                        <fileMode>700</fileMode>
                </fileSet>
        </fileSets>
</assembly>
{code}

For both *<filesSets>* same *directoryMode* is set, but for case where *<include>* pattern is present directory permissions are broken.
Listing:
{noformat}
$ zipinfo target/testpom-1.0.0.zip
Archive:  target/testpom-1.0.0.zip
Zip file size: 502 bytes, number of entries: 4
drwxr-xr-x  2.0 unx        0 b- stor 17-Apr-19 17:48 bin-include/
drwx------  2.0 unx        0 b- stor 17-Apr-19 15:48 bin-no-include/
-rwx------  2.0 unx        0 bl defN 17-Apr-19 15:48 bin-include/testfile
-rwx------  2.0 unx        0 bl defN 17-Apr-19 15:48 bin-no-include/testfile
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)