Modify

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#9201 closed defect (fixed)

remote control issues

Reported by: jphilipz Owned by: team
Priority: normal Milestone: 13.11
Component: Core remotecontrol Version: latest
Keywords: Cc:

Description

  1. when visiting < http://127.0.0.1:8111/ > the example for load_and_zoom has the wrong query.
  2. when executing < http://127.0.0.1:8111/load_and_zoom?left=55.44465291996005&top=25.407636340517755&right=55.448247080040005&bottom=25.410543642328545 > after only opening josm, i get the error dialog entitled 'bad request' with the text

"The OSM server 'http://api.openstreetmap.org/api/0.6/' reported a bad request.
Error message(untranslated): The latitudes must be between -90 and 90, longitudes between -180 and 180 and the minima must be less than the maxima.". I get an 'OK' message in my browser for this request, while if i did the same with the example for add_node, i get a 'There is no layer opened to add node'. Looking through the examples at < http://127.0.0.1:8111/ > i noticed the 'new_layer=true' query entry for 'load_object', which worked even though i didnt have a layer active, which attaching it to the 'load_and_zoom' request didnt solve the issue, but noticed that if the 'new_layer=true' was in the query after the layer was active, i got the same 'bad request' dialog.

Attachments (0)

Change History (8)

comment:1 by skyper, 12 years ago

Component: CoreCore remotecontrol

comment:2 by Don-vip, 12 years ago

Point 1 is a bug.
Point 2 is not an error from JOSM, you have inverted top and bottom parameters.

comment:3 by Don-vip, 12 years ago

Resolution: fixed
Status: newclosed

In 6332/josm:

fix #9201 - fix remote control usage examples for handlers with several commands + typo

in reply to:  2 comment:4 by jphilipz, 12 years ago

Resolution: fixed
Status: closedreopened

Replying to Don-vip:

Point 2 is not an error from JOSM, you have inverted top and bottom parameters.

It seems you didnt read the full explanation, as you are mistaken about the top and bottom parameters, and would appreciate if you would read it again. But to summarize it, if JOSM is only opened without a data layer, this error occurs, but if the data layer is available it jumps to that location without the error.

comment:5 by jphilipz, 12 years ago

It seems i was mistaken about the top and bottom parameters part of the issue, but it seems that if a data layer is open, the code fixes the issue even if they were switched.

comment:6 by Don-vip, 12 years ago

Resolution: fixed
Status: reopenedclosed

In 6350/josm:

fix #9201 - Remote control: Additional validation of arguments of load_and_zoom handler

comment:7 by Don-vip, 11 years ago

Milestone: 13.11 (6383)

comment:8 by stoecker, 8 years ago

Milestone: 13.11 (6383)13.11

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.