Bug 472798 - Save file failure
Summary: Save file failure
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: file (show other bugs)
Version: 5.1.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-30 11:53 UTC by nickyo
Modified: 2023-08-20 06:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Error message and file properties (47.86 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-07-30 11:53 UTC, nickyo
Details
Instructions to map a windows network location to enable repeat saving of .kmy files (113.76 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-08-20 06:00 UTC, nickyo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nickyo 2023-07-30 11:53:49 UTC
Created attachment 160624 [details]
Error message and file properties

SUMMARY
Trying to save an opened .kmy fails, requiring the user to Save as and give a new file name

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. Open .kmy file using KMyMoney application
2. Enter any transaction as normal
3. Click Save:  Attached error message is delivered.  File is not saved
4. Click OK, application does not crash and remains available to continue to add new transactions
5. User can 'Save As' with a new file name and file will save successfully.  Application does not crash and remains available to add further transactions
6. If the user continues to add transactions to the file with the new name, pressing Save will deliver the error message again.
7. A new 'Save As' can be done to save the file.

OBSERVED RESULT
.kmy file does not save, requiring a Save as and new file name instead

EXPECTED RESULT
.kmy file should save back under the the same file name that was opened without having to Save As

SOFTWARE/OS VERSIONS
Windows: 11 Pro Version 10.0.2261 Build 22621
Synology DS416: DiskStation Manager Version 7.1.1-42962
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: Version 5.108.0
Qt Version: Version 5.15.10 (built against 5.15.10)

ADDITIONAL INFORMATION
.kmy file is held on a Synology DS416 file server
If the .kmy file is saved to a local PC drive, it can be opened and saved as normal without resorting to Save As
Using an older Win10 PC, I've been able to save successfully to the File Server location
A screen print of the .kmy windows file properties is in the attached document
The DS416 will accept Saves of any other updated document, without resorting to Save As
Comment 1 Jack 2023-08-08 18:46:31 UTC
I''m pretty sure we have seen this issue before, specifically when saving to a file server as opposed to a local file (which you confirm works.)  Since you can save when running from a Win10 PC but not Win 11, I suspect some difference in how the server is mounted.  Can you see if you can identify any differences between how the server is mounted from Win10 and Win11?  [When you reply, please change the status back to Reported.]
Comment 2 nickyo 2023-08-17 07:04:11 UTC
Mapped the drive via 'My PC' rather than through a distinct network and now it works perfectly.  Many thanks for your help
Comment 3 Jack 2023-08-17 17:01:27 UTC
Adjusting state - We use Fixed when the code was updated because of a  bug.   If you can provide a description of what you changed, I'll be glad to incorporated into the next major update of the Handbook.  (I'm not a Windows user, so I'm likely to get the terminology wrong if I write it myself.)  Thanks.
Comment 4 nickyo 2023-08-20 06:00:26 UTC
Created attachment 161065 [details]
Instructions to map a windows network location to enable repeat saving of .kmy files

As requested by Jack, the attached doc shows what I did to set up the network location in a way that enabled me to save .kmy files
Comment 5 nickyo 2023-08-20 06:02:22 UTC
Hi Jack, I have just attached the method I used to fix the bug for me.  Hopefully it's OK but if you need me to edit or update, happy to do so