frappe / press

Full service cloud hosting for the Frappe stack - powers Frappe Cloud
https://frappe.cloud
GNU Affero General Public License v3.0
239 stars 165 forks source link

Error encountered while previewing attached files with names containing '%' in the production server #1840

Open manavmandli opened 2 months ago

manavmandli commented 2 months ago

Information about bug

In the production server, when previewing a file with a name like "manav%mandli," the file preview is not displaying and an error like "400 bad request | nginx" is being displayed. However, in the local setup, it works properly. I tried to override the uploading function using the "urllib.parse" library, but the preview is still not displaying.

Module

other

Version

Frapper version-14 ERPNext version-14

Installation method

None

Relevant log output / Stack trace / Full Error Message.

400 Bad Request
nginx
akhilnarang commented 1 month ago

Seems fine with werkzeug, just an issue with NGINX config most likely.