bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #25404] NSURL's -path method does not strip trailing slash of a dir


From: Wolfgang Lux
Subject: [bug #25404] NSURL's -path method does not strip trailing slash of a directory URL
Date: Sun, 25 Jan 2009 13:30:55 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US) AppleWebKit/525.18 (KHTML, like Gecko, Safari/525.20) OmniWeb/v622.3.0.105198

URL:
  <http://savannah.gnu.org/bugs/?25404>

                 Summary: NSURL's -path method does not strip trailing slash
of a directory URL
                 Project: GNUstep
            Submitted by: wlux
            Submitted on: So 25 Jan 2009 13:30:53 GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: So 25 Jan 2009 13:30:53 GMT  Name: path.m  Size: 319B   By: wlux

<http://savannah.gnu.org/bugs/download.php?file_id=17319>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25404>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]