Project

General

Profile

Actions

Bug #15294

open

Fix duplicate Transfer Encoding issue in File Downloader service

Added by Rajitha Kumara 1 day ago.

Status:
New
Priority:
Medium
Assignee:
-
Start date:
07/01/2026
Due date:
% Done:

0%

Estimated time:
Device Type:
Component:
Type:
QA Start Time:
QA Due Time:
QA Estimated Time(Hours):

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

Actions

Also available in: Atom PDF