Roundup Tracker - Issues

Issue 2551437

classification
Clean up REST API handling of reserved or Password hyperdb props.
Type: behavior Severity: normal
Components: API Versions:
process
Status: fixed fixed
:
: rouilj : rouilj
Priority: :

Created on 2026-11-10 19:57 by rouilj, last changed 2026-11-15 23:43 by rouilj.

Messages
msg8579 Author: [hidden] (rouilj) Date: 2026-11-10 19:57
One of the rest concepts is to do a get with @verbose=0&@protected=true. The attributes
dict returned should be able to be modified and returned.

This round trip is not currently done in testing.

However currently protected items in the list are ignored. This isn't quite right.

The rule should be:

  if a protected property matches the current value in the database, ignore it.

  if the property does not match the entry in the db, reject it with a usage error
    and a message like "creator is a reserved property and can not be set".

This will fix the following issue:

  kanban drag and drop does not error when the columns are a reserved prop (e.g. creator).
  the drop sends the put for creator to the back and and the back end filters the reserved
  prop out. It should error. (see issue2551363)
msg8582 Author: [hidden] (rouilj) Date: 2026-11-15 15:54
Also Password properties are not returned in the API. A placeholder is returned.
When PUT'ing a Password property with the placeholder, the password is set to the placeholder.

The desired result is that the password is unchanged when the placeholder is PUT.
This indicates that the password is unchanged in the PUT request.
msg8583 Author: [hidden] (rouilj) Date: 2026-11-15 21:33
Fixed in changeset:   8877:9f3f79cb732f

This also handles case where password property is an obscured placeholder
and prevents committing the placeholder as user's password. Issue2551438
msg8584 Author: [hidden] (rouilj) Date: 2026-11-15 23:43
Note this is a full fix for the kanban issue.

It is an interim fix for the password issue: Issue2551438.
See that issue for further info.
History
Date User Action Args
2026-11-15 23:43:17rouiljsetresolution: fixed
messages: + msg8584
2026-11-15 21:33:18rouiljsetstatus: open -> fixed
messages: + msg8583
2026-11-15 15:54:03rouiljsetstatus: new -> open
assignee: rouilj
messages: + msg8582
title: Clean up API handling of reserved hyperdb props. -> Clean up REST API handling of reserved or Password hyperdb props.
2026-11-10 20:24:29rouiljsetcomponents: + API, - Database, Web interface
2026-11-10 19:57:38rouiljcreate