[openstreetmap/openstreetmap-website] Block repeated identical GPX uploads (#2259)
mmd
notifications at github.com
Sat Jun 15 08:10:32 UTC 2019
This user https://www.openstreetmap.org/user/jojkuhiuwer/traces uploads identical traces every minute. Can we add a simple check to prevent broken upload scripts?
E.g.: before inserting a new trace, check table `gpx_files` for an existing trace where visible = true, inserted = true and new trace has identical user_id, size, latitude, longitude, description and visibility. If a match exist, reject the upload with an error message.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2259
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190615/82328bec/attachment.html>
More information about the rails-dev
mailing list