Bug 57071 - No visible feedback after error in backend (blocklist: value is blocked)
No visible feedback after error in backend (blocklist: value is blocked)
Status: NEW
Product: UCS
Classification: Unclassified
Component: Self Service
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-02-20 09:24 CET by Felix Botner
Modified: 2024-02-20 14:12 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2024-02-20 09:24:02 CET
UCS 5.0 primary with self-service and blocklists:

DN: cn=mpa,cn=blocklists,cn=internal
  blockingProperties: users/user mailPrimaryAddress
  blockingProperties: users/user phone
  name: mpa
  retentionTime: None

Added a blocklists/entry for value "112".

If i set this as value for "Telephone number" on via the self service selfservice/profile, the frontend loads for a second and than i'm back again on the profile page.

In the backend i got the correct error message management-console-module-passwordreset.log:

20.02.24 09:21:45.338  MODULE      ( ERROR   ) : set_user_attributes(): modifying the user failed: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/passwordreset/__init__.py", line 572, in set_user_attributes
    user.modify()
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/users/user.py", line 1306, in modify
    return super(object, self).modify(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 679, in modify
    dn = self._modify(modify_childs, ignore_license=ignore_license, response=response, serverctrls=serverctrls)
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 1377, in _modify
    univention.admin.blocklist.check_blocklistentry(self)
  File "/usr/lib/python3/dist-packages/univention/admin/blocklist.py", line 143, in check_blocklistentry
    raise univention.admin.uexceptions.valueError(_('The value %r is blocked for the UDM property %r.') % (value, attr), property=attr)
univention.admin.uexceptions.valueError: The value '112' is blocked for the UDM property 'phone'.

20.02.24 09:21:45.338  MODULE      ( PROCESS ) : The attributes could not be saved: The value '112' is blocked for the UDM property 'phone'.


But this is not visible in the frontend.