ramp4-pcar4 / storylines-editor

An editor for RAMP Storylines
5 stars 13 forks source link

Thumbs.db is causing the Express server to crash on save #397

Closed RyanCoulsonCA closed 1 month ago

RyanCoulsonCA commented 2 months ago

Description

When a product is saved while Thumbs.db is present in the assets folder, the server will crash with an E_PERM error. This causes any future save/load requests to fail, and for the user who hit the save button, the editor will display the spinner endlessly without informing them that the request to the server failed.

Screenshots

image

Steps to reproduce

  1. Copy the TCEI-IECT product from the dev server to the server/public folder on your machine.
  2. Run the Express server.
  3. Load the product in the editor.
  4. Click save and notice that the E_PERM error appears in the Express server console.

Expected behavior

The save should be successful. If it's not, the user should be alerted that the request failed.

Actual behavior

Editor spins endlessly.