bugGNUstep - Bugs: bug #25404, NSURL's -path method does not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #25404: NSURL's -path method does not strip trailing slash of a directory URL

Submitted by:  Wolfgang Lux <wlux>
Submitted on:  Sun 25 Jan 2009 01:30:53 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 30 Jan 2009 08:17:42 PM UTC, comment #2:

added tests to testsuite

Richard Frith-Macdonald <CaS>
Project Member
Sun 25 Jan 2009 02:58:59 PM UTC, comment #1:

I changed that in svn but haven't tested it ...

Richard Frith-Macdonald <CaS>
Project Member
Sun 25 Jan 2009 01:30:53 PM UTC, original submission:

The attached test program yields the following output on Mac OS X:

2009-01-25 14:18:06.609 path-osx[11710] path = /usr
2009-01-25 14:18:06.611 path-osx[11710] url = file://localhost/usr/
2009-01-25 14:18:06.613 path-osx[11710] [url path] = /usr

but this one on GNUstep:

2009-01-25 14:18:47.937 path-gnustep[11713] path = /usr
2009-01-25 14:18:47.943 path-gnustep[11713] url = file:/usr/
2009-01-25 14:18:47.945 path-gnustep[11713] [url path] = /usr/

This subtle difference turns out to be the cause of an issue where Gorm (but also other applications which work with directory wrappers) may open multiple copies of the same document.

BTW Also note the additional host component in the OS X URL.

Wolfgang Lux <wlux>

 

Attached Files
file #17319:  path.m added by wlux (319B)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by wlux (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Jan 2009 08:17:41 PM UTCCaSOpen/ClosedIn Test=>Closed
    Sun 25 Jan 2009 02:58:59 PM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>In Test
    Sun 25 Jan 2009 01:30:53 PM UTCwluxAttached File-=>Added path.m, #17319

    Back to the top


    Powered by Savane 3.1-cleanup1