[jira] Created: (PLXUTILS-69) FileUtils.copyFile doesn't work when destination file is in smb share

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (PLXUTILS-69) FileUtils.copyFile doesn't work when destination file is in smb share

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FileUtils.copyFile doesn't work when destination file is in smb share
---------------------------------------------------------------------

                 Key: PLXUTILS-69
                 URL: http://jira.codehaus.org/browse/PLXUTILS-69
             Project: Plexus Utils
          Issue Type: Bug
            Reporter: Ittay Dror


running mvn install fails. the relevant exception is this:
Caused by: java.io.FileNotFoundException: w:\maven\repository\com\optier\corefirst\common\Cpp\Infrastructure\Archive\1.0.0-SNAPSHOT\Archive-1.0.0-SNAPSHOT-x86-windows-msvc-shared.nar (Access is denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:930)
        at org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:73)
        ... 19 more

other files are created fine (classes, jars etc.)

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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (PLXUTILS-69) FileUtils.copyFile doesn't work when destination file is in smb share

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/PLXUTILS-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130297#action_130297 ]

Ittay Dror commented on PLXUTILS-69:
------------------------------------

After investigating, it looks like it is a permissions issue. Most files maven created were created in the linux box (yes, the smb host was linux, forgot to mention that) with sharer:users. The file above was 'ittayd:users' (not sure how), which caused the failure. Removing the file solved the issue.

Maybe this scenario is too rare to deal with, or maybe you'd like to consider using jcifs.samba.org (not sure how)

> FileUtils.copyFile doesn't work when destination file is in smb share
> ---------------------------------------------------------------------
>
>                 Key: PLXUTILS-69
>                 URL: http://jira.codehaus.org/browse/PLXUTILS-69
>             Project: Plexus Utils
>          Issue Type: Bug
>            Reporter: Ittay Dror
>
> running mvn install fails. the relevant exception is this:
> Caused by: java.io.FileNotFoundException: w:\maven\repository\com\optier\corefirst\common\Cpp\Infrastructure\Archive\1.0.0-SNAPSHOT\Archive-1.0.0-SNAPSHOT-x86-windows-msvc-shared.nar (Access is denied)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
>         at hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:930)
>         at org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:73)
>         ... 19 more
> other files are created fine (classes, jars etc.)

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

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email