sigoden / dufs

A file server that supports static serving, uploading, searching, accessing control, webdav...
Other
5.45k stars 259 forks source link

issue when adds and modifies files in Windows WebDAV #380

Closed hw2411 closed 2 months ago

hw2411 commented 2 months ago

Problem

After adding a network drive using WebDAV in Windows, you cannot add files and modify files

Configuration

Start command:dufs.exe -A -a test:test123@/:rw --auth-method basic (removing auth-method is also the same error)

You can browse and open deleted files normally, but you cannot copy files to a network drive or modify files on a network drive.

However, using the dufs.exe -A network drive file operation is fine.

Log

Screenshot of console when copying files to network drive error: 1715075197752

Environment:

sigoden commented 2 months ago

Please use the latest version of dufs (--auth-method have already been abandoned) Please mark the logs you think are releated to bug. (The logs look fine. 401 is for authentication) @hw2411

hw2411 commented 2 months ago

Please use the latest version of dufs (--auth-method have already been abandoned) Please mark the logs you think are releated to bug. (The logs look fine. 401 is for authentication) @hw2411

@sigoden thanks a lot, I'm already using the latest version of dufs and not using the auth-method parameter, but the problem persists. In the following two scenarios, I use DUFS's WebDAV to mount a network drive and copy files on the Windows client.The first image below shows the output of the console when I boot directly with dufs -A and there is only one file copy action in the Windows folder. I don't know why there were two puts, but both of them worked, and the file was copied successfully. The second image shows the output of the console when I started the service with dufs -A -a with authentication and there was only one file copy action in the Windows folder. There are also two PUT operations, the first PUT operation succeeds, and the second PUT operation fails (there is no 201 status code below the 401 status code).This is followed by a successful delete operation (possibly a rollback of a Windows file operation).

dufs -A log(can copy file):

image

dufs -A -a log(can not copy file): image

hw2411 commented 2 months ago

@sigoden thx a lot