Skip to content
Tcl Source Code History Of Ticket 3498327
Login

History Of Ticket 3498327

Artifacts Associated With Ticket 3498327

  1. Ticket change [79d1449f6f] (rid 90198) by samoconnor on 2012-03-07 07:17:48:

    1. assignee initialized to: "patthoyts"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      http://tools.ietf.org/html/rfc3986 2.1. says:
      "... URI producers and normalizers should use uppercase hexadecimal digits for all percent-encodings."
      
      The patch below fixes the encoding map created in http::init to use uppercase hex digits.
      Lower case hex encoding currently produced by Tcl's http:: causes at least one Amazon AWS authentication scheme to fail.
      As it stands, every Tcl AWS tool has to implement its own special url encoder (e.g. tclib::3S, tclcloud, etc).
      With this patch http::formatQuery can be used to prepare AWS requests.
      
      See http://docs.amazonwebservices.com/AWSSimpleQueueService/2011-10-01/SQSDeveloperGuide/Query_QueryAuth.html.
      
      
      --- tcl8.6b1/library/http/http.tcl.orig2012-03-07 17:57:05.000000000 +1100
      +++ tcl8.6b1/library/http/http.tcl2012-03-07 17:57:15.000000000 +1100
      @@ -39,7 +39,7 @@
       for {set i 0} {$i <= 256} {incr i} {
           set c [format %c $i]
           if {![string match {[-._~a-zA-Z0-9]} $c]} {
      -set map($c) %[format %.2x $i]
      +set map($c) %[format %.2X $i]
           }
       }
       # These are handled specially
      
      
      In the meantime the following "dynamic" patch serves a work-around:
      
      dict for {n v} $::http::formMap {
          dict set ::http::formMap $n [string toupper $v]
      }
      
      
      
    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: "samoconnor"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to:
      http::formatQuery RFC 3986 compliance, AWS Compatibility fix
      
    12. type initialized to: "Patch"
  2. Ticket change [1d302d7343] (rid 90758) by andreas_kupries on 2012-03-08 01:19:00:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Question, what about the command
      
      set map(\n) %0d%0a
      
      a few lines below. Should that not also be changed, to %0D%0A ?
      
      
      
      
    3. login: "andreas_kupries"
    4. mimetype: "text/plain"
    5. priority changed to: "3 Low"
    6. resolution changed to: "Accepted"
    7. username: "andreas_kupries"
  3. Ticket change [e18bf0d861] (rid 87471) by andreas_kupries on 2012-03-08 02:01:04:

    1. icomment:
      Committed changes to all branches. Including updated tests. Including the %0d/%0a change.
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [9dd88ee1dc] (rid 96381) by andreas_kupries on 2012-03-08 02:01:05:

    1. closedate changed to: "2012-03-07T19:01:05"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"