Skip to content
Tcl Source Code History Of Ticket 3009322
Login

History Of Ticket 3009322

Artifacts Associated With Ticket 3009322

  1. Ticket change [89910ba5fc] (rid 127250) by jda3000 on 2010-05-31 01:57:19:

    1. assignee initialized to: "patthoyts"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The test for text vs binary content that takes place in http:Event near the comment "# Turn off conversions for non-text data" only checks for content types that start with "text"  like "text/xml" or "text/html" many sites use "application/rss+xml" or the like to describe the content of the response if it is an rss feed.
      
      Perhaps the test should allow for this.
      
      Here is the test as written:
      
                  if {
                      $state(-binary) || ![string match -nocase text* $state(type)]
                  } then {
                      # Turn off conversions for non-text data
                      set state(binary) 1
                  }
      
      Here is a work-around that satisfied me:
      
      if {![string match -nocase application/rss* $state(type)] &&  ![string match -nocase application/xml* $state(type)] } {set state(binary) 1}
      
      That is, I added a test for rss and xml  before setting the state(binary) flag to 1.
      
      
      
    4. foundin initialized to: "obsolete: 8.6b1"
    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: "jda3000"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to:
      Test for non-text data prevents transliteration of RSS chars
      
    12. type initialized to: "Bug"
  2. Ticket change [e22763235e] (rid 87575) by coldstore on 2010-05-31 09:01:45:

    1. icomment:
      The HTTP spec doesn't really countenance either test.  IIRC, it should be possible to determine the encoding type of the request from TE, content-encoding or similar fields.  One can't rely upon the content-type to determine the transport encoding.
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  3. Ticket change [b63e2277d4] (rid 204015) by kjnash on 2022-09-09 15:42:13:

    1. closedate changed to: "2459832.15432576"
    2. closer changed to: "kjnash"
    3. comment changed to:
      The test for text vs binary content that takes place in http:Event near the comment "# Turn off conversions for non-text data" only checks for content types that start with "text"  like "text/xml" or "text/html" many sites use "application/rss+xml" or the like to describe the content of the response if it is an rss feed.
      
      Perhaps the test should allow for this.
      
      Here is the test as written:
      
                  if {
                      $state(-binary) || ![string match -nocase text* $state(type)]
                  } then {
                      # Turn off conversions for non-text data
                      set state(binary) 1
                  }
      
      Here is a work-around that satisfied me:
      
      if {![string match -nocase application/rss* $state(type)] &&  ![string match -nocase application/xml* $state(type)] } {set state(binary) 1}
      
      That is, I added a test for rss and xml  before setting the state(binary) flag to 1.
      
    4. icomment:
      This bug was fixed in commit [07c269e62a] of 2016-10-08 which introduced the improved test command http::IsBinaryContentType.
      
    5. login: "kjnash"
    6. mimetype: "text/x-fossil-plain"
    7. resolution changed to: "Fixed"
    8. severity changed to: "Minor"
    9. status changed to: "Closed"