Artifacts Associated With Ticket 8eb64b1520
Ticket change [987dd03450] (rid 196706) by oehhar on 2021-12-03 11:07:01:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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
- foundin initialized to: "2.9.5"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "29. http Package"
- title initialized to:
http: invalid reply header "content-encoding: UTF-8" gives error, but may be tolerated
- type initialized to: "RFE"
Ticket change [28d7d80214] (rid 196714) by oehhar on 2021-12-03 12:07:51:
- 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
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [ac956bceab] (rid 200480) by oehhar on 2022-05-03 16:27:33:
- 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
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [f1643e173f] (rid 200481) by oehhar on 2022-05-03 16:45:53:
- 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> - login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [29e48b193a] (rid 200483) by oehhar on 2022-05-04 07:13:14:
- assignee changed to: "oehhar"
- closedate changed to: "2459703.80086534"
- closer changed to: "oehhar"
- 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> - login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "oehhar"