You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Jerome Lacoste (JIRA)" <ji...@codehaus.org> on 2005/06/09 13:11:09 UTC

[jira] Created: (MNG-464) confusing error reported when using a non writable local directory

confusing error reported when using a non writable local directory
------------------------------------------------------------------

         Key: MNG-464
         URL: http://jira.codehaus.org/browse/MNG-464
     Project: Maven 2
        Type: Improvement
    Versions: 2.0-alpha-3    
    Reporter: Jerome Lacoste
    Priority: Minor


I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
user1 created the repository
user2 tried to do a build without having write access to repository

the build failed with a confusing error. Something like:

Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)

(I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)

I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-464) confusing error reported when using a non writable local directory

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-464?page=all ]

Brett Porter updated MNG-464:
-----------------------------

    Description: 
I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
user1 created the repository
user2 tried to do a build without having write access to repository

the build failed with a confusing error. Something like:

Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)

(I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)

I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

  was:
I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
user1 created the repository
user2 tried to do a build without having write access to repository

the build failed with a confusing error. Something like:

Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)

(I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)

I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

    Fix Version:     (was: 2.0-beta-4)
                 2.0.1
    Environment: 

this would be quite proliferate, and generally developers know what FNFE (permission denied) means, besides this is not a recommended practice.

Will still review for completeness in 2.0.1

> confusing error reported when using a non writable local directory
> ------------------------------------------------------------------
>
>          Key: MNG-464
>          URL: http://jira.codehaus.org/browse/MNG-464
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-artifact
>     Versions: 2.0-alpha-3
>     Reporter: Jerome Lacoste
>     Priority: Minor
>      Fix For: 2.0.1

>
>
> I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
> user1 created the repository
> user2 tried to do a build without having write access to repository
> the build failed with a confusing error. Something like:
> Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)
> (I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)
> I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-464) confusing error reported when using a non writable local directory

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

John Casey updated MNG-464:
---------------------------

    Fix Version:     (was: 2.0.3)
                 2.1

> confusing error reported when using a non writable local directory
> ------------------------------------------------------------------
>
>          Key: MNG-464
>          URL: http://jira.codehaus.org/browse/MNG-464
>      Project: Maven 2
>         Type: Improvement

>   Components: Artifacts and Repositories
>     Versions: 2.0-alpha-3
>     Reporter: Jerome Lacoste
>     Assignee: Edwin Punzalan
>     Priority: Minor
>      Fix For: 2.1
>  Attachments: MNG-464-maven-artifact-manager.patch
>
>
> I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
> user1 created the repository
> user2 tried to do a build without having write access to repository
> the build failed with a confusing error. Something like:
> Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)
> (I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)
> I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-464) confusing error reported when using a non writable local directory

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-464?page=all ]

Brett Porter updated MNG-464:
-----------------------------

    Fix Version:     (was: 2.0-beta-1)
                 2.0-beta-2

> confusing error reported when using a non writable local directory
> ------------------------------------------------------------------
>
>          Key: MNG-464
>          URL: http://jira.codehaus.org/browse/MNG-464
>      Project: Maven 2
>         Type: Improvement
>     Versions: 2.0-alpha-3
>     Reporter: Jerome Lacoste
>     Priority: Minor
>      Fix For: 2.0-beta-2

>
>
> I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
> user1 created the repository
> user2 tried to do a build without having write access to repository
> the build failed with a confusing error. Something like:
> Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)
> (I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)
> I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-464) confusing error reported when using a non writable local directory

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-464?page=all ]

Brett Porter updated MNG-464:
-----------------------------

    Fix Version: 2.0-beta-1

> confusing error reported when using a non writable local directory
> ------------------------------------------------------------------
>
>          Key: MNG-464
>          URL: http://jira.codehaus.org/browse/MNG-464
>      Project: Maven 2
>         Type: Improvement
>     Versions: 2.0-alpha-3
>     Reporter: Jerome Lacoste
>     Priority: Minor
>      Fix For: 2.0-beta-1

>
>
> I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
> user1 created the repository
> user2 tried to do a build without having write access to repository
> the build failed with a confusing error. Something like:
> Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)
> (I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)
> I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-464) confusing error reported when using a non writable local directory

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-464?page=all ]

Edwin Punzalan updated MNG-464:
-------------------------------

    Attachment: MNG-464-maven-artifact-manager.patch

> confusing error reported when using a non writable local directory
> ------------------------------------------------------------------
>
>          Key: MNG-464
>          URL: http://jira.codehaus.org/browse/MNG-464
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-artifact
>     Versions: 2.0-alpha-3
>     Reporter: Jerome Lacoste
>     Assignee: Edwin Punzalan
>     Priority: Minor
>      Fix For: 2.0.1
>  Attachments: MNG-464-maven-artifact-manager.patch
>
>
> I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
> user1 created the repository
> user2 tried to do a build without having write access to repository
> the build failed with a confusing error. Something like:
> Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)
> (I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)
> I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-464) confusing error reported when using a non writable local directory

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-464?page=all ]

Brett Porter updated MNG-464:
-----------------------------

    Fix Version:     (was: 2.0.1)
                 2.0.2

> confusing error reported when using a non writable local directory
> ------------------------------------------------------------------
>
>          Key: MNG-464
>          URL: http://jira.codehaus.org/browse/MNG-464
>      Project: Maven 2
>         Type: Improvement

>   Components: Artifacts and Repositories
>     Versions: 2.0-alpha-3
>     Reporter: Jerome Lacoste
>     Assignee: Edwin Punzalan
>     Priority: Minor
>      Fix For: 2.0.2
>  Attachments: MNG-464-maven-artifact-manager.patch
>
>
> I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
> user1 created the repository
> user2 tried to do a build without having write access to repository
> the build failed with a confusing error. Something like:
> Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)
> (I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)
> I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-464) confusing error reported when using a non writable local directory

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-464?page=all ]

Brett Porter updated MNG-464:
-----------------------------

    Component: maven-artifact

> confusing error reported when using a non writable local directory
> ------------------------------------------------------------------
>
>          Key: MNG-464
>          URL: http://jira.codehaus.org/browse/MNG-464
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-artifact
>     Versions: 2.0-alpha-3
>     Reporter: Jerome Lacoste
>     Priority: Minor
>      Fix For: 2.0-beta-3

>
>
> I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
> user1 created the repository
> user2 tried to do a build without having write access to repository
> the build failed with a confusing error. Something like:
> Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)
> (I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)
> I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org