Bug #15294
openFix duplicate Transfer Encoding issue in File Downloader service
0%
Description
Currently in stream file downloader service, the Transfer-Encoding : chunked header with the value is present. With nginx versions higer than 1.18.0, the following error is observed.
Nginx: upstream sent duplicate header line: "Transfer-Encoding: chunked", previous value: "Transfer-Encoding: chunked”
Suggestions:
https://github.com/entgra-proprietary/proprietary-commons/blob/7b824c66001988095c516454a46d8fca5e184149/components/extensions/application-mgt/io.entgra.proprietary.commons.extension.application.mgt.api/src/main/java/io/entgra/proprietary/commons/extension/application/mgt/api/impl/ArtifactDownloadAPIImpl.java#L72 remove the Transfer-Encoding header and check against a nginx and local setup whether the files are downloaded properly or not for large files.
Notes:
JAX-RS should add this transfer encoding header if the Streaming Output handler is being use for sending the file streams. Hence this duplicated header could cause the issue. First verify as mentioned in the suggestion and see.
No data to display