Bug 2135341 - [abrt] secrets: get_custom_property(): entry.py:256:get_custom_property:AssertionError: otp is a reserved key
Summary: [abrt] secrets: get_custom_property(): entry.py:256:get_custom_property:Asser...
Keywords:
Status: CLOSED DUPLICATE of bug 2135943
Alias: None
Product: Fedora
Classification: Fedora
Component: secrets
Version: 36
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Artem
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:cd0c3795da3ce32801c8fed9655...
: 2135362 2137076 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-17 10:31 UTC by Dmitry Burstein
Modified: 2022-10-23 06:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-10-19 17:36:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.61 KB, text/plain)
2022-10-17 10:31 UTC, Dmitry Burstein
no flags Details
File: cpuinfo (2.57 KB, text/plain)
2022-10-17 10:31 UTC, Dmitry Burstein
no flags Details
File: environ (1.41 KB, text/plain)
2022-10-17 10:31 UTC, Dmitry Burstein
no flags Details
File: mountinfo (3.41 KB, text/plain)
2022-10-17 10:31 UTC, Dmitry Burstein
no flags Details
File: namespaces (172 bytes, text/plain)
2022-10-17 10:31 UTC, Dmitry Burstein
no flags Details
File: open_fds (2.23 KB, text/plain)
2022-10-17 10:31 UTC, Dmitry Burstein
no flags Details

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. ***


Note You need to log in before you can comment on or make changes to this bug.