[Activetcl] srai@quikcycle.com
by Sushil Rai other posts by this author
Jun 27 2008 3:05PM messages near this date
view in the new Beta List Site
[Activetcl] SQL Relay
|
[Activetcl] ftp package
Greeting All,
While going through Virtual File System implementation for HTTP, I realized
that there is some potential bug in the code. After debuging the code, I
observed following issue
In the procedure: vfs::http::access
proc vfs::http::access {dirurl name mode} {
::vfs::log "access $name $mode"
if {$mode & 2} {
vfs::filesystem posixerror $::vfs::posix(EROFS)
}
if {$name == ""} { return 1 }
set state [::http::geturl "$dirurl$name"]
*set info ""
if {[string length $info]} {
return 1
} else {
error "No such file"
}
*}
Because of lines marked in red, even though the file was available in on the
HTTP server, operation "file exists" was returning failure.
The code need to be revisited.
For now I have made local fixes in my installation. Request you to make
neccessary changes in the forecomming releases.
Thanks and Regards
Sushil Rai
|