Bug 485996 - Can't save kmy file (windows 10 )
Summary: Can't save kmy file (windows 10 )
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: kmymoney
Classification: Applications
Component: file (show other bugs)
Version: 5.1.3
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-23 09:34 UTC by Logistix
Modified: 2024-12-03 03:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Error window (6.77 KB, image/png)
2024-04-23 09:34 UTC, Logistix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Logistix 2024-04-23 09:34:34 UTC
Created attachment 168828 [details]
Error window

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
I approved some scheduled operations for today in KMyMoney and try to save it just pressing the button SAVE and got error

STEPS TO REPRODUCE
1.  Make approve for some scheduled operations in KMyMoney
2.  Press SAVE button
3.  Got error

OBSERVED RESULT
Error screen with message:
"Unable to open file 'C:/Users/Ussser/Documents/001.kmy' for writing. /home/abuild/rpmbuild/BUILD/kmymoney-5.1.3/kmymoney/plugins/xml/xmlstorage.cpp:510"

EXPECTED RESULT
Expect that file will saved

SOFTWARE/OS VERSIONS
Windows:  10 22H2

ADDITIONAL INFORMATION
KMyMoney 5.1.3
KDE Frameworks 5.76.0,
Qt 5.12.12 (собрана с версией 5.12.12),
Оконная система windows.
Comment 1 Ralf Habacker 2024-04-23 20:24:34 UTC
(In reply to Logistix from comment #0)
> Created attachment 168828 [details]
> Error window
> 
> OBSERVED RESULT
> Error screen with message:
> "Unable to open file 'C:/Users/Ussser/Documents/001.kmy' for writing.

Please open a comand shell in the subdirectory 'bin' of the installed product and run kmymoney from this shell. It will print more intrtnal information. Further information related to access rights and other possible issues can be find out by using procmon from sysinternals.
Comment 2 Thomas Baumgart 2024-11-03 15:18:53 UTC
Updated status
Comment 3 Bug Janitor Service 2024-11-18 03:46:25 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Ralf Habacker 2024-11-18 07:58:15 UTC
Within kmymoney there is a possible improvement for such situations - In case of errors, the QFile::setError() method is called (https://github.com/qt/qtbase/blob/3f34ee3196930d0bda167fe783ea7b2b62a1fe4d/src/corelib/io/qfsfileengine_win.cpp#L102), which contains the underlying Windows error message with qt_error_string() and which is available with the call of QFile::errorString() and can be printed too.
Comment 5 Ralf Habacker 2024-11-18 09:00:50 UTC
Git commit 1c6fef51e9b5a1f511b320dfd7a58ccc7f0cc598 by Ralf Habacker.
Committed on 18/11/2024 at 09:00.
Pushed by habacker into branch 'master'.

Output more details for errors relating to opening files for writing

To avoid changing translations, the untranslated details are appended
programmatically.

M  +1    -1    kmymoney/plugins/csv/export/csvwriter.cpp
M  +1    -1    kmymoney/plugins/qif/export/mymoneyqifwriter.cpp
M  +1    -1    kmymoney/plugins/xml/xmlstorage.cpp

https://invent.kde.org/office/kmymoney/-/commit/1c6fef51e9b5a1f511b320dfd7a58ccc7f0cc598
Comment 6 Bug Janitor Service 2024-12-03 03:46:23 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!