-
Notifications
You must be signed in to change notification settings - Fork 521
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
API Setting : "Default Prefix" Field Should Not Allow Only Whitespace Values #2297
Comments
/assign |
@bikaxh01 , I’m already working on this issue. I’m just waiting for the label to be assigned so I can officially start. |
@Vardhaman619 it's also a problem in the create key trpc route. So you will need to validate it for both default prefix and create key. |
/award 150 |
Awarding Vardhaman619: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/Vardhaman619 |
/assign |
Assigned to @Vinod-Mane3021! Please open a draft PR linking this issue within 48h |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
It should actually not allow any whitespace at all |
Preliminary Checks
I have reviewed the documentation: https://unkey.com/docs
I have searched for existing issues: https://github.com/unkeyed/unkey/issues
This issue is not a question, general help request, or anything other than a bug report directly related to Unkey. Please ask questions in our Discord community: https://unkey.com/discord.
Reproduction / Replay Link (Optional)
No response
Issue Summary
The
Default Prefix
field for API currently allows input consisting solely of whitespace (e.g., spaces, tabs). This can lead to confusion or hidden issues since whitespace is not easily visible, and the system saves it as a valid prefix. There should be validation to ensure that a valid prefix contains at least one non-whitespace character.Steps to Reproduce
Expected behavior
The
Default Prefix
field should not accept input with only whitespace. A validation error should be shown if the user tries to save the field with just spaces or tabs. The field should require at least one visible character before allowing the user to save.Other information
Actual Result:
The system allows saving the field even when it contains only whitespace.
Expected Result:
A validation error should appear, prompting the user to enter a valid prefix with at least one non-whitespace character.
Screenshots
video.webm
Version info
The text was updated successfully, but these errors were encountered: