Skip to content
Tcl Source Code History Of Ticket 2854929
Login

History Of Ticket 2854929

Artifacts Associated With Ticket 2854929

  1. Ticket change [63d9c0d260] (rid 92651) by apnadkarni on 2009-09-09 05:18:32:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Logging this as per Andreas Kupries' direction on c.l.t.
      Tried on XP, using Active Tcl 8.6b1.1
      -------
      I've run into an issue with loading Tcl modules into interpreters
      created with ::safe::interpCreate. I'm not sure whether this is by
      design or a bug. The following piece of code executes without errors
      
      set ip [::safe::interpCreate]
      $ip eval {package require uri}
      
      (uri is a package in tcllib, as is uri::urn)
      
      The following errors out
      $ip eval {package require uri::urn}
      
      The uri package is loaded from C:/Tcl/lib/teapot/package/tcl/teapot/
      tcl8/8.2/uri-1.2.1.tm whereas
      the uri::urn package is loaded from C:/Tcl/lib/teapot/package/tcl/
      teapot/tcl8/8.4/uri/urn-1.0.2.tm
      The issue is that the Tcl module loading system maps a package name
      containing :: to subdirectories and while the safe interpreter's -
      accessPath contains the .....tcl8/8.2 directory, it does not contain
      the subdirectory (uri). Consequently, any Tcl modules with :: in the
      package name fail to load.
      
      The question is - is this by design or an oversight ? What is the
      danger (from a security perspective) to allow recursion if the
      directory path matches the path in the package name?
      
      /Ashok
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "apnadkarni"
    10. subsystem initialized to: "33. Safe Base"
    11. title initialized to:
      Cannot load Tcl modules with :: in Safe Base interpreters
      
    12. type initialized to: "Bug"
  2. Add attachment "safe.patch" [75655f4ec3] (rid 105382) by andreas_kupries on 2009-11-04 05:53:07.

  3. Ticket change [c11480705e] (rid 111266) by andreas_kupries on 2009-11-04 05:53:07:

    1. icomment:
      
      
      File Added - 349432: safe.patch
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [6f37bb2fc0] (rid 100278) by andreas_kupries on 2009-11-04 06:02:52:

    1. icomment:
      Oversight.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  5. Ticket change [ade92f2f89] (rid 101537) by andreas_kupries on 2009-11-05 00:56:05:

    1. icomment:
      Ok. A fix has been committed to the Tcl 8.5 branch, in time for the upcoming 8.5.8.
      Fix for head will come in short order. Delayed because I made a number of additional changes to bring the internal up to date with features of 8.5+, and remove crufty weirdness.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [b2b5a15ae7] (rid 98389) by andreas_kupries on 2009-11-06 04:01:09:

    1. assignee changed to: "andreas_kupries"
    2. closedate changed to: "2009-11-05T21:01:09"
    3. closer changed to: "andreas_kupries"
    4. icomment:
      
      
      allow_comments - 1
      
      Fix is in head now too, with lots of other changes to bring this piece of code up to date.
      Closing.
      
      
      
    5. login: "andreas_kupries"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "andreas_kupries"