Roundup Tracker - Issues

Message8585

Author rouilj
Recipients rouilj
Date 2026-11-15.23:51:50
Message-id <1794786711.24.0.00840079462213.issue2551438@roundup-tracker.org>
In-reply-to
The invalid change to password when submitting placeholder text over REST is
solved in changeset:   8877:9f3f79cb732f.

However, I claim using encrypted and plain arguments should require a value
of the proper type.

It looks like encrypted= is used in hyperdb.py::Password.from_raw().
I am not sure how from_raw() would get invoked with a packed encrypted value.

Returning password placeholders to the front end came after the
from_raw and unpack code was written from what I can tell. So maybe
the fallback to encrypting something that fails unpacking isn't needed?

The signature password.py::Password.__init__(self, plaintext=None, ....) means
Password("Foo") sets plain password to Foo. It looks like all calls that use
encrypted set it explicitly as a keyword argument.

I have attached a patch that modifies from_raw() and password.py:unpack()
to raise an exception up the stack that gets caught in the from_raw caller
and omits the parameter. It works but seem icky.

Also  thought by pushing it down to the hyperdb level, more code paths
(like the cgi action to update a user) would go though this path. But it
appears that hyperdb::Password.from_raw is only called from the REST interface
when updating a Password.
History
Date User Action Args
2026-11-15 23:51:51rouiljsetmessageid: <1794786711.24.0.00840079462213.issue2551438@roundup-tracker.org>
2026-11-15 23:51:51rouiljsetrecipients: + rouilj
2026-11-15 23:51:51rouiljlinkissue2551438 messages
2026-11-15 23:51:50rouiljcreate