Artifacts Associated With Ticket 943995ffffffffff
Ticket change [309bc4fc38] (rid 93286) by dgp on 2004-04-28 20:50:38:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Using a package that provides a virtual filesystem: % file volumes trofs:// / % file isdirectory trofs://1/modules 1 % glob -directory trofs://1/modules * trofs://1/modules/base64-2.3.tm trofs://1/modules/cmdline-1.2.2.tm trofs://1/modules/msgcat-1.4.1.tm trofs://1/modules/struct-2.0.tm trofs://1/modules/http-2.4.4.tm trofs://1/modules/log-1.1.tm trofs://1/modules/htmlparse-1.0.tm trofs://1/modules/textutil-0.6.tm % glob trofs://1/modules/* no files matched glob pattern "trofs://1/modules/*" Something amiss in [glob] ?
- foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "37. File System"
- title initialized to: "glob inconsistency with VFS"
- type initialized to: "Bug"
Ticket change [3f8b7740fd] (rid 121477) by vincentdarley on 2004-04-30 01:59:51:
- icomment:
Logged In: YES user_id=32170 Looks like a bug in glob, indeed. Most likely following this comment in tclFileName.c: /* * Handling empty path prefixes with glob patterns like 'C:' or * 'c:////////' is a pain on Windows if we leave it too late, since * these aren't really patterns at all! We therefore check the head * of the pattern now for such cases, if we don't have an unquoted * prefix yet. * * Similarly on Unix with '/' at the head of the pattern -- it * just indicates the root volume, so we treat it as such. */ Probably the code after that should check whether the pattern's head matches any of 'file volumes'? - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [e5d4467fd3] (rid 104194) by dgp on 2004-04-30 02:22:03:
- icomment:
Logged In: YES user_id=80530 Ah. Does that mean if I choose a volume prefix that doesn't include // I can avoid the problem?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [4c4f07eeae] (rid 126867) by vincentdarley on 2004-04-30 05:13:03:
- icomment:
Logged In: YES user_id=32170 I'm not sure that'll help. I think the code I pointed to needs to be fixed to ensure the volume name is shifted from the pattern to the path, since otherwise I think the code (DoGlob) that is called will do the wrong thing.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [337851231d] (rid 106600) by vincentdarley on 2004-04-30 19:18:31:
- icomment:
Logged In: YES user_id=32170 That doesn't help. Here are some new tests for fileSystem.test (one passes, two fail), which illustrate the problem. test filesystem-7.3.1 {glob in simplefs} \ {testsimplefilesystem} { set dir [pwd] cd [tcltest::temporaryDirectory] file mkdir simpledir close [open [file join simpledir simplefile] w] testsimplefilesystem 1 set res [glob -nocomplain simplefs:/simpledir/*] eval lappend res [glob -nocomplain simplefs:/simpledir] testsimplefilesystem 0 file delete -force simpledir cd $dir set res } {simplefs:/simpledir/simplefile simplefs:/simpledir} test filesystem-7.3.2 {glob in simplefs} \ {testsimplefilesystem} { set dir [pwd] cd [tcltest::temporaryDirectory] file mkdir simpledir close [open [file join simpledir simplefile] w] testsimplefilesystem 1 set res [glob -nocomplain simplefs:/s*] testsimplefilesystem 0 file delete -force simpledir cd $dir if {[llength $res] > 0} { set res "ok" } else { set res "no files found with 'glob -nocomplain simplefs:/s*'" } } {ok} test filesystem-7.3.3 {glob in simplefs} \ {testsimplefilesystem} { set dir [pwd] cd [tcltest::temporaryDirectory] file mkdir simpledir close [open [file join simpledir simplefile] w] testsimplefilesystem 1 set res [glob -nocomplain simplefs:/*] testsimplefilesystem 0 file delete -force simpledir cd $dir if {[llength $res] > 0} { set res "ok" } else { set res "no files found with 'glob -nocomplain simplefs:/s*'" } } {ok} I'll be unable to look at this further for the next week, at least. - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [500faf938c] (rid 125914) by vincentdarley on 2004-05-07 02:18:05:
- icomment:
Logged In: YES user_id=32170 Attached a patch to fix this bug. Please test. (It includes new tests in Tcl test suite, but I obviously can't test your 'trofs').
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [0892d295d5] (rid 89588) by vincentdarley on 2004-05-07 02:18:06:
- icomment:
File Added - 86315: vfsGlobVol.patch
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Add attachment "vfsGlobVol.patch" [f0410c5831] (rid 109155) by vincentdarley on 2004-05-07 02:18:06.
Ticket change [7a2146c30e] (rid 90252) by dgp on 2004-05-07 05:39:57:
- icomment:
Logged In: YES user_id=80530 Yes, that appears to correct the problem, thanks.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1a9e593ca6] (rid 123009) by vincentdarley on 2004-05-07 20:09:15:
- closedate changed to: "2004-05-07T13:09:15"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 Fixed in cvs head.
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "vincentdarley"
Ticket change [313dc71cbe] (rid 93390) by dgp on 2004-12-16 05:27:57:
- icomment:
Logged In: YES user_id=80530 Ack! This fix never made it back into 8.4 ?!
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "7 High"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [639994ebe1] (rid 92606) by vincentdarley on 2004-12-17 01:38:10:
- foundin changed to: "obsolete: 8.4.9"
- icomment:
Logged In: YES user_id=32170 The problem is that the 8.5 and 8.4 codebases have diverged sufficiently that each requires its own fix. Unfortunately my time precludes doing both at the moment if that is complicated. I try to do both if the fix is similar, but sometimes it isn't. There are now a number of filesystem fixes in 8.5 which are not in 8.4, and probably never will be, unless someone decides simply to replace 8.4's filesystem with 8.5's.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [ea455df83e] (rid 103341) by dgp on 2006-03-10 12:22:23:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 sure would like this to be backported for 8.4.13. I'll at least take a look.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dgp"
Ticket change [781fb172f3] (rid 89898) by dgp on 2006-03-31 23:18:24:
- priority changed to: "7 High"
Ticket change [4d667dfbe0] (rid 127045) by dgp on 2006-05-12 03:05:55:
- icomment:
Logged In: YES user_id=80530 Aha! Looking this over again, and the problem I have with 8.4.* is in TclDoGlob(). That routine is designed to be recursive, and passes two arguments, headPtr and tail down the recursive stack, each time holding a different partition of the pathname pattern we're globbing for. The problem is that as the stack of calls shifts more of the path from tail to head, it tries to do some normalization along the way. Turning //// runs into / and that sort of thing. Trouble with that is, when we have a virtual filesystem system in place, normalization isn't something you can do reliably as a local operations, it requires cooperation of all the Tcl_Filesystem drivers to be sure that the changes don't move a path out of one Tcl_Filesystem and into another one. In the reported example, the pattern trofs://1/modules/* gets transformed to trofs:/1/modules/* and this takes it out of the trofs filesystem and into the native filesystem, where the glob comes up empty. The fix is to revise TclDoGlob so that as it shifts things from tail to head, the only revisions it can make are those dictated by the special chars of glob patterns. Working on that patch now.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [92cb3a421a] (rid 120833) by dgp on 2006-05-12 04:06:26:
- assignee changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=80530 Here's a patch against Tcl 8.4.13 that needs testing on Windows before acceptance.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Add attachment "943995.patch" [b5d3a07dac] (rid 125310) by dgp on 2006-05-12 04:06:27.
Ticket change [4fdf526b0c] (rid 125889) by dgp on 2006-05-12 04:06:27:
- icomment:
File Added - 177634: 943995.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b38bf8d153] (rid 124877) by dgp on 2006-05-14 06:21:50:
- status changed to: "Pending"
Ticket change [1b4fc55735] (rid 123124) by dgp on 2006-05-14 06:21:51:
- assignee changed to: "dgp"
- closedate changed to: "2006-05-13T23:21:51"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 committed for 8.4.14 please test
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [dec8f7d5e4] (rid 114910) by sf-robot on 2006-05-28 09:21:06:
- icomment:
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
- login: "sf-robot"
- mimetype: "text/plain"
- username: "sf-robot"
- icomment:
Ticket change [a107d6c1e2] (rid 96908) by sf-robot on 2006-05-28 09:21:07:
- closedate changed to: "2006-05-28T02:21:07"
- closer changed to: "sf-robot"
- status changed to: "Closed"