Skip to content

Conversation

@hbenali
Copy link
Contributor

@hbenali hbenali commented Sep 12, 2025

Currently, JitsiGateway.forward() incorrectly handles all HTTP responses by converting them to text using EntityUtils.toString(). This corrupts binary resources such as images, PDFs, and other static assets when proxied through the gateway, resulting in 0 KB files.

Changes made:

Binary responses (non-JSON) are now streamed directly to the client using OutputStream instead of Writer.

JSON responses continue to be handled as text.

Ensures that images like logo.png served via /jitsi/images/ are delivered correctly.

This fix resolves the issue where proxied static resources appear empty and preserves proper handling of both JSON and binary content.

@hbenali hbenali changed the base branch from develop to feature/maintenance September 12, 2025 09:17
@github-actions github-actions bot added the partialCIBuild Perform Partial CI Build label Sep 12, 2025
@hbenali hbenali enabled auto-merge (squash) September 12, 2025 09:19
@hbenali hbenali merged commit ec2f518 into feature/maintenance Sep 12, 2025
7 checks passed
@hbenali hbenali deleted the fix-assets branch September 12, 2025 09:19
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

partialCIBuild Perform Partial CI Build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants