Modify

Opened 6 years ago

Closed 6 years ago

#15532 closed enhancement (fixed)

[PATCH] Use HTTPS to communicate with OSM dev servers

Reported by: naoliv Owned by: team
Priority: normal Milestone: 17.11
Component: Core Version:
Keywords: https api Cc:

Description

To avoid redirects if we select a dev server to test something:

2017-11-08 11:08:34.917 INFO: POST http://master.apis.dev.openstreetmap.org/api/0.6/changeset/108073/upload (529 B) ...
2017-11-08 11:08:35.156 FINE: Uploading data ...
2017-11-08 11:08:35.396 INFO: POST http://master.apis.dev.openstreetmap.org/api/0.6/changeset/108073/upload -> 301 (380 B)
2017-11-08 11:08:35.397 FINE: RESPONSE: {null=[HTTP/1.1 301 Moved Permanently], Server=[Apache/2.4.18 (Ubuntu)], Connection=[close], Content-Length=[380], Date=[Wed, 08 Nov 2017 13:08:36 GMT], Content-Type=[text/html; charset=iso-8859-1], Location=[https://master.apis.dev.openstreetmap.org/api/0.6/changeset/108073/upload]}
2017-11-08 11:08:35.397 INFO: Download redirected to 'https://master.apis.dev.openstreetmap.org/api/0.6/changeset/108073/upload'
2017-11-08 11:08:35.398 FINE: Contacting Server...
2017-11-08 11:08:35.398 FINE: null
2017-11-08 11:08:35.399 INFO: POST https://master.apis.dev.openstreetmap.org/api/0.6/changeset/108073/upload (529 B) ...
2017-11-08 11:08:35.886 FINE: Uploading data ...
  • src/org/openstreetmap/josm/gui/preferences/server/OsmApiUrlInputPanel.java

     
    5858    /** indicates whether to use the default OSM URL or not */
    5959    private JCheckBox cbUseDefaultServerUrl;
    6060    private final transient ListProperty SERVER_URL_HISTORY = new ListProperty("osm-server.url-history", Arrays.asList(
    61             "http://api06.dev.openstreetmap.org/api", "http://master.apis.dev.openstreetmap.org/api"));
     61            "https://api06.dev.openstreetmap.org/api", "https://master.apis.dev.openstreetmap.org/api"));
    6262
    6363    private transient ApiUrlPropagator propagator;
    6464

Attachments (0)

Change History (2)

comment:1 by Don-vip, 6 years ago

Keywords: https api added
Milestone: 17.11

comment:2 by Don-vip, 6 years ago

Resolution: fixed
Status: newclosed

In 13098/josm:

fix #15532 - Use HTTPS to communicate with OSM dev servers (patch by naoliv)

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.