Skip to content
Tcl Source Code History Of Ticket 1969717
Login

History Of Ticket 1969717

Artifacts Associated With Ticket 1969717

  1. Ticket change [379735ddc8] (rid 112054) by decosterjos on 2008-05-22 16:09:56:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Platform: Windows
      
      Version: head
      
      Observation: [package require] fails for a package located on a drive mounted via samba
      
      This problem is caused by [file readable] failing to get the correct access rights for the pkgIndex.tcl files on this samba drive. I look into the 'NativeAccess' code in tclWinFile.c and could not find what is wrong. Pat Thoyts also looked at the code and couldn't see what's caused [file readable] to fail. 
      
      I suggest a work around for [package require] by replacing the [file readable $file] by a [catch {open $file r}]. This solves the [package require] problem. [file readable] still remains 'fragile' but the user can work around that problem in his own code when needed.
      
      It's not clear where the problem originates. Could be a samba problem, could be a problem with the code in tclWinFile.c.
      
      I attached a patch for package.tcl (head).
      
      Regards,
      
      Jos.
      
    4. foundin initialized to: "None"
    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: "decosterjos"
    10. subsystem initialized to: "39. Package Manager"
    11. title initialized to:
      package require fails due to [file readable] problem
      
    12. type initialized to: "Patch"
  2. Add attachment "catch_open.patch" [636fa3eaa4] (rid 92575) by decosterjos on 2008-05-22 23:09:56.

  3. Ticket change [f2b495f8fa] (rid 109601) by decosterjos on 2008-05-22 23:09:57:

    1. icomment:
      
      
      File Added - 278689: catch_open.patch
      
      
      
    2. login: "decosterjos"
    3. mimetype: "text/plain"
    4. username: "decosterjos"
  4. Ticket change [a2659f5582] (rid 109884) by dgp on 2008-06-03 21:18:10:

    1. priority changed to: "9 Immediate"
  5. Add attachment "1969717.patch" [fc09dad919] (rid 108163) by dgp on 2008-06-27 23:41:44.

  6. Ticket change [4b1f3e75cc] (rid 126643) by dgp on 2008-06-27 23:41:44:

    1. icomment:
      
      
      File Added - 282946: 1969717.patch
      
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      File Added: 1969717.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [ff2ea9c226] (rid 108709) by dgp on 2008-06-27 23:44:13:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Please review and test the alternative patch.
      
      Advantage over the first is that it gets by
      with opening each file once instead of twice.
      
      Disadvantage is that in the rare case that
      a pkgIndex.tcl script contains an error trying
      to read a non-readable file, the usual logging
      of that error would get suppressed.  I can't
      really imagine why a sensible index script
      would attempt such an operation, so I think
      the alternative patch is better.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Add attachment "1969717-85.patch" [6e943c621b] (rid 100173) by dgp on 2008-06-28 00:37:16.

  9. Ticket change [3d2afe9d73] (rid 121040) by dgp on 2008-06-28 00:37:16:

    1. icomment:
      
      
      File Added - 282953: 1969717-85.patch
      
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      corresponding patch for 8.5 and HEAD
      File Added: 1969717-85.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [9ad3a6e4a5] (rid 111019) by dgp on 2008-06-30 02:57:38:

    1. assignee changed to: "andreas_kupries"
  11. Ticket change [23162754ae] (rid 130857) by decosterjos on 2008-06-30 13:30:54:

    1. icomment:
      Logged In: YES 
      user_id=370749
      Originator: YES
      
      Alternative patch works fine for me.
      
      Thanks & regards,
      
      Jos.
      
      
    2. login: "decosterjos"
    3. mimetype: "text/plain"
    4. username: "decosterjos"
  12. Ticket change [102ce51f17] (rid 94923) by andreas_kupries on 2008-07-01 04:41:49:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=75003
      Originator: NO
      
      Go ahead. Looked over the patch and the basic principle (try to source, and check exact of a failure cause after the fact) seems good to me. I don't see any syntax errors either.
      
      
      
    3. login: "andreas_kupries"
    4. mimetype: "text/plain"
    5. username: "andreas_kupries"
  13. Ticket change [a4d41c39b9] (rid 110268) by dgp on 2008-07-04 00:27:41:

    1. closedate changed to: "2008-07-03T17:27:41"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      committed to all branches
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Accepted"
    7. status changed to: "Closed"
    8. username: "dgp"