<div><div dir="auto">You have a good point. I’ll add code to skip that object if multiple identical values are present.</div></div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, Feb 26, 2019 at 6:39 AM Rory McCann <<a href="mailto:rory@technomancy.org">rory@technomancy.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
As far as I remember, you're not planning on touching other tags, like <br>
`contact:website`. *But* what happens if an object has <br>
`website=<a href="http://example.com" rel="noreferrer" target="_blank">http://example.com</a>,contact:website=<a href="http://example.com" rel="noreferrer" target="_blank">http://example.com</a>`? You'd <br>
make it inconsistant!<br>
<br>
I suggest a simple solution: If any other tag has that same value, then <br>
skip that object. Then it won't be made "inconsistant". I have no idea <br>
how many objects this applies to, possibly none! Hopefully you're script <br>
will be able to tell us :)<br>
<br>
Rory<br>
<br>
On 22/02/2019 08:02, Bryce Jasmer wrote:<br>
> I have written a script that will search for OSM objects that have a <br>
> website tag that explicitly states "http://..." or implicitly uses http <br>
> by leaving of the protocol specification. The script will then loop <br>
> through all that it discovers and asks the http site if it will redirect <br>
> me to the secure version of the website over the https protocol. If it <br>
> does, I will update the database with the new value.<br>
> <br>
> This has a couple of advantages. From now through the end of time, any <br>
> user clicking on one of those links will be spared the time it takes to <br>
> establish the connection, ask if there is a secure version of the site, <br>
> and tear down the connection. It's on the order of 10-200 ms to do, but <br>
> over the life of the link and the number of objects that are clicked and <br>
> the population, this could save centuries of time :-)<br>
> <br>
> Another advantage is that it will make https more pervasive and <br>
> hopefully people will start thinking https and forgetting all about <br>
> http. A more secure internet is in all of our best interests.<br>
> <br>
> Anyway, I'd like to (slowly) run this across the planet. I've discussed <br>
> this on the US Slack channel and have performed the actions on the <br>
> United States already. I've addressed many questions and have heard no <br>
> strong objections. I'm seeking feedback from the larger community now <br>
> before proceeding.<br>
> <br>
> The wiki page is <a href="https://wiki.openstreetmap.org/wiki/Automated_Edits/b-jazz" rel="noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Automated_Edits/b-jazz</a><br>
> <br>
> The Slack conversation is available, but has died down and the <br>
> transcript is available at the wiki page mentioned above.<br>
> <br>
> The diary entry with some more conversation is at the bot's page: <br>
> <a href="https://www.openstreetmap.org/user/b-jazz-bot/diary/47743" rel="noreferrer" target="_blank">https://www.openstreetmap.org/user/b-jazz-bot/diary/47743</a><br>
> <br>
> The source code is available on GitLab for review: <br>
> <a href="https://gitlab.com/b-jazz/https_all_the_things" rel="noreferrer" target="_blank">https://gitlab.com/b-jazz/https_all_the_things</a><br>
> <br>
> Example changeset for a run over the "9yfd" geohash: <br>
> <a href="https://www.openstreetmap.org/changeset/67454775" rel="noreferrer" target="_blank">https://www.openstreetmap.org/changeset/67454775</a><br>
> <br>
> I welcome your input.<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> talk mailing list<br>
> <a href="mailto:talk@openstreetmap.org" target="_blank">talk@openstreetmap.org</a><br>
> <a href="https://lists.openstreetmap.org/listinfo/talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/talk</a><br>
> <br>
<br>
</blockquote></div></div>