You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Heinze (JIRA)" <ji...@codehaus.org> on 2006/05/23 17:24:40 UTC

[jira] Created: (MASSEMBLY-104) fileMode doesn't work with Cygwin

fileMode doesn't work with Cygwin
---------------------------------

         Key: MASSEMBLY-104
         URL: http://jira.codehaus.org/browse/MASSEMBLY-104
     Project: Maven 2.x Assembly Plugin
        Type: Bug

    Versions: 2.1    
 Environment: Windows 2002 XP Pro running Cygwin
    Reporter: Mark Heinze


The fileMode does not correctly set the permissions on the file. This happens in the <files><file></file></files> tag in the asssembly XML file. Any files copied with this tag ends up with strange permissions (including those with the default fileMode).



-- 
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] Updated: (MASSEMBLY-104) fileMode doesn't work with Cygwin

Posted by "toli kuznets (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-104?page=all ]

toli kuznets updated MASSEMBLY-104:
-----------------------------------

    Attachment: assembly-bug.tar

> fileMode doesn't work with Cygwin
> ---------------------------------
>
>          Key: MASSEMBLY-104
>          URL: http://jira.codehaus.org/browse/MASSEMBLY-104
>      Project: Maven 2.x Assembly Plugin
>         Type: Bug

>     Versions: 2.1
>  Environment: Windows 2002 XP Pro running Cygwin
>     Reporter: Mark Heinze
>  Attachments: assembly-bug.tar
>
>
> The fileMode does not correctly set the permissions on the file. This happens in the <files><file></file></files> tag in the asssembly XML file. Any files copied with this tag ends up with strange permissions (including those with the default fileMode).

-- 
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] Closed: (MASSEMBLY-104) fileMode doesn't work with Cygwin

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-104?page=all ]

John Casey closed MASSEMBLY-104.
--------------------------------

         Assignee: John Casey
       Resolution: Fixed
    Fix Version/s: 2.2

fixed in refactor. Two ITs - in the src/it/file-modes directory cover this.

> fileMode doesn't work with Cygwin
> ---------------------------------
>
>                 Key: MASSEMBLY-104
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-104
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows 2002 XP Pro running Cygwin
>            Reporter: Mark Heinze
>         Assigned To: John Casey
>             Fix For: 2.2
>
>         Attachments: assembly-bug.tar
>
>
> The fileMode does not correctly set the permissions on the file. This happens in the <files><file></file></files> tag in the asssembly XML file. Any files copied with this tag ends up with strange permissions (including those with the default fileMode).

-- 
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: (MASSEMBLY-104) fileMode doesn't work with Cygwin

Posted by "Simon Goodall (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-104?page=comments#action_67928 ] 

Simon Goodall commented on MASSEMBLY-104:
-----------------------------------------

The problem is a bug in the number parsing.
The processFileList method in AbstractAssemblyMojo.java has the following line;

                archiver.addFile( source, outputDirectory + "/" + destName,
                                  Integer.parseInt( fileItem.getFileMode() ) );

which should read;

                archiver.addFile( source, outputDirectory + "/" + destName,
                                  Integer.parseInt( fileItem.getFileMode(), 8 ) );


> fileMode doesn't work with Cygwin
> ---------------------------------
>
>          Key: MASSEMBLY-104
>          URL: http://jira.codehaus.org/browse/MASSEMBLY-104
>      Project: Maven 2.x Assembly Plugin
>         Type: Bug

>     Versions: 2.1
>  Environment: Windows 2002 XP Pro running Cygwin
>     Reporter: Mark Heinze

>
>
> The fileMode does not correctly set the permissions on the file. This happens in the <files><file></file></files> tag in the asssembly XML file. Any files copied with this tag ends up with strange permissions (including those with the default fileMode).

-- 
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: (MASSEMBLY-104) fileMode doesn't work with Cygwin

Posted by "toli kuznets (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-104?page=comments#action_69628 ] 

toli kuznets commented on MASSEMBLY-104:
----------------------------------------

I have a similar problem on both OSX 10.4.7 and on Ubuntu Linux.

for me, permissions are completely ignored, regardless of whether i specify them or not
In fact, they come up as this:
toli@tolimac:~/dev/ossProjects/assembly-bug$ l target/assembly-bug-1.0-bin/
total 16
--w----r-T   1 toli  toli  12 Jul 12 15:08 fileA
--w----r-T   1 toli  toli  12 Jul 12 15:08 fileB


i'm attaching the tarball with the sample POM that produces this. it doesn't matter whether i run assembly:directory or assembly:assembly

Seems like this was fixed in bug #70 but maybe it came back?

> fileMode doesn't work with Cygwin
> ---------------------------------
>
>          Key: MASSEMBLY-104
>          URL: http://jira.codehaus.org/browse/MASSEMBLY-104
>      Project: Maven 2.x Assembly Plugin
>         Type: Bug

>     Versions: 2.1
>  Environment: Windows 2002 XP Pro running Cygwin
>     Reporter: Mark Heinze

>
>
> The fileMode does not correctly set the permissions on the file. This happens in the <files><file></file></files> tag in the asssembly XML file. Any files copied with this tag ends up with strange permissions (including those with the default fileMode).

-- 
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] Updated: (MASSEMBLY-104) fileMode doesn't work with Cygwin

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MASSEMBLY-104:
---------------------------------

    Fix Version/s:     (was: 2.2)
                   2.2-beta-1

> fileMode doesn't work with Cygwin
> ---------------------------------
>
>                 Key: MASSEMBLY-104
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-104
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows 2002 XP Pro running Cygwin
>            Reporter: Mark Heinze
>         Assigned To: John Casey
>             Fix For: 2.2-beta-1
>
>         Attachments: assembly-bug.tar
>
>
> The fileMode does not correctly set the permissions on the file. This happens in the <files><file></file></files> tag in the asssembly XML file. Any files copied with this tag ends up with strange permissions (including those with the default fileMode).

-- 
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: (MASSEMBLY-104) fileMode doesn't work with Cygwin

Posted by "Julian Wood (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-104?page=comments#action_67550 ] 

Julian Wood commented on MASSEMBLY-104:
---------------------------------------

It doesn't work in my setup either (OSX 10.4.6). 

        <file>
            <source>src/main/webapp/dictateur-training.html</source>
            <outputDirectory></outputDirectory>
            <filtered>true</filtered>
            <fileMode>0755</fileMode>
        </file>

Generates a file which has --wxr----x (0541) permissions. I played around (trial and error) to see if I could see what it is
doing wrong, and it certainly changes permissions, but not in any pattern that I could figure out.

> fileMode doesn't work with Cygwin
> ---------------------------------
>
>          Key: MASSEMBLY-104
>          URL: http://jira.codehaus.org/browse/MASSEMBLY-104
>      Project: Maven 2.x Assembly Plugin
>         Type: Bug

>     Versions: 2.1
>  Environment: Windows 2002 XP Pro running Cygwin
>     Reporter: Mark Heinze

>
>
> The fileMode does not correctly set the permissions on the file. This happens in the <files><file></file></files> tag in the asssembly XML file. Any files copied with this tag ends up with strange permissions (including those with the default fileMode).

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