Bug 147001 - Keeping the leading "https://" in the host URL of a WebDAV service results in erroneous settings
Summary: Keeping the leading "https://" in the host URL of a WebDAV service results in...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.0.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 148610 (view as bug list)
Depends on:
Blocks: WebDAV
  Show dependency treegraph
 
Reported: 2022-01-26 12:20 UTC by Stéphane Guillou (stragu)
Modified: 2023-03-19 08:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
resulting erroneous WebDAV settings (16.11 KB, image/png)
2022-01-26 13:10 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2022-01-26 12:20:24 UTC
Description:
When setting up a remote service with WebDAV, if the user keeps the leading "https://" in the host URL, the service will fail to connect as it only saves "https" as the host.

Steps to Reproduce:
1. File > Open Remote...
2. Manage services > Add service
3. Fill in details for a WebDAV connection, keeping the "https://" at the beginning of the URL for the "Host" field (and using "Secure connection" for this example)
4. Click "OK": it fails to connect
5. Click "Manage services > Edit service"


Actual Results:
The settings:
- use "https" as the host
- use the port 80 even if "secure connection" was used
- have prepended "//<host.url>/:443/" to the root value

Expected Results:
Host URLs are supported regardless of if they have the leading "https://" or not.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
To connect to my NextCloud, I use the following settings:

- Type: WebDAV
- Host: nextcloud.instance.url (no HTTP(S) at the beginning)
- Secure connection ticked (which changes the port to 443)
- Label: label of your choice
- Root: remote.php/dav/files/USERNAME/

Earliest version tested:

Version: 7.0.6.2
Build ID: 00(Build:2)
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.6-0ubuntu0.18.04.1_lo1
Calc: threaded

But issue still present in:

Version: 7.3.0.2 / LibreOffice Community
Build ID: f1c9017ac60ecca268da7b1cf147b10e244b9b21
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2022-01-26 13:10:57 UTC
Created attachment 177805 [details]
resulting erroneous WebDAV settings
Comment 2 Gabor Kelemen (allotropia) 2022-05-03 07:01:45 UTC
*** Bug 148610 has been marked as a duplicate of this bug. ***
Comment 3 Gabor Kelemen (allotropia) 2022-05-03 07:02:35 UTC
Confirming because of duplicate.