Since we are moving away from http as an accepted protocol, when you enter a web address without specifying a protocol, the URL should default to https. For example, if I enter a Web URL as example.com The resulting URL should be https://example.com In version 7.3.3.2 it defaults to http://example.com
True, currently LO is defaulting to http instead of https. Steps to reproduce: 1) Open Writer 2) Type www.somesite.com and press Enter 3) Writer will automatically format as a URL hyperlink 4) Right-click it and go to Edit Hyperlink 5) The URL will be http://www.somesite.com/ Instead it should be https://www.somesite.com/ Repro with Version: 7.5.0.0.alpha0+ / LibreOffice Community Build ID: cb83063cc0eb4e93bd44bc0cb9b7c4841230cdef CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Calc: threaded And with Version: 7.3.3.2 / LibreOffice Community Build ID: 30(Build:2) CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb) Locale: pt-BR (pt_BR.UTF-8); UI: en-US Ubuntu package version: 1:7.3.3~rc2-0ubuntu0.21.10.1~lo1 Calc: threaded
Actually this is happening not only in Writer, but in Calc, Impress and Draw as well.
I thought this might be a super easy one to find, but so luck so far. I searched for INET_HTTP_SCHEME, '"http://' and PROT_HTTP. Likely changing it will break a lot of internal stuff that just expects http, like unit tests or other non-LAN interactions.
This works, but likely breaks all kinds of stuff. https://gerrit.libreoffice.org/c/core/+/168167?usp=dashboard
IMO this is WontFix, as it is based no wrong assmuption that we need to move from http to https, without reason. Usually if a site has https only, it will redirect. No need for LO change. There is no use case described why the change would be necessary.
(In reply to Timur from comment #5) > WONTFIX: based on wrong assumption that we need to move from http to https Well said. I was going to say the same thing. The value of HTTPS is way overstated IMHO (or perhaps I should say the fear of HTTP is unwarranted).
NEW status needs to be reconsidered. Rafael put it simply by reproducing, but that is not the same as accepting.
FWIW google docs auto-hyperlink-izes www.google.com to http://www.google.com so the 'autocorrect' level doesn't seem to explicitly put https:// there either. But Justin's patch seems reasonable to me on the face of things. We are still auto detecting ftp.what.ever as a ftp:// link even though we dropped support for ftp, which is maybe mildly entertaining.
Created attachment 194544 [details] preferHTTPS.patch: the abandoned commit mentioned in comment 4