Bug 462242

Summary: Operation "Save" fails, when the file exists already if the Folder is a WebDAV-Folder
Product: [Applications] ghostwriter Reporter: peekay <kde.org-pk>
Component: generalAssignee: megan.conkle
Status: CONFIRMED ---    
Severity: critical CC: shikasta.net+kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 466339    
Attachments: Screenshot with error message

Description peekay 2022-11-25 14:35:26 UTC
Created attachment 154025 [details]
Screenshot with error message

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Map a WebDAV Folder: net use h: https://webdav.hidrive.strato.com/...
2. Start ghostwriter
3. Save File in Folder H:\
4. Try to save File again [ Ctrl ] + [ S ]
5. File can be saved with new name

OBSERVED RESULT
File / changes will not be saved; raise error message

EXPECTED RESULT
Saved File

SOFTWARE/OS VERSIONS
Windows: 10 Prof.

ADDITIONAL INFORMATION
File can be saved with new name.
ghostwriter version 2.1.6 - portable
Comment 1 megan.conkle 2022-12-12 17:23:37 UTC
(In reply to peekay from comment #0)
> Created attachment 154025 [details]
> Screenshot with error message
> 
> SUMMARY
> ***
> NOTE: If you are reporting a crash, please try to attach a backtrace with
> debug symbols.
> See
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports
> ***
> 
> 
> STEPS TO REPRODUCE
> 1.  Map a WebDAV Folder: net use h: https://webdav.hidrive.strato.com/...
> 2. Start ghostwriter
> 3. Save File in Folder H:\
> 4. Try to save File again [ Ctrl ] + [ S ]
> 5. File can be saved with new name
> 
> OBSERVED RESULT
> File / changes will not be saved; raise error message
> 
> EXPECTED RESULT
> Saved File
> 
> SOFTWARE/OS VERSIONS
> Windows: 10 Prof.
> 
> ADDITIONAL INFORMATION
> File can be saved with new name.
> ghostwriter version 2.1.6 - portable

Would you please provide the exact error message that is raised?

Thanks!
Comment 2 peekay 2022-12-13 19:59:41 UTC
You can find the exact error message in the attachment "Screenshot with error message", created at 2022-11-25 14:35 UTC.

Fehler beim Speichern von H:/test.md --> Error when saving H:/test.md

Das Schreiben wurde von der Anwendung abgebrochen --> The write was canceled by the application
Comment 3 Bug Janitor Service 2022-12-28 05:26:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Kym Eden 2023-02-23 14:29:09 UTC
I have just started using Ghostwriter 2.1.6 on Windows 10 and have found the same behaviour.
My error is:
Error saving N:/notes/test.md
Writing cancelled by application

On the WebDAV side (apache) I see the error:
This resource is locked and an "If:" header was not supplied to allow access to the resource.

The following bug report indicates that Word has the same problem, and it's something to do with the order or mechanism for saving (copy-on-write?) 
https://www.apachelounge.com/viewtopic.php?t=7707 

Definitely something to do with the file already existing.