Skip to content

Disallow non-ASCII characters in metadata which expects ASCII-only #24

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

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

bdach
Copy link
Contributor

@bdach bdach commented Feb 7, 2025

This is inspired by stable BSS failures such as https://discord.com/channels/188630481301012481/1097318920991559880/1336828366417952881 wherein using a non-ASCII character in a difficulty name causes some very unfriendly-looking errors.

The game package bump is relevant because MetadataUtils.IsRomanised() has been touched recently in ppy/osu#31433.

bdach added 2 commits February 7, 2025 15:18
This is inspired by stable BSS failures such as
https://discord.com/channels/188630481301012481/1097318920991559880/1336828366417952881
wherein using a non-ASCII character in a difficulty name causes some
very unfriendly-looking errors.

The game package bump is relevant because `MetadataUtils.IsRomanised()`
has been touched recently in ppy/osu#31433.
@bdach bdach requested a review from peppy February 7, 2025 14:27
@bdach bdach self-assigned this Feb 7, 2025
@peppy peppy merged commit 0ca59fa into ppy:master Feb 12, 2025
4 checks passed
@bdach bdach deleted the enforce-ascii-metadata branch February 13, 2025 07:27
bdach added a commit to bdach/osu-server-beatmap-submission that referenced this pull request Feb 24, 2025
…operties

Closes ppy#37.

Similarly to
ppy#36, this won't
make the submission not-fail, but errors won't get reported to sentry
and users will get better feedback about why their map won't upload.

This also moves the romanised validations from
ppy#24 to the
built-in data annotations machinery as it's honestly just easier to not
reinvent the wheel, and the declarativeness of the syntax is also nice.
bdach added a commit to bdach/osu-server-beatmap-submission that referenced this pull request Feb 24, 2025
…operties

Closes ppy#37.

Similarly to
ppy#36, this won't
make the submission not-fail, but errors won't get reported to sentry
and users will get better feedback about why their map won't upload.

This also moves the romanised validations from
ppy#24 to the
built-in data annotations machinery as it's honestly just easier to not
reinvent the wheel, and the declarativeness of the syntax is also nice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants