mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
The rom update endpoint downloads SS media via store_media_file without re-attaching the user credentials that were stripped before storage, so edit/update flows fall back to the anonymous quota. Wrap the URL with add_ss_auth_to_url at the call site, matching the existing scan path. Add unit tests covering the new URL helpers and edge cases: - test_base_handler: strip/restore sensitive query params, including case-insensitive key matching, no-duplicate restoration, special-char encoding, blank values, and URL-component preservation. - test_ss_handler: add_ss_auth_to_url honors empty user/password, doesn't duplicate pre-existing creds, handles the storage-shaped stripped URL, and round-trips with extract_media_from_ss_game so the stored URL never carries user creds while the download URL uses the current runtime creds. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>