You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/07/28 19:27:27 UTC

[jira] Created: (WAGON-231) PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory

PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory
-------------------------------------------------------------------------------------

                 Key: WAGON-231
                 URL: http://jira.codehaus.org/browse/WAGON-231
             Project: Maven Wagon
          Issue Type: Bug
          Components: wagon-provider-api
    Affects Versions: 1.0-beta-3
            Reporter: Benjamin Bentmann
         Attachments: to-relative.patch

i.e. {{PathUtils.toRelative( new File( "foo" ).getAbsoluteFile(), new File( "foo" ).getAbsolutePath() )}} fails.

-- 
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: (WAGON-231) PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory

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

Brett Porter commented on WAGON-231:
------------------------------------

I think '.' is reasonable

> PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory
> -------------------------------------------------------------------------------------
>
>                 Key: WAGON-231
>                 URL: http://jira.codehaus.org/browse/WAGON-231
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-provider-api
>    Affects Versions: 1.0-beta-3
>            Reporter: Benjamin Bentmann
>             Fix For: 1.0-beta-5
>
>         Attachments: to-relative.patch
>
>
> i.e. {{PathUtils.toRelative( new File( "foo" ).getAbsoluteFile(), new File( "foo" ).getAbsolutePath() )}} fails.

-- 
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: (WAGON-231) PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/WAGON-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143376#action_143376 ] 

Benjamin Bentmann commented on WAGON-231:
-----------------------------------------

Forgot to mention: It is unclear what the return value should be for this case. Could be empty string or "." as used in patch.

> PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory
> -------------------------------------------------------------------------------------
>
>                 Key: WAGON-231
>                 URL: http://jira.codehaus.org/browse/WAGON-231
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-provider-api
>    Affects Versions: 1.0-beta-3
>            Reporter: Benjamin Bentmann
>         Attachments: to-relative.patch
>
>
> i.e. {{PathUtils.toRelative( new File( "foo" ).getAbsoluteFile(), new File( "foo" ).getAbsolutePath() )}} fails.

-- 
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: (WAGON-231) PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGON-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed WAGON-231.
------------------------------

      Assignee: Brett Porter
    Resolution: Fixed

> PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory
> -------------------------------------------------------------------------------------
>
>                 Key: WAGON-231
>                 URL: http://jira.codehaus.org/browse/WAGON-231
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-provider-api
>    Affects Versions: 1.0-beta-3
>            Reporter: Benjamin Bentmann
>            Assignee: Brett Porter
>             Fix For: 1.0-beta-5
>
>         Attachments: to-relative.patch
>
>
> i.e. {{PathUtils.toRelative( new File( "foo" ).getAbsoluteFile(), new File( "foo" ).getAbsolutePath() )}} fails.

-- 
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: (WAGON-231) PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/WAGON-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated WAGON-231:
-------------------------------

    Fix Version/s: 1.0-beta-5

> PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory
> -------------------------------------------------------------------------------------
>
>                 Key: WAGON-231
>                 URL: http://jira.codehaus.org/browse/WAGON-231
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-provider-api
>    Affects Versions: 1.0-beta-3
>            Reporter: Benjamin Bentmann
>             Fix For: 1.0-beta-5
>
>         Attachments: to-relative.patch
>
>
> i.e. {{PathUtils.toRelative( new File( "foo" ).getAbsoluteFile(), new File( "foo" ).getAbsolutePath() )}} fails.

-- 
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: (WAGON-231) PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory

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

Brett Porter commented on WAGON-231:
------------------------------------

it appears we're not using this method anywhere in the current wagons, so I'm not sure what affect this had. I'm applying the patch anyway as the method may be used elsewhere/older wagons.

> PathUtils.toRelative() throws SIOOBE if supplied arguments specify the same directory
> -------------------------------------------------------------------------------------
>
>                 Key: WAGON-231
>                 URL: http://jira.codehaus.org/browse/WAGON-231
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-provider-api
>    Affects Versions: 1.0-beta-3
>            Reporter: Benjamin Bentmann
>             Fix For: 1.0-beta-5
>
>         Attachments: to-relative.patch
>
>
> i.e. {{PathUtils.toRelative( new File( "foo" ).getAbsoluteFile(), new File( "foo" ).getAbsolutePath() )}} fails.

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