Skip to content
Tcl Source Code History Of Ticket 8eb64b15208f6208
Login

History Of Ticket 8eb64b15208f6208

Artifacts Associated With Ticket 8eb64b15208f6208

  1. Ticket change [987dd03450] (rid 196706) by oehhar on 2021-12-03 11:07:01:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      The return header "Content-encoding" is now supported, and may officially have the following values:
      
      <verbatim>
      Content-Encoding: gzip | compress | deflate | br| identity
      </verbatim>
      
      I have a server (SAP Production) where I do a post-call with JSON data.
      The response has:
      <verbatim>
      Content-Encoding: UTF-8
      </verbatim>
      
      Currently, http package 2.9.5 fails with the correct error: 
      <verbatim>
      unsupported content-encoding "UTF-8"
      </verbatim>
      
      and writes the Log:
      <verbatim>
      error doing decompression for token ::http::1: unsupported content-encoding "UTF-8"
      </verbatim>
      
      Would it be a good idea here to be more tolerant, and fall back to identity ?
      
      Apparently, others just ignore this...
      
      Thanks for any opinion,
      Harald
      
    5. foundin initialized to: "2.9.5"
    6. is_private initialized to: "0"
    7. login: "oehhar"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "oehhar"
    14. subsystem initialized to: "29. http Package"
    15. title initialized to:
      http: invalid reply header "content-encoding: UTF-8" gives error, but may be tolerated
      
    16. type initialized to: "RFE"
  2. Ticket change [28d7d80214] (rid 196714) by oehhar on 2021-12-03 12:07:51:

    1. icomment:
      Proposed implementation in branch [rfe-eb64b1520-http-content-encoding-tolerant] starting with commit [1198f073df].
      
      Only the not implemented but correct content "br" errors out.
      Any other content is ignored.
      
      Any opinions ?
      
      Thank you all,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  3. Ticket change [ac956bceab] (rid 200480) by oehhar on 2022-05-03 16:27:33:

    1. icomment:
      I asked the customer again.
      The issue is in SAP PLM when a function is called using https and a JSON payload.
      
      Are there any objections, that I merge the patch ?
      
      Thank you all,
      Harald
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  4. Ticket change [f1643e173f] (rid 200481) by oehhar on 2022-05-03 16:45:53:

    1. icomment:
      May I add that make test with MS-VC6 in 32 bit Windows does not show any test errors in this field. The shown errors are listed below.
      
      I would be glad to merge before the new apparently complex http ticket about web-sockets, so I avoid any merge conflicts.
      
      Thank you,
      Harald
      
      <verbatim>
      ==== winFCmd-6.1 TclpRemoveDirectory: errno: EACCES FAILED
      ==== Contents of test case:
      
          file mkdir td1
          testchmod 0 td1
          testfile rmdir td1
          file exists td1
      
      ---- Test completed normally; Return code was: 0
      ---- Return code should have been one of: 1
      ==== winFCmd-6.1 FAILED
      
      
      
      ==== winFCmd-6.9 TclpRemoveDirectory: errno == EACCES FAILED
      ==== Contents of test case:
      
          file mkdir td1
          testchmod 0 td1
          testfile rmdir td1
          file exists td1
      
      ---- Test completed normally; Return code was: 0
      ---- Return code should have been one of: 1
      ==== winFCmd-6.9 FAILED
      
      
      
      ==== winFCmd-6.13 TclpRemoveDirectory: write-protected FAILED
      ==== Contents of test case:
      
          file mkdir td1
          testchmod 0 td1
          testfile rmdir td1
          file exists td1
      
      ---- Test completed normally; Return code was: 0
      ---- Return code should have been one of: 1
      ==== winFCmd-6.13 FAILED
      
      
      
      ==== winFCmd-9.3 TraversalDelete: DOTREE_PRED FAILED
      ==== Contents of test case:
      
          file mkdir td1/td2
          testchmod 0 td1
          testfile rmdir -force td1
          file exists td1
      
      ---- Test completed normally; Return code was: 0
      ---- Return code should have been one of: 1
      ==== winFCmd-9.3 FAILED
      </verbatim>
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  5. Ticket change [29e48b193a] (rid 200483) by oehhar on 2022-05-04 07:13:14:

    1. assignee changed to: "oehhar"
    2. closedate changed to: "2459703.80086534"
    3. closer changed to: "oehhar"
    4. icomment:
      Fix merged with commit [1f5e1f5a49] to core-8-6-branch.
      The tests with ms-vc6 32 bit on win64 now give no reports in this field.
      The test failures in the env range are listed below.
      
      I discussed again with the customer.
      The system is SAP-ME. It is a custom process and the error results probably due to a wrong customization. Nevertheless, we were clear, that:
      
         *   other http clients ignore the issue
         *   it is good to be strict on output and false-tolerant on input
      
      THank you all,
      Harald
      
      
      -----
      
      TCL compiled with MS-VC6 32 bit on Windows 10 64 bit:
      
      <verbatim>
      ==== env-2.1 adding environment variables FAILED
      ==== Contents of test case:
      
          getenv
      
      ---- Result was:
      PROCESSOR_ARCHITEW6432=x86
      ---- Result should have been (exact matching):
      
      ==== env-2.1 FAILED
      
      
      
      ==== env-2.2 adding environment variables FAILED
      ==== Contents of test case:
      
          set env(NAME1) "test string"
          getenv
      
      ---- Result was:
      NAME1=test string
      PROCESSOR_ARCHITEW6432=x86
      ---- Result should have been (exact matching):
      NAME1=test string
      ==== env-2.2 FAILED
      
      
      
      ==== env-2.3 adding environment variables FAILED
      ==== Contents of test case:
      
          set env(NAME2) "more"
          getenv
      
      ---- Result was:
      NAME1=test string
      NAME2=more
      PROCESSOR_ARCHITEW6432=x86
      ---- Result should have been (exact matching):
      NAME1=test string
      NAME2=more
      ==== env-2.3 FAILED
      
      
      
      ==== env-2.4 adding environment variables FAILED
      ==== Contents of test case:
      
          set env(XYZZY) "garbage"
          getenv
      
      ---- Result was:
      NAME1=test string
      NAME2=more
      PROCESSOR_ARCHITEW6432=x86
      XYZZY=garbage
      ---- Result should have been (exact matching):
      NAME1=test string
      NAME2=more
      XYZZY=garbage
      ==== env-2.4 FAILED
      
      
      
      ==== env-3.1 changing environment variables FAILED
      ==== Contents of test case:
      
          set result [getenv]
          unset env(NAME2)
          set result
      
      ---- Result was:
      NAME1=test string
      NAME2=new value
      PROCESSOR_ARCHITEW6432=x86
      XYZZY=garbage
      ---- Result should have been (exact matching):
      NAME1=test string
      NAME2=new value
      XYZZY=garbage
      ==== env-3.1 FAILED
      
      
      
      ==== env-4.1 unsetting environment variables FAILED
      ==== Contents of test case:
      
          unset -nocomplain env(NAME2)
          getenv
      
      ---- Result was:
      NAME1=test string
      PROCESSOR_ARCHITEW6432=x86
      XYZZY=garbage
      ---- Result should have been (exact matching):
      NAME1=test string
      XYZZY=garbage
      ==== env-4.1 FAILED
      
      
      
      ==== env-4.3 setting international environment variables FAILED
      ==== Contents of test case:
      
          set env(\ua7) \ub6
          getenv
      
      ---- Result was:
      PROCESSOR_ARCHITEW6432=x86
      \u00a7=\u00b6
      ---- Result should have been (exact matching):
      \u00a7=\u00b6
      ==== env-4.3 FAILED
      
      
      
      ==== env-4.4 changing international environment variables FAILED
      ==== Contents of test case:
      
          set env(\ua7) \ua7
          getenv
      
      ---- Result was:
      PROCESSOR_ARCHITEW6432=x86
      \u00a7=\u00a7
      ---- Result should have been (exact matching):
      \u00a7=\u00a7
      ==== env-4.4 FAILED
      
      
      
      ==== env-4.5 unsetting international environment variables FAILED
      ==== Contents of test case:
      
          set env(\ub6) \ua7
          unset env(\ua7)
          getenv
      
      ---- Result was:
      PROCESSOR_ARCHITEW6432=x86
      \u00b6=\u00a7
      ---- Result should have been (exact matching):
      \u00b6=\u00a7
      ==== env-4.5 FAILED
      </verbatim>
      
    5. login: "oehhar"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "oehhar"