Bug 2135341

Summary: [abrt] secrets: get_custom_property(): entry.py:256:get_custom_property:AssertionError: otp is a reserved key
Product: [Fedora] Fedora Reporter: Dmitry Burstein <dmitryburstein>
Component: secretsAssignee: Artem <ego.cordatus>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: bugzilla, ego.cordatus, mcl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/339030d882dcc4139332d6e89cc0027d06b434c6
Whiteboard: abrt_hash:cd0c3795da3ce32801c8fed965567e919fd0d3d6;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-19 17:36:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Dmitry Burstein 2022-10-17 10:31:00 UTC
Description of problem:
It crashed right after entering the password to unlock the db

Version-Release number of selected component:
secrets-6.5-3.fc36

Additional info:
reporter:       libreport-2.17.4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.gnome.World.Secrets-52505.scope
cmdline:        /usr/bin/python3 /usr/bin/secrets
crash_function: get_custom_property
exception_type: AssertionError
executable:     /usr/bin/secrets
interpreter:    python3-3.10.7-1.fc36.x86_64
kernel:         5.19.15-201.fc36.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
entry.py:256:get_custom_property:AssertionError: otp is a reserved key

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/gsecrets/unlock_database.py", line 270, in _unlock_callback
    database = UnlockedDatabase(self.window, database_manager)
  File "/usr/lib/python3.10/site-packages/gsecrets/unlocked_database.py", line 99, in __init__
    self.show_browser_page(self.current_element)
  File "/usr/lib/python3.10/site-packages/gsecrets/unlocked_database.py", line 178, in show_browser_page
    new_page = UnlockedDatabasePage(self, group)
  File "/usr/lib/python3.10/site-packages/gsecrets/widgets/unlocked_database_page.py", line 60, in __init__
    self.populate_list_model()
  File "/usr/lib/python3.10/site-packages/gsecrets/widgets/unlocked_database_page.py", line 180, in populate_list_model
    entries = self.group.entries
  File "/usr/lib/python3.10/site-packages/gsecrets/safe_element.py", line 288, in entries
    return [SafeEntry(self._db_manager, entry) for entry in self._group.entries]
  File "/usr/lib/python3.10/site-packages/gsecrets/safe_element.py", line 288, in <listcomp>
    return [SafeEntry(self._db_manager, entry) for entry in self._group.entries]
  File "/usr/lib/python3.10/site-packages/gsecrets/safe_element.py", line 330, in __init__
    otp_uri = entry.get_custom_property("otp")
  File "/usr/lib/python3.10/site-packages/pykeepass/entry.py", line 256, in get_custom_property
    assert key not in reserved_keys, '{} is a reserved key'.format(key)
AssertionError: otp is a reserved key

Local variables in innermost frame:
self: Entry: "AARbids - AARauctions (dimab)"
key: 'otp'

Comment 1 Dmitry Burstein 2022-10-17 10:31:02 UTC
Created attachment 1918520 [details]
File: backtrace

Comment 2 Dmitry Burstein 2022-10-17 10:31:03 UTC
Created attachment 1918521 [details]
File: cpuinfo

Comment 3 Dmitry Burstein 2022-10-17 10:31:04 UTC
Created attachment 1918522 [details]
File: environ

Comment 4 Dmitry Burstein 2022-10-17 10:31:05 UTC
Created attachment 1918523 [details]
File: mountinfo

Comment 5 Dmitry Burstein 2022-10-17 10:31:07 UTC
Created attachment 1918524 [details]
File: namespaces

Comment 6 Dmitry Burstein 2022-10-17 10:31:08 UTC
Created attachment 1918525 [details]
File: open_fds

Comment 7 Steve 2022-10-17 11:31:25 UTC
*** Bug 2135362 has been marked as a duplicate of this bug. ***

Comment 8 Steve 2022-10-17 14:37:07 UTC
This bug is caused by python3-pykeepass-4.0.3-1.fc36.noarch. Downgrading to python3-pykeepass-4.0.1-4.fc36.noarch solves the problem.

Comment 9 Dmitry Burstein 2022-10-17 20:02:11 UTC
Indeed it does. Thank you for the quick workaround!

Comment 10 Steve 2022-10-19 11:21:31 UTC
This bug is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2135943

Comment 11 Artem 2022-10-19 17:36:10 UTC

*** This bug has been marked as a duplicate of bug 2135943 ***

Comment 12 Mark Chandler 2022-10-23 06:04:54 UTC
*** Bug 2137076 has been marked as a duplicate of this bug. ***