Modify

Opened 6 days ago

Last modified 6 days ago

#24298 new enhancement

Add the ability to know the OSM server via Remote Control

Reported by: TrickyFoxy Owned by: team
Priority: normal Milestone: 25.05
Component: Core remotecontrol Version:
Keywords: Cc:

Description (last modified by TrickyFoxy)

I added an osm_server_url field to the /version command response with the user's current OSM server.

{
  "protocolversion": {
    "major": 1,
    "minor": 13
  },
  "application": "JOSM RemoteControl",
  "version": 19402,
  "osm_server_url": "https://api.openstreetmap.org/api"
}

I am writing an extension that makes heavy use of Remote Control in JOSM. For example, to revert changesets or open objects in JOSM. The extension supports working with the API sandbox, but the user may forget to change the OSM server in the settings. [1] In the best case, an error will occur, in the worst case, you will corrupt the user's layer or, even worse, he will not notice this and send the changes to the server.

Therefore, I propose to give external tools the ability to check the current OSM server. Since most users do not change this setting, I do not see any risk of disclosing private information.

Patch note: I replaced the static field with a static method because the OSM server can be modified while JOSM is running.

[1] https://github.com/deevroman/better-osm-org/issues/258

Attachments (1)

Add_the_ability_to_know_the_OSM_server_via_Remote_Control.patch (4.0 KB ) - added by TrickyFoxy 6 days ago.

Download all attachments as: .zip

Change History (3)

comment:1 by TrickyFoxy, 6 days ago

Description: modified (diff)

comment:2 by stoecker, 6 days ago

Milestone: 25.05

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to TrickyFoxy.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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