projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b350c78
)
Disallow changesets query with both time and order=oldest
author
Anton Khorev
<tony29@yandex.ru>
Tue, 15 Aug 2023 15:40:49 +0000
(18:40 +0300)
committer
Anton Khorev
<tony29@yandex.ru>
Tue, 15 Aug 2023 16:29:06 +0000
(19:29 +0300)
app/controllers/api/changesets_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/api/changesets_controller.rb
b/app/controllers/api/changesets_controller.rb
index 8a1b9f55bc779993d296f823afb286976becd98c..2f397b70617043cd613d4d0fe4077c0795eef0e7 100644
(file)
--- a/
app/controllers/api/changesets_controller.rb
+++ b/
app/controllers/api/changesets_controller.rb
@@
-157,6
+157,8
@@
module Api
##
# query changesets by bounding box, time, user or open/closed status.
def query
+ raise OSM::APIBadUserInput, "cannot use order=oldest with time" if params[:time] && params[:order] == "oldest"
+
# find any bounding box
bbox = BoundingBox.from_bbox_params(params) if params["bbox"]