backend.ai
backend.ai copied to clipboard
refactor: change regex of project to allow unicode except any whitespace
This PR resolves #1658.
Before this PR every client-side got "400 Bad Request" error, which is originated from regex that only allows alphanumeric characters,-
(hyphen) and _
(underscore).
After applying this PR will allow unicode characters, such as Korean(e.g. "프로젝트"), But not allowing any whitespaces.
Checklist: (if applicable)
- [x] Milestone metadata specifying the target backport version
- [x] Mention to the original issue
- [ ] Documentation
- [x] API server-client counterparts (e.g., manager API -> client SDK)
- [x] Test case(s) to demonstrate the difference of before/after
Screenshot(s)
Before
After