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

Actor ID encoding #763

Open
silverpill opened this issue May 19, 2024 · 0 comments
Open

Actor ID encoding #763

silverpill opened this issue May 19, 2024 · 0 comments
Labels
Needs triage [Type] Bug Something isn't working

Comments

@silverpill
Copy link

Quick summary

I found an actor that has Unicode characters in its ID: https://xn--y9aai3au2bc2f.xn--y9a3aq/գրառում/author/antranigv/ (nodeinfo). Looks like it is not a valid actor ID.

The ActivityPub specification says that identifiers must be "Publicly dereferencable URIs": https://www.w3.org/TR/activitypub/#obj-id
But URIs can't contain Unicode characters, so I assume that these characters should be percent-encoded.

Steps to reproduce

curl -H "Accept: application/activity+json" https://xn--y9aai3au2bc2f.xn--y9a3aq/%D5%A3%D6%80%D5%A1%D5%BC%D5%B8%D6%82%D5%B4/author/antranigv/

What you expected to happen

Unicode characters should be percent-encoded.

What actually happened

ID contains Unicode characters

Impact

One

Available workarounds?

There is no user impact

Logs or notes

No response

@silverpill silverpill added [Type] Bug Something isn't working Needs triage labels May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs triage [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant