tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

Usernames with periods in them get truncated when using the users/user endpoint #2325

Closed dhruvvora94 closed 4 years ago

dhruvvora94 commented 4 years ago

All our applications use the "users/user" endpoint to get details about the user who is logging in.

This endpoint truncates the username if it has a period in it.

This is the default behavior for spring and more details can be found here - https://www.baeldung.com/spring-mvc-pathvariable-dot

dhruvvora94 commented 4 years ago

Closed with OC commit 26487

Path variable was modified to include a regex mapping which prevents truncation after the period. This is the first solution mentioned in the article mentioned in the issue.