]> git.openstreetmap.org Git - rails.git/commit
Validate the bbox parameters when exporting
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Sep 2026 14:43:59 +0000 (15:43 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Sep 2026 16:28:56 +0000 (17:28 +0100)
commite4520a2c128c43976fd88a379cbbffb9cc9d049f
treeeb10a13b9cb9ef97933eadd36f89143709dacbd7
parent71209a069e76d768f2eaec819bd338b2ab06cc89
Validate the bbox parameters when exporting

A missing parameter raised OSM::APIBadUserInput, which isn't handled
by web controllers and so resulted in a 500 error, and a non-numeric
one was silently treated as zero. Validate them with param! instead
so that both get a bad request response.
app/controllers/export_controller.rb
test/controllers/export_controller_test.rb