Hi Rhonda,I am happy that you found and fixed your problem. I suspect, however, that the code that you changed was not actually kpcli code but, instead, File::KeePass code -- the module that kpcli uses to read and write keepass files. https://metacpan.org/pod/File::KeePassCan you confirm that I am correct about that?Thanks,
--
LesterOn Tue, Mar 8, 2022 at 10:33 AM Rhonda D'Vine <rho...@deb.at> wrote:Hi,
$buffer =~ s/\e//g;
.. this was all that was needed to fix my mess. Though, kpcli for
obvious reasons shouldn't be able to write broken data it can't read
again, so I keep seeing this as a severe bug in the code which can lead
to data loss for people who aren't familiar enough with perl or who
don't have friends who support them to dig down the issue.
The above line was a quick fix for my case, I'm uncertain if it might
appear to others in other ways, but this clearly goes against the
principle of robustness.
Upstream is at 3.6 in the meantime, I'm willing to update it now that I
digged a bit further into it. If I don't hear back in the next few days
I propose an NMU for it, as thanks for having it around in the first
place. :)
Enjoy,
Rhonda [happy again]
* Rhonda D'Vine <rho...@deb.at> [2022-03-08 16:19:46 CET]:
> Hi,
>
> I managed to find the culprit With A Little Help From My Friends[tm]. I
> used Data::Dumper before the content got passed to XML::Parser, and it
> turned out that there is an Escape character (0x1b, ^[) in a comment
> field.
>
> kpcli seems to have accepted this when the comment was pasted and
> stored it happily, but was unable to re-read the file written with that
> in it.
>
> I'm currently fiddling around to delete that escape character on load
> time and have kpcli start, allowing me to save it without the escape
> character, hopefully allowing to re-read it afterwards.
>
> I'll keep you posted,
> Rhonda
--
Fühlst du dich mutlos, fass endlich Mut, los |
Fühlst du dich hilflos, geh raus und hilf, los | Wir sind Helden
Fühlst du dich machtlos, geh raus und mach, los | 23.55: Alles auf Anfang
Fühlst du dich haltlos, such Halt und lass los |
kpcli 3.1-3.1 is marked for autoremoval from testing on 2022-04-06
It is affected by these RC bugs:
1006917: kpcli: "not well-formed (invalid token)" when opening a file
https://bugs.debian.org/1006917
This mail is generated by:
https://salsa.debian.org/release-team/release-tools/-/blob/master/mailer/mail_autoremovals.pl
Autoremoval data is generated by:
https://salsa.debian.org/qa/udd/-/blob/master/udd/testing_autoremovals_gatherer.pl
clone 1006917 -1 reassign -1 libfile-keepass-perl retitle -1 libfile-keepass-perl: crashes "not well-formed (invalid token)" when finding escape characters severity -1 important thanks
Hey,
* Arno Töll <ar...@debian.org> [2022-03-17 14:07:02 CET]:Hi Rhonda, Am 08.03.22 um 16:31 schrieb Rhonda D'Vine:Upstream is at 3.6 in the meantime, I'm willing to update it now that I digged a bit further into it. If I don't hear back in the next few days I propose an NMU for it, as thanks for having it around in the first place. :)please feel free to do, and go ahead. Feel free to add yourself as a maintainer/uploader if you wish. ;-)Do you have a copy of the git repository you used still around? It never seems to have been moved to salsa, and I for obvious reasons would work based on what's there already. :)
Alioth's archive of the repository is at
https://alioth-archive.debian.org/git/collab-maint/kpcli.git.tar.xz.
That allows for bare import, including git history into salsa.
Unfortunately I don't have a lot of time for Debian these days,
sorry about that.
The issue has been properly reassigned in the meantime. Thanks for that Lester.It actually hasn't been reassigned but closed I noticed, and I'm also not so convinced to call it only a minor issue, because as I explained, I managed to fix it because I know my way around the code, but that's not something to expect from regular users. I will be looking into filing this with the upstream tracker though.
How about duplicating the issue and reassigning one to
libfile-keepass-perl? I'm not sure about the priority, but
something below RC might do for that. I did so as per this mail.
-- Arno Töll