Bug 145769 - "File already exists" warning when trying to save new file to WebDAV share
Summary: "File already exists" warning when trying to save new file to WebDAV share
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Michael Stahl (allotropia)
URL:
Whiteboard: target:7.3.0
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2021-11-19 07:52 UTC by Gabor Kelemen (allotropia)
Modified: 2021-11-23 11:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the warning dialog (83.09 KB, image/png)
2021-11-19 07:52 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2021-11-19 07:52:05 UTC
Created attachment 176355 [details]
Screenshot of the warning dialog

When I try to save a new file to a WebDAV-mounted NextCloud share with the Remote Files dialog I get a warning "This file already exists, overwrite?".

1. Have a WebDAV share attached in the Remote Files dialog, I used NextCloud for this
2. Start a new file in Writer, then try to save to the WebDAV share with a new name.

The Remote Files dialog says the file already exists, despite you just typed a unique name.

Bibisected to:

https://git.libreoffice.org/core/+/67fa088be7db1df661188ef4bab490a76fb06b85%5E%21/#F0

author	Caolán McNamara <caolanm@redhat.com>	Mon Oct 18 14:18:03 2021 +0100
committer	Caolán McNamara <caolanm@redhat.com>	Mon Oct 18 17:21:21 2021 +0200

tdf#145169 for IsDocument/IsFolder I think we want no interaction

Adding CC to: Caolán McNamara
Comment 1 Commit Notification 2021-11-23 11:08:15 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e4ff5b1fbabb538356053383a3491e3e986d1164

tdf#145769 fpicker: RemoteFilesDialog: don't use FStatHelper

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2021-11-23 11:08:25 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/fa54bca695f6d17e871e43db75f06a63aec7b739

tdf#145769 ucb: webdav-curl: stop returning IsDocument=true if it doesn't exist

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Michael Stahl (allotropia) 2021-11-23 11:08:56 UTC
fixed on master