ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved