Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use https URLs for openstreetmap.org. #19359

Merged
merged 1 commit into from
Jan 13, 2018

Conversation

grischard
Copy link
Contributor

@grischard grischard commented Jan 12, 2018

Summary of Changes

OpenStreetMap is moving to https by default and all oauth calls made to the http endpoint after that will fail. This simple PR converts all openstreetmap.org http calls to https.

While I was at it, I converted all the other openstreetmap.org URLs to use https.

No related Joomla issue, no additional tests, no documentation changes.

@brianteeman
Copy link
Contributor

Thank you for this PR

Please can you make it upstream at https://github.com/joomla-framework/openstreetmap-api

@grischard
Copy link
Contributor Author

Thanks, done! joomla-framework/openstreetmap-api#4

@grischard grischard closed this Jan 12, 2018
@brianteeman
Copy link
Contributor

thank you

@mbabker
Copy link
Contributor

mbabker commented Jan 12, 2018

This PR still needs to be applied here for the 3.x releases since the Framework package isn't in use.

@mbabker mbabker reopened this Jan 12, 2018
@brianteeman
Copy link
Contributor

@mbabker my mistake sorry I thought we pulled the framework passage in

@@ -99,9 +99,9 @@ public function __construct(JOpenstreetmapOauth $oauth = null, Registry $options
$this->client = isset($client) ? $client : new JHttp($this->options);

// Setup the default API url if not already set.
$this->options->def('api.url', 'http://api.openstreetmap.org/api/0.6/');
$this->options->def('api.url', 'https://api.openstreetmap.org/api/0.6/');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the correct url?

Couldn't find a file/directory/API operation by that name on the OpenStreetMap server (HTTP 404)

Copy link
Contributor Author

@grischard grischard Jan 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that error message isn't very helpful. It's the api base url, objects are contained in other URLs within, e.g. https://api.openstreetmap.org/api/0.6/node/3109685771

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok thanks

@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on 3fc2692

Code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19359.

@Quy
Copy link
Contributor

Quy commented Jan 12, 2018

I have tested this item ✅ successfully on 3fc2692


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19359.

@joomla-cms-bot joomla-cms-bot changed the title Use https URLs for openstreetmap.org. Use https URLs for openstreetmap.org. Jan 12, 2018
@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 12, 2018
@brianteeman brianteeman added this to the Joomla 3.8.4 milestone Jan 12, 2018
@zero-24
Copy link
Contributor

zero-24 commented Jan 13, 2018

Merged for 3.8.4 thanks.

@zero-24 zero-24 merged commit 7725436 into joomla:staging Jan 13, 2018
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants