Bug 485682 - knetattach/dolphin webdavs permanent mount fails -- mount request incorrectly sent as insecure HTTP, not required HTTPS
Summary: knetattach/dolphin webdavs permanent mount fails -- mount request incorrectly...
Status: RESOLVED FIXED
Alias: None
Product: knetattach
Classification: Applications
Component: general (show other bugs)
Version: 5.27.11
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-17 15:37 UTC by _
Modified: 2024-04-17 17:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ 2024-04-17 15:37:51 UTC
on

	Operating System: Fedora Linux 39
	KDE Plasma Version: 5.27.11
	KDE Frameworks Version: 5.115.0
	Qt Version: 5.15.12
	Kernel Version: 6.8.5-201.fc39.x86_64 (64-bit)
	Graphics Platform: X11

i've set up a local WebDav server; nginx, config

	server {
	        listen [fd80:10:10::17]:443 ssl;
	        listen 10.10.10.17:443 ssl;
	        http2 on;
	        server_name webdav.example.com;
			...
	        ssl_verify_client off;
	        ssl_trusted_certificate "/sec/CA.chain.CHAIN.crt.pem";
	        ssl_certificate         "/sec/webdav.example.com.crt.pem";
	        ssl_certificate_key     "/sec/webdav.example.com.key.pem";

	        location = /favicon.ico { access_log off; log_not_found off; }
	        location / {
	                root /webdav;
	                autoindex on;

	                dav_methods PUT DELETE MKCOL COPY MOVE;
	                dav_ext_methods PROPFIND OPTIONS;
	                dav_access  user:rw  group:rw  all:rw;

	                client_body_temp_path /tmp/;
	                client_max_body_size 0;
	                create_full_put_path  on;
	        }
	}


it's up & accessible

	cadaver https://webdav.example.com
		dav:/> ls
		Listing collection `/': succeeded.
		        test.txt                               0  Apr 17 09:53
		dav:/>

if, in dolphin, i enter a direct URL to webdav path:

	webdavs://webdav.example.com

i see 'test.txt' in Dolphin file list, as expected

@ web logs,

	2024/04/17 10:54:56 [notice] 53641#53641: *8 "^(.*[^/])$" does not match "/", client: fd80:10:10::7, server: webdav.example.com, request: "PROPFIND / HTTP/1.1", host: "webdav.example.com"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND / HTTP/1.1" 207 803 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	2024/04/17 10:54:56 [info] 53641#53641: *9 client sent invalid request while reading client request line, client: fd80:10:10::7, server: webdav.example.com, request: "PROPFIND  HTTP/1.1"
	2024/04/17 10:54:56 [notice] 53641#53641: *8 "^(.*[^/])$" does not match "/", client: fd80:10:10::7, server: webdav.example.com, request: "PROPFIND / HTTP/1.1", host: "webdav.example.com"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND / HTTP/1.1" 207 424 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND  HTTP/1.1" 400 150 "-" "-" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND /test.txt HTTP/1.1" 207 467 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "GET /test.txt HTTP/1.1" 200 0 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND /test.txt HTTP/1.1" 207 467 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "GET /test.txt HTTP/1.1" 200 0 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND /test.txt HTTP/1.1" 207 467 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "GET /test.txt HTTP/1.1" 200 0 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND /test.txt HTTP/1.1" 207 467 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "GET /test.txt HTTP/1.1" 200 0 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND /test.txt HTTP/1.1" 207 467 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "GET /test.txt HTTP/1.1" 200 0 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "PROPFIND /test.txt HTTP/1.1" 207 467 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"
	fd80:10:10::7 - - [17/Apr/2024:10:54:56 -0400] "GET /test.txt HTTP/1.1" 200 0 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 dolphin/23.08.5" "-"

if I attempt to create a *permanent* WebDav mount in Dolphin,

	dolphin -> remote -> Network -> Add Network Folder

		[X] WebFolder (webdav)

		Name:   [webdavtest]
		Server: [webdav.example.com]
		Port:   [443]
		Folder: [/]

	-> [Save & Connect]

I get error dialog

	Error - KDE Network Wizard
	Unable to connect to server. Please check your settings and try again.

and web logs,

	2024/04/17 10:52:05 [info] 53553#53553: *11 client sent plain HTTP request to HTTPS port while reading client request headers, client: fd80:10:10::7, server: webdav.example.com, request: "PROPFIND / HTTP/1.1", host: "webdav.example.com:443"
	fd80:10:10::7 - - [17/Apr/2024:10:52:05 -0400] "PROPFIND / HTTP/1.1" 400 248 "-" "Mozilla/5.0 (X11; Linux) KIO/5.115 knetattach/5.27.11" "-"

there's neither an auto-config of port 443 as ssl port, nor an obvious mechanism to specify the ssl usage (webdafs).
Comment 1 _ 2024-04-17 17:47:20 UTC
took a look at the code ... turns out the

   [X] Use encryption

option in the dialog refers to SSL/TLS usage, *not* to content encryption.
so, does the trick.

could benefit from a  'webdavs' label, made more consistent with the usage in the Dolphin *direct* URL.