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

Adding policy fails incorrectly when appId string length > 50 #569

Open
KevinJCross opened this issue Apr 13, 2022 · 1 comment
Open

Adding policy fails incorrectly when appId string length > 50 #569

KevinJCross opened this issue Apr 13, 2022 · 1 comment
Labels

Comments

@KevinJCross
Copy link
Contributor

When creating a policy with an app id >50 char the DB fails with "pq: value too long for type character varying(50)" and we return 500 intead of a 400 and message appId too long.

@KevinJCross KevinJCross changed the title Adding policy fails incorrectly when appId >50 Adding policy fails incorrectly when appId string length > 50 Apr 21, 2022
@joergdw
Copy link
Contributor

joergdw commented Aug 4, 2023

I assume that “app id” means “App-GUID” which can not be longer than 36 characters. We could perhaps improve the error messaging here, catch these cases and return another message different from 500.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants