Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create User response code 500 (internal server error) #9

Open
petomka opened this issue Feb 6, 2023 · 0 comments
Open

Create User response code 500 (internal server error) #9

petomka opened this issue Feb 6, 2023 · 0 comments

Comments

@petomka
Copy link

petomka commented Feb 6, 2023

Related to #8.

A user name longer than 16 characters is by default a schema violation of the database, but the length of the username of the request body is not checked. The server returns a 500 (internal server error), and a Stack-trace is printed to the console.

Expected behavior would be error 400 (bad request).

Is it possible to change the maximum length of a username in a configuration without manually changing the definition of the database relation?

@petomka petomka changed the title Create User response code 500 (bad request) Create User response code 500 (internal server error) Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant