Bug 325784 - DATA LOSS: Pasting formatted text in a "Passwords" folder text box and saving loses all data stored below the pasted text.
Summary: DATA LOSS: Pasting formatted text in a "Passwords" folder text box and saving...
Status: RESOLVED FIXED
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (show other bugs)
Version: 1.10
Platform: unspecified Linux
: NOR critical
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-08 16:02 UTC by Gunter Ohrner
Modified: 2018-11-10 21:12 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunter Ohrner 2013-10-08 16:02:32 UTC
It is possible to paste formatted text into a wallet's "password" box. This may be done by accident if eg. Copy/Pasting data from some website, and will cause previously stored data to be lost:

If there's already text behind the location where this formatted text is pasted, all this data will be lost after saving and re-opening the "password" box, the entered data will now end with newly pasted word or phrase.

Reproducible: Always

Steps to Reproduce:
1. Open the walletmanager and add a new entry below the "Passwords" node. (Or reuse an existing one, but beware of data loss!)
2. Enter some text manually, multiple lines, and save the data.
3. Select something else in wallet manager, re-open the "Passwords" box and select "show contents" (or whatever this button is called in English) to make sure the data actually has been saved. (You may need to enter the text multiple times as it's not always saved, see Bug #325165)
4. Copy some formatted text from somewhere, a few letters are sufficient. I tried copying from LibreOffice (some large, bold letters) or Chromium (random characters from a headline on some web page), both of which triggers the bug.
5. Paste the copied text somewhere in the middle of the text in the "Passwords" textbox. I always pasted it as a new line somewhere in the middle. The formatted text will be added to the text field.
6. Save, click somewhere else to change the view in walletmanager and re-select your passwords-entry. Click the "show contents" button again.
Actual Results:  
Either the newly entered data has not been saved (this is Bug #325165), if this is the case, please repeat steps 5 and 6.

If the data has been saved, the displayed text will end with the previously formatted text, now displayed in pure-text style as everything else.

All data which previously had been below the pasted text now has been deleted.

Expected Results:  
No data should be lost! After reopening the passwords box, I'd expect the pasted text to be where I pasted it, no matter if still formatted or not, but I'd also expect all other data to still be present!
Comment 1 Andrew Crouthamel 2018-11-10 03:24:20 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Gunter Ohrner 2018-11-10 21:12:34 UTC
Apparently has been fixed in the meantime, it does not seem to be possible to paste formatting any more.

Formatted text is converted to plain text when pasted.