-
Notifications
You must be signed in to change notification settings - Fork 35
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
Handling of special characters and white space in alias names #204
Comments
From our keri dev meeting: |
So that work is done in KERIA now to use the identifier in the URL path. You can still run into issues because the name can still be used in the path (which I think is still useful for testing/prototyping) but maybe it's OK. I'd like to implement WebOfTrust/keria#287 (comment) in a few months which would avoid this issue anyway. Maybe we can close this now? We also have that fix for the content length in, I'm able to create identifiers with these names. |
If we can use the prefix instead of alias in the URLs, I am happy to close this issue. We're still on the old version so haven't tested that feature extensively. |
When creating an identifier with "special" characters, for example spaces or the "ö" letter used in Swedish and Finnish:
You will get an error when signify-ts is doing the fetch call:
I also experimented with URL encoding the alias:
Then the creation succeeds, but a subsequent
identifiers().get(alias)
results in a 401 Unauthorized from keria. The same thing happens when creating an alias with spaces:I have put the reproduction scripts here: https://github.com/lenkan/signify-ts/blob/2d21adae1f3706f7829566d9af10f0f57d8741dc/examples/integration-scripts/identifier-name-with-special-chars.test.ts
Not sure if this issue should be in signify-ts or in keria. Depending on the route taken, it could affect both repos. I am totally fine with rejecting special characters in identifier names altogether, but then we should probably do some request input validation in keria to reject any invalid requests with a 4xx error.
The text was updated successfully, but these errors were encountered: