Closed SinghNanak closed 1 year ago
Post some screenshots an production.log.
I couldn't find any logs related to this in production.log
Maybe you should check if the Windows Service "WebClient" is running on your machine or not. If it is not running then WebDav won't work.
Really, an excellent screenshot... URL hidden by an error message that the URL is wrong.
I've a positive experience with usage of the link at the bottom of the mapping form.
my url was http://192.168.0.203/redmine/dmsf/webdav/ i tried https://192.168.0.203/redmine/dmsf/webdav/ these are for internal network
can you confirm that dmsf's WebDAV mapping is working on your machine
I can confirm that this is working on my machine. Here a screenshot - Windows 11, but it's als working on Windows 10:
We also had this issue but it was always related to the Windows Service "WebClient" as mentioned above.
@mmundi72 I think I'm also facing same issue can explain how did you resolve the problem.
As mentioned above: make sure that the Windows Service "WebClient" is running. Start "Computer Management" -> Services -> Look for "WebClient". Should be running! Here is a screenshot (sorry, it's in German):
I am also facing problems with the connection to the webdav filesystem. It is working on the brower but I can not connect from windows, neither from the CyberDuck.
I have checked the service WebClient, which is running.
I found an old issue where it is corrected by adding namespaces to the file lib/redmine_dmsf/webdav/custom_middleware.rb, that changes lived in the code for some time, but now it is deleted, Issue #1133 .
Here is a log from cyberduck, redmine answer with not implemented.
`WebDAV (HTTP) connection opened…
HEAD /dmsf/ HTTP/1.1 Host: udit7.iaa.es:3180 Connection: Keep-Alive User-Agent: Cyberduck/8.5.9.39636 (Windows 10/10.0) (amd64) Accept-Encoding: gzip,deflate < HTTP/1.1 302 Found < X-Frame-Options: SAMEORIGIN < X-XSS-Protection: 1; mode=block < X-Content-Type-Options: nosniff < X-Download-Options: noopen < X-Permitted-Cross-Domain-Policies: none < Referrer-Policy: strict-origin-when-cross-origin < Content-Type: text/html; charset=utf-8 < Location: http://udit7.iaa.es:3180/login?back_url=http%3A%2F%2Fudit7.iaa.es%3A3180%2Fdmsf < Cache-Control: no-cache < X-Request-Id: 6159be97-c424-43e2-81a6-014e617046b1 < X-Runtime: 0.008380 < Content-Length: 0 Password will be sent in plaintext. Please contact your web hosting service provider for assistance. Continue (y) or Disconnect (n): (y/n): y Authenticating as jmgomez… HEAD /dmsf/ HTTP/1.1 Host: udit7.iaa.es:3180 Connection: Keep-Alive User-Agent: Cyberduck/8.5.9.39636 (Windows 10/10.0) (amd64) Accept-Encoding: gzip,deflate Authorization: **** < HTTP/1.1 302 Found < X-Frame-Options: SAMEORIGIN < X-XSS-Protection: 1; mode=block < X-Content-Type-Options: nosniff < X-Download-Options: noopen < X-Permitted-Cross-Domain-Policies: none < Referrer-Policy: strict-origin-when-cross-origin < Content-Type: text/html; charset=utf-8 < Location: http://udit7.iaa.es:3180/login?back_url=http%3A%2F%2Fudit7.iaa.es%3A3180%2Fdmsf < Cache-Control: no-cache < X-Request-Id: 1e711a1f-4015-4da8-93cb-4327364402ab < X-Runtime: 0.007682 < Content-Length: 0 HEAD /login?back_url=http%3A%2F%2Fudit7.iaa.es%3A3180%2Fdmsf HTTP/1.1 Host: udit7.iaa.es:3180 Connection: Keep-Alive User-Agent: Cyberduck/8.5.9.39636 (Windows 10/10.0) (amd64) Accept-Encoding: gzip,deflate Authorization: **** < HTTP/1.1 200 OK < X-Frame-Options: SAMEORIGIN < X-XSS-Protection: 1; mode=block < X-Content-Type-Options: nosniff < X-Download-Options: noopen < X-Permitted-Cross-Domain-Policies: none < Referrer-Policy: strict-origin-when-cross-origin < Content-Type: text/html; charset=utf-8 < ETag: W/"0b662de55a9128858cf022a15f8a167e" < Cache-Control: max-age=0, private, must-revalidate < Set-Cookie: _redmine_session=MFlzK1VhM0tCeVh0dzIvTVRMUjUrMW04RVozUEo5YlU1ZUpjUGJaRnc0WWdzMGNtSE16VXFQQVR2QWVma285WDJlTXFpWnVzTVN5WE40L2ZpVk9HOWxtWTBHcTh3empDMXZST0RzdHFiWW1BWHFxRGF2VlJneHdFY3ZFWEd3QnVidld5czhQU3hlZGhKelMwWTJEVlV4b0RIQlZLc04zNWZDSm5BNlBsNlVyTFIyL1dSUVpvNlcyWmtWamdySUQ4LS1QeDNvNFljUUZhQVBXdWxaRHE2MWN3PT0%3D--2abeade58b3658266acb2259de82f985c8ddf84b; path=/; HttpOnly; SameSite=Lax < X-Request-Id: d42b7418-b430-4ff7-9247-b952d798e727 < X-Runtime: 0.016150 Login successful… PROPFIND /dmsf/webdav HTTP/1.1 Depth: 0 Content-Type: text/xml; charset=utf-8 Content-Length: 297 Host: udit7.iaa.es:3180 Connection: Keep-Alive User-Agent: Cyberduck/8.5.9.39636 (Windows 10/10.0) (amd64) Cookie: _redmine_session=MFlzK1VhM0tCeVh0dzIvTVRMUjUrMW04RVozUEo5YlU1ZUpjUGJaRnc0WWdzMGNtSE16VXFQQVR2QWVma285WDJlTXFpWnVzTVN5WE40L2ZpVk9HOWxtWTBHcTh3empDMXZST0RzdHFiWW1BWHFxRGF2VlJneHdFY3ZFWEd3QnVidld5czhQU3hlZGhKelMwWTJEVlV4b0RIQlZLc04zNWZDSm5BNlBsNlVyTFIyL1dSUVpvNlcyWmtWamdySUQ4LS1QeDNvNFljUUZhQVBXdWxaRHE2MWN3PT0%3D--2abeade58b3658266acb2259de82f985c8ddf84b Accept-Encoding: gzip,deflate Authorization: **** < HTTP/1.1 501 Not Implemented < Content-Length: 32 HEAD /dmsf/webdav HTTP/1.1 Host: udit7.iaa.es:3180 Connection: Keep-Alive User-Agent: Cyberduck/8.5.9.39636 (Windows 10/10.0) (amd64) Cookie: _redmine_session=MFlzK1VhM0tCeVh0dzIvTVRMUjUrMW04RVozUEo5YlU1ZUpjUGJaRnc0WWdzMGNtSE16VXFQQVR2QWVma285WDJlTXFpWnVzTVN5WE40L2ZpVk9HOWxtWTBHcTh3empDMXZST0RzdHFiWW1BWHFxRGF2VlJneHdFY3ZFWEd3QnVidld5czhQU3hlZGhKelMwWTJEVlV4b0RIQlZLc04zNWZDSm5BNlBsNlVyTFIyL1dSUVpvNlcyWmtWamdySUQ4LS1QeDNvNFljUUZhQVBXdWxaRHE2MWN3PT0%3D--2abeade58b3658266acb2259de82f985c8ddf84b Accept-Encoding: gzip,deflate Authorization: **** < HTTP/1.1 200 OK < Etag: 1-1000-6447de78 < Content-Type: inode/directory < Last-Modified: Tue, 25 Apr 2023 14:06:48 GMT < X-Request-Id: 4a88b5fb-834e-412c-8638-2da2f3a37ea4 < X-Runtime: 0.019011 Listing directory webdav… PROPFIND /dmsf/webdav HTTP/1.1 Depth: 1 Content-Type: text/xml; charset=utf-8 Content-Length: 297 Host: udit7.iaa.es:3180 Connection: Keep-Alive User-Agent: Cyberduck/8.5.9.39636 (Windows 10/10.0) (amd64) Cookie: _redmine_session=MFlzK1VhM0tCeVh0dzIvTVRMUjUrMW04RVozUEo5YlU1ZUpjUGJaRnc0WWdzMGNtSE16VXFQQVR2QWVma285WDJlTXFpWnVzTVN5WE40L2ZpVk9HOWxtWTBHcTh3empDMXZST0RzdHFiWW1BWHFxRGF2VlJneHdFY3ZFWEd3QnVidld5czhQU3hlZGhKelMwWTJEVlV4b0RIQlZLc04zNWZDSm5BNlBsNlVyTFIyL1dSUVpvNlcyWmtWamdySUQ4LS1QeDNvNFljUUZhQVBXdWxaRHE2MWN3PT0%3D--2abeade58b3658266acb2259de82f985c8ddf84b Accept-Encoding: gzip,deflate Authorization: **** < HTTP/1.1 501 Not Implemented < Content-Length: 32 Listing directory webdav failed. Unexpected response (501 Not Implemented). Please contact your web hosting service provider for assistance.`
HTTP connection is not supported from MS Windows. You must use HTTPS.
Sorry didn't know, does it apply to Linux? I have tried in some linux machines (Fedora and ArchLinux) and it complains the same way.
sudo mount -t davfs http://udit7.iaa.es:3180/dmsf/webdav/ /mnt --verbose Please enter the username to authenticate with server http://udit7.iaa.es:3180/dmsf/webdav/ or hit enter for none. Username: jmgomez Please enter the password to authenticate user jmgomez with server http://udit7.iaa.es:3180/dmsf/webdav/ or hit enter for none. Password: /usr/bin/mount.davfs: Mounting failed. 501 Not Implemented
My experience is limited with this things, any advise? I have followed the installation instructions. I am using the official redmine image at dockerhub:
Environment:
Redmine version 5.0.5.stable
Ruby version 3.1.3-p185 (2022-11-24) [x86_64-linux]
Rails version 6.1.7.2
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Subversion 1.14.1
Mercurial 5.6.1
Bazaar 3.1.0
Git 2.30.2
Filesystem
Redmine plugins:
redmine_agile 1.6.4
redmine_dmsf 3.0.12
I have enabled the logs on the Redmine Server to debug level, and thats the part of the output.
Access with Browser to the webdav:
ifier" = $1 LIMIT $2 [["identifier", "servidor-de-equipo"], ["LIMIT", 1]]
I, [2023-04-25T15:02:05.259104 #1] INFO -- : Completed in: 2247 ms | 200 [http://10.9.0.211:3000/dmsf/webdav/]
I, [2023-04-25T15:03:21.938548 #1] INFO -- : Started HEAD "/dmsf/webdav/" for 10.9.0.1 at 2023-04-25 15:03:21 +0000
I, [2023-04-25T15:03:21.939205 #1] INFO -- : Processing WebDAV request: /dmsf/webdav/ (for 10.9.0.1 at 2023-04-25 15:03:21 +0000) [HEAD]
D, [2023-04-25T15:03:21.942300 #1] DEBUG -- : (1.3ms) SELECT MAX("settings"."updated_on") FROM "settings"
D, [2023-04-25T15:03:21.950232 #1] DEBUG -- : AnonymousUser Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."type" = $1 AND "users"."lastname" = $2 LIMIT $3 [["type", "AnonymousUser"], ["lastname", "Anonymous"], ["LIMIT", 1]]
I, [2023-04-25T15:03:22.036323 #1] INFO -- : Completed in: 97 ms | 401 [http://10.9.0.211:3000/dmsf/webdav/]
I, [2023-04-25T15:03:24.032845 #1] INFO -- : Started HEAD "/dmsf/webdav/" for 10.9.0.1 at 2023-04-25 15:03:24 +0000
I, [2023-04-25T15:03:24.033089 #1] INFO -- : Processing WebDAV request: /dmsf/webdav/ (for 10.9.0.1 at 2023-04-25 15:03:24 +0000) [HEAD]
...
....
....
D, [2023-04-25T15:03:24.788729 #1] DEBUG -- : Project Load (3.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."parent_id" = $1 ORDER BY "projects"."lft" ASC [["parent_id", 16]]
Access with cyberduck
I, [2023-04-25T15:07:02.144922 #1] INFO -- : Completed in: 111 ms | 200 [http://10.9.0.211:3000/dmsf/webdav/]
Unsupported HTTP method used: PROPFIND
use https to connect windows with WebDAV. I used WinSCP to check my http WebDAV was working. there are other 3rd party software that will help you map http drive to windows. hope this was helpful to you
webdav works in browser and webdav clients like Winscp and other thirdparty software but it does not work with windows.