[openstreetmap/openstreetmap-website] catch invalid URLs instead of just showing somewhere else (#1198)

積丹尼 Dan Jacobson notifications at github.com
Sun Jun 23 01:29:46 UTC 2024


Fine,
- https://www.openstreetmap.org/#map=18/24.18313,120.79612

resolves to
- https://www.openstreetmap.org/#map=12/24.1828/120.8653
- https://www.openstreetmap.org/#map=7/23.611/120.768
- etc.

Depending on
- use of a fresh incognito window
- cookies
- etc.

In conclusion, by always assuming valid input, a garbage in garbage out situation is created.  OSM can no longer be trusted because OSM assumes valid input without checking, and then goes on to process it further.

Yes you can cross your fingers and hope input is always valid, and cross your fingers again and expect that users will realize they have given invalid input and stop doing that.

But that usually works when users see right away that they aren't getting any results (except a big 404). But instead here we see seemingly correct results, that aren't correct. Also it may be a third party that introduces the error, not the user. E.g., a flawed Wikipedia template.




-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1198#issuecomment-2184310656
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/1198/2184310656 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240622/d6b6536b/attachment.htm>


More information about the rails-dev mailing list