issues: 781262510

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason performed_via_github_app
781262510 MDU6SXNzdWU3ODEyNjI1MTA= 1181 Certain database names results in 404: "Database not found: None" 1470389 open 0     3 2021-01-07T12:01:16Z 2021-01-17T00:24:40Z   NONE  

I have a file named test-database (1).sqlite. When requesting the home route /, I see datasette is able to read it correctly:">

However, if I click any of the links, datasette replies with: Error 404 Database not found: None

It seems the hash is crucial, as renaming the file to database (1).sqlite makes the error go away.

This lines checks for a single dash:

$ datasette test-database\ \(1\).sqlite 
INFO:     Started server process [68314]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on (Press CTRL+C to quit)
INFO: - "GET /favicon.ico HTTP/1.1" 200 OK
INFO: - "GET / HTTP/1.1" 200 OK
INFO: - "GET /favicon.ico HTTP/1.1" 200 OK
INFO: - "GET /test-database (1) HTTP/1.1" 404 Not Found


$ datasette --version
datasette, version 0.53
107914493 issue    

Links from other tables