Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2b305e16305552813d7d7aa756a391a7f9bdc918
Ticket: 2917673fffffffffffffffffffffffffffffffff
Behavior of Safe Base
User & Date: johannes-kuhn on 2009-12-19 16:03:05
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    According to the documentation, Safe Base should not allow subdirectory access.
    > The only valid file names arguments for the source and load aliases provided to the slave are path in the form of [file join token filename] (i.e. when using the native file path formats: token/filename on Unix and token\filename on Windows), where token is representing one of the directories of the accessPath list and filename is one file in that directory (no sub directories access are allowed).
    
    But this breaks the loading of Tcl modules (tm) with a ::, (the :: is translated to the directory separator).
    
    So nested directories have been allowed for source, load, and glob.
    
    But for the normal auto_path, witch search also in subdirectories, we add each subdirectory into the accessPath and forbid the search for pkgIndex.tcl, so we don't have the same package 2 times.
    
    I think this is not a good approach.
    
    I think, we should general allow that subdirectories can be searched
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "johannes-kuhn"
  10. subsystem changed to: "33. Safe Base"
  11. title changed to: "Behavior"
  12. type changed to: "Bug"