Bug 419120 - Can not save as anonymous file
Summary: Can not save as anonymous file
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.0.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-22 19:26 UTC by antoine
Modified: 2020-07-13 17:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
File save as dialog w/o option to append file extension based on filter (211.54 KB, image/png)
2020-03-24 06:53 UTC, Thomas Baumgart
Details
File save as dialog w/ option to append file extension based on filter (29.92 KB, image/png)
2020-03-24 06:54 UTC, Thomas Baumgart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antoine 2020-03-22 19:26:12 UTC
SUMMARY

Can not create an anonymous file

STEPS TO REPRODUCE
1. Open a kmm file
2. Save as > Set filter to "anonymous file" > give a name
3. A new file is created (.kmy instead of .anon.xml)
4. Open the new file, it is not anonymous

OBSERVED RESULT
Save as anonymous file does not work

EXPECTED RESULT
It should be possible to create an anonymous file

SOFTWARE/OS VERSIONS
Ubuntu 18.04
KMM 5.0.1, I also tried with KMyMoney-5.0.8-029de47-x86_64.AppImage
Comment 1 Thomas Baumgart 2020-03-23 17:27:24 UTC
Make sure to add .anon.xml to the filename when you save it. The extension is not automatically appended.
Comment 2 antoine 2020-03-23 17:43:27 UTC
Thank you for your help

Once I had .anon.xml to the filename, it works correctly

Setting the filter to "anonymous file" is not enough.
Maybe this could be an improvement in the future.
Comment 3 Jack 2020-03-23 20:24:14 UTC
That's very strange.  With my current version recently compiled from git 5.0 head, I do not need to explicitly add the ".anon.xml" to the file name for it to save a correctly named anon file.  I don't recall, but is this something that has been changed since 5.0.1?
Comment 4 Thomas Baumgart 2020-03-24 06:51:55 UTC
Git commit 915fa7d8c4d81b0a8b4d97e5a0c69c19dd19c708 by Thomas Baumgart.
Committed on 23/03/2020 at 19:58.
Pushed by tbaumgart into branch '5.0'.

Force setting the file type to the one selected in the filter

M  +1    -0    kmymoney/plugins/xml/xmlstorage.cpp

https://commits.kde.org/kmymoney/915fa7d8c4d81b0a8b4d97e5a0c69c19dd19c708
Comment 5 Thomas Baumgart 2020-03-24 06:53:47 UTC
Created attachment 126978 [details]
File save as dialog w/o option to append file extension based on filter
Comment 6 Thomas Baumgart 2020-03-24 06:54:54 UTC
Created attachment 126979 [details]
File save as dialog w/ option to append file extension based on filter

Apparently there is a difference between the desktop environment used.
Comment 7 antoine 2020-03-24 08:15:12 UTC
My desktop environment is xfce 4.12
Comment 8 antoine 2020-07-13 17:08:22 UTC
It seems to be working now. No need to add .anon.xml to the filename
KMyMoney-5.1.0-74a8f0d-x86_64.AppImage
Xubuntu 20.04