Modify

Opened 11 years ago

Closed 10 years ago

#8825 closed enhancement (fixed)

coordinates in XAPI query leads to "Bad request"

Reported by: skyper Owned by: roland.olbricht
Priority: major Milestone:
Component: Plugin mirrored_download Version:
Keywords: coordinates XAPI Cc:

Description

I did enter

[gluten_free=*][bbox=-180,-90,180,90][@meta]

and got a "Bad request" error message as respond.

bad request error message

Please:

  1. allow coordinates in the query by overriding the selected bounding box.
  2. give some more info on the error message as the help button only leads to the error message page where this message is even not mentioned.

Thanks

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-06-26 01:35:20
Last Changed Author: akks
Revision: 6023
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-06-25 14:27:11 +0200 (Tue, 25 Jun 2013)
Last Changed Rev: 6023

Identification: JOSM/1.5 (6023 en) Linux Debian GNU/Linux 7.1 (wheezy)
Memory Usage: 171 MB / 592 MB (87 MB allocated, but free)
Java version: 1.6.0_27, Sun Microsystems Inc., OpenJDK 64-Bit Server VM
Dataset consistency test: No problems found

Plugin: OpeningHoursEditor (29435)
Plugin: conflation (0.1.6)
Plugin: jts (29613)
Plugin: mirrored_download (29643)
Plugin: openstreetbugs (29435)
Plugin: reverter (29663)
Plugin: undelete (29555)
Plugin: utilsplugin2 (29672)
Plugin: wikipedia (29523)

Attachments (0)

Change History (2)

comment:1 by Don-vip, 11 years ago

Indeed, the URL is badly built in that case:

GET http://overpass-api.de/api/xapi?*%5Bbbox%3D1.477586%2C43.615184%2C1.4817059%2C43.6179803%5D%5B%40meta%5D%5Bgluten_free%3D*%5D%5Bbbox%3D-180%2C-90%2C180%2C90%5D%5B%40meta%5D
org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Body=<Error in [*[bbox=1.477586,43.615184,1.4817059,43.6179803][@meta][gluten_free=*][bbox=-180,-90,180,90][@meta]]:
Error: At most one bbox allowed.>
	at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:138)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:50)
	at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxDownloader.java:136)
	at mirrored_download.MirroredDownloadAction$MirroredDownloadReader.parseOsm(MirroredDownloadAction.java:191)
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.parseDataSet(DownloadOsmTask.java:198)
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.realRun(DownloadOsmTask.java:205)

comment:2 by simon04, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in [o30106], [o30107].

Btw: [o29814] is related (for Overpass query).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain roland.olbricht.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.