Meteor-Files icon indicating copy to clipboard operation
Meteor-Files copied to clipboard

Cannot stream a video with filenames longer than 80 characters

Open Olivier-STI opened this issue 2 years ago • 1 comments

Issue Description

Summary: I'm encountering a 502 Bad Gateway error when attempting to stream a file with a filename longer than 80 characters using the meteor/files (ostrio) package.

Steps to Reproduce:

  1. Create a file with a filename longer than 80 characters.
  2. Attempt to stream this file using the meteor/files (ostrio) package.
  3. Observe the 502 Bad Gateway error.

Expected Behavior: I expected the package to handle files with filenames longer than 80 characters without causing a 502 Bad Gateway error.

Actual Behavior: The package throws a 502 Bad Gateway error when trying to stream files with filenames longer than 80 characters.

Environment Information

  • Meteor Version: Meteor: 2.8.0
  • Package Version: ostrio:cookies: 2.7.2 - ostrio:files: 2.0.1
  • Operating System: Ubuntu 22.04.3 LTS

Additional Information

I have noticed that this issue only occurs with filenames exceeding 80 characters. Shorter filenames work as expected.

Olivier-STI avatar Oct 03 '23 12:10 Olivier-STI

@Olivier-STI thank you for the report. Please provide:

  1. Request and response HTTP headers
  2. Details on proxy-, file-, web-server
  3. Details regarding 3rd party services netlify, CloudFlare, CDNs, etc
  4. Any reason why you're not on the latest release? ostrio:[email protected] and up had a lot of critical fixes including ones related to Content-Disposition

dr-dimitru avatar Oct 03 '23 21:10 dr-dimitru