Bug 50700 - [Kelvin API] allow creation of username from template
Summary: [Kelvin API] allow creation of username from template
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
Version: UCS@school 4.4
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Daniel Tröder
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 50637 50678
  Show dependency treegraph
 
Reported: 2020-01-09 12:54 CET by Daniel Tröder
Modified: 2021-02-23 09:30 CET (History)
1 user (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?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2020-01-09 12:54:56 CET
The BB-API, using the UCS@school ImportUser class, allows to omit the username in POST requests, so that the username will be created from a configured template.
Comment 1 Daniel Tröder univentionstaff 2020-01-09 16:40:20 CET
This change allows to POST user data missing the "name" attribute, if the configuration contains: 'scheme' -> {'username': {...}}

[feature/kelvin] 1e870663d Bug #50700: allow creation of username from template

Tests and improved test setup:

[feature/kelvin] 83ba55835 Bug #50700: don't restart API server, when config does not need to be changed
[feature/kelvin] 4e2302194 Bug #50700: improve user resource tests
[feature/kelvin] 83d0a48fc Bug #50700: improve test setup
Comment 2 Tobias Wenzel univentionstaff 2020-01-16 09:52:39 CET
Running tests in kelvin-container and on host successfully. Sending POST user data without the username was possible, with the latter being composed in the predefined way.
Comment 3 Daniel Tröder univentionstaff 2021-02-23 09:30:00 CET
A Kelvin API app with the changes in this bug has been published.