Header and sub-folder issues in zipped responses - SDMXRI-1937 - NSI WS 8.12.1 (second PR in progress)
-
As follow-up to ticket #38 (closed), the response to queries with Accept: XXXXXXX; zip=true; XXXXXX
header
must not have anContent-Encoding: zip
header, as mentioned here: #38 (comment 387388118).Instead the response header should contain:
Content-Type: XXXXXXX; **zip=true;** XXXXXX
Content-Disposition: attachment; filename="XXXXXX.zip"
-
When using the API V2, the Content-Disposition
header is incorrect. It is currently something likeattachment; filename="dataflow/TN1/MILLED_RICE/1.0+*.csv.zip"
where for V1 it is (more correctly):attachment; filename="TN1,MILLED_RICE,1.0+all.csv.zip"
Indeed, slashes\\
are not allowed in file names. As consequence, the csv file is wrongly put in the zipped file into many sub-folders, where instead it should be located at the root:
https://citnet.tech.ec.europa.eu/CITnet/jira/browse/SDMXRI-1937