Bug 149750 - Hyperlinks should default to https
Summary: Hyperlinks should default to https
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink
  Show dependency treegraph
 
Reported: 2022-06-27 21:17 UTC by L Duperval
Modified: 2023-11-01 17:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description L Duperval 2022-06-27 21:17:56 UTC
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
Comment 1 Rafael Lima 2022-06-27 21:38:09 UTC
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
Comment 2 Rafael Lima 2022-06-27 21:42:27 UTC
Actually this is happening not only in Writer, but in Calc, Impress and Draw as well.
Comment 3 Justin L 2023-11-01 17:07:53 UTC
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.