This is closely related to the subject discussed in #123 and the corresponding PR #204 and appeared in downstream jampe/kp2bw#10.
The issue in entry.py are threefold:
|
field = self._xpath('String/Key[text()="{}"]/../Value'.format(key), first=True) |
|
field = self._xpath('String/Key[text()="{}"]/..'.format(key), first=True) |
|
prop = self._xpath('String/Key[text()="{}"]/..'.format(key), first=True) |
which all boil down do the fact, that using the latter as an example, the given key is not properly escaped:
prop = self._xpath('String/Key[text()="{}"]/..'.format(key), first=True)
Now @Evidlo already mentioned the possibility of using a simple escape method for this purpose; however, I assume there will be more of these xpath related issues which makes me wondering whether you guys think that it's time that #204 gets merged? As far as I see it doesn't fix the issues outlined here, but it lays the required foundation to do so
Thanks
This is closely related to the subject discussed in #123 and the corresponding PR #204 and appeared in downstream jampe/kp2bw#10.
The issue in
entry.pyare threefold:pykeepass/pykeepass/entry.py
Line 80 in 9f517fe
pykeepass/pykeepass/entry.py
Line 85 in 9f517fe
pykeepass/pykeepass/entry.py
Line 248 in 9f517fe
which all boil down do the fact, that using the latter as an example, the given key is not properly escaped:
Now @Evidlo already mentioned the possibility of using a simple escape method for this purpose; however, I assume there will be more of these xpath related issues which makes me wondering whether you guys think that it's time that #204 gets merged? As far as I see it doesn't fix the issues outlined here, but it lays the required foundation to do so
Thanks