Bug #24036
closedIf REST url ends with .com, then the .com is removed from path segments
Description
Note: observed with user management plugin, but it is not linked to it.
while trying to set authorisation for an oidc user login@domain.com, the error message is
2024-01-16 13:31:13-0800 ERROR com.normation.rudder.rest.RestUtils - "Could not update user 'login@domain'' <- 'login@domain' does not exists"
Reproducing:
- enable user management plugin
- create a new user with it, with name: login@domain.com
- select the newly created user and assign a role to it => error.
Files
Updated by François ARMAND 11 months ago
- Project changed from Authentication backends to User management
- Target version changed from 8.0 to 7.3
I think that the ticket belongs to user management, it's the plugin responsible for user update with rest API.
Updated by François ARMAND 11 months ago
- Status changed from New to In progress
- Assignee set to François ARMAND
Updated by François ARMAND 11 months ago
- File clipboard-202401181715-ipsts.png clipboard-202401181715-ipsts.png added
- Project changed from User management to Rudder
- Subject changed from username in error message is truncated to If REST url ends with .com, then the .com is removed from path segments
- Target version deleted (
7.3)
So, the problem is that the REST url used ends with .com
and that lift parse that as a site extension, and so it's removed from the path, and so the corresponding REST variable is not correct.
Updated by François ARMAND 11 months ago
- Category set to API
- Target version set to 7.3.11
Updated by François ARMAND 11 months ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/5331
Updated by Anonymous 11 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|6995747fdd5dee0684273f3cc52e50946e2f5b7a.
Updated by François ARMAND 11 months ago
- File clipboard-202401301515-qzush.png clipboard-202401301515-qzush.png added
- Fix check changed from To do to Checked
Works now
Updated by Vincent MEMBRÉ 11 months ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.3.11 which was released today.