openstreetmap-website
openstreetmap-website copied to clipboard
Make the Multi fetch response more friendly for hidden versions of objects
Problem
Multi Fetch requests return HTTP 404 without a hint about which argument caused the error
Description
For example, y https://www.openstreetmap.org/node/250407804/history the first versions are hidden.
If you do https://www.openstreetmap.org/api/0.6/nodes.json?nodes=250407804v1 you will receive an HTTP 404. But what if you request a hundred nodes and there are several hidden versions among them? https://www.openstreetmap.org/api/0.6/nodes.json?nodes=250407804,250407804v1
You'll get a 404, but you won't be able to figure out which version caused the error. And to understand this, you will have either split the query, or call /history for each object, which kills the idea of Multi Fetch queries.
Possible solutions
- Return visible versions, but no hidden versions (by passing an additional flag?)
- Return a 404 and a list of problem nodes
p. s. the same applies for ways and relations
Screenshots
No response