Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing custom uploaded resources with spaces in filename doesn't work #829

Open
timtim17 opened this issue Jan 16, 2025 · 0 comments
Open
Labels
bug Something isn't working Local

Comments

@timtim17
Copy link

timtim17 commented Jan 16, 2025

Describe the bug
After uploading a file with a space in the name to the "Resources" section, attempting to access it results in a 404.

To Reproduce
Steps to reproduce the behavior:

  1. Go to "Resources"
  2. Upload a file with a space in the file name
    • Uploading "into_the_deep.png" works, uploading "into the deep.png" does not.
  3. Click on the file to access it
  4. See error

Expected behavior
The file loads using default browser behavior

Screenshots
image

image
02:20:11.613 [JettyServerThreadPool-102] [] INFO  org.usfirst.ftc.server.Server - Time: 01/16/2025 02:20:11:613 AM, Session: Optional[85c1cf1f-5ba4-46bd-8d01-64d62c32b812], User: local, Route: http://localhost/resources/upload/ POST
02:20:11.617 [JettyServerThreadPool-102] [] INFO  o.u.ftc.server.ServerRoutesLogic - Uploading into the deep.png
[snip...]
02:20:13.611 [JettyServerThreadPool-89] [] INFO  org.usfirst.ftc.server.Server - Time: 01/16/2025 02:20:13:611 AM, Session: Optional[85c1cf1f-5ba4-46bd-8d01-64d62c32b812], User: local, Route: http://localhost/resources/into%20the%20deep.png GET
02:20:13.614 [JettyServerThreadPool-89] [] INFO  org.eclipse.jetty.server.RequestLog - [localhost] 127.0.0.1 - - [16/Jan/2025:10:20:13 +0000] "GET /resources/into%20the%20deep.png HTTP/1.1" 404 2388 "http://localhost/resources/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0" 4000

Device (please complete the following information):

  • OS: macOS 15.2 (24C101)
  • Browser: Firefox 133.0.3 (aarch64)
  • FTCLive v6.4.2
@timtim17 timtim17 added bug Something isn't working Local labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Local
Projects
None yet
Development

No branches or pull requests

1 participant