Re: [Activetcl] srai@quikcycle.com
by Sushil Rai other posts by this author
Jun 26 2008 5:09AM messages near this date
view in the new Beta List Site
Re: [Activetcl] Bug in Virtual File System implementation for HTTP
|
[Activetcl] FW: tcl error
> 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
>
--
Sushil Rai
|