Bug 55551 - UDM REST API doesn't detect UDM modules with numbers in its name
UDM REST API doesn't detect UDM modules with numbers in its name
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM - REST API
UCS 5.0
Other Linux
: P3 normal (vote)
: UCS 5.0-3-errata
Assigned To: Florian Best
Iván.Delgado
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-01-10 15:06 CET by Florian Best
Modified: 2023-04-19 12:59 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Feature Request
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?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: INU-3938
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 Florian Best univentionstaff 2023-01-10 15:06:40 CET
The UDM REST API ignores modules which have a number in it's name.

→ Numbers should be allowed.
Comment 1 Lukas Zumvorde univentionstaff 2023-01-10 15:11:50 CET
The customer has multiple customer specific UDM modules. Those modules have a number in their name. Because of this the modules are not seen by the UDM REST API. 
I see no technical reason why numbers in the names of modules should not be allowed. Therefore we should make sure that those module names are allowed and can be used with the UDM REST API.
Comment 5 Florian Best univentionstaff 2023-04-19 11:24:42 CEST
univention-directory-manager-rest.yaml
1a614dad072f | chore(univention-directory-manager-rest): update advisory
2d9542a0668b | fix(udm-rest): fix accessing UDM modules with numbers in its name

univention-directory-manager-rest (10.0.6-2)
2d9542a0668b | fix(udm-rest): fix accessing UDM modules with numbers in its name
Comment 6 Iván.Delgado univentionstaff 2023-04-19 12:41:13 CEST
Verified:
 * test with the following code:
    $ cd /usr/lib/python3/dist-packages/univention/admin/handlers/
    $ mkdir in8
    $ cp nagios/service.py in8/SerVice.py ## go into it and replace module = 'in8/SerVice'
    $ systemctl restart univention-directory-manager-rest.service
    $ __udm in8/SerVice list
 * Advisory
 * ucs-test-udm-rest