openstreetmap-website icon indicating copy to clipboard operation
openstreetmap-website copied to clipboard

Make the Multi fetch response more friendly for hidden versions of objects

Open deevroman opened this issue 7 months ago • 3 comments

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

  1. Return visible versions, but no hidden versions (by passing an additional flag?)
  2. Return a 404 and a list of problem nodes

p. s. the same applies for ways and relations

Screenshots

No response

deevroman avatar Jul 19 '24 14:07 deevroman