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

Version number field in edit version page has incorrect max length set #3410

Closed
2 tasks done
BoBkiNN opened this issue Mar 18, 2025 · 0 comments · Fixed by #3425
Closed
2 tasks done

Version number field in edit version page has incorrect max length set #3410

BoBkiNN opened this issue Mar 18, 2025 · 0 comments · Fixed by #3425
Labels
bug Something isn't working web Relates to Modrinth.com web frontend

Comments

@BoBkiNN
Copy link

BoBkiNN commented Mar 18, 2025

Please confirm the following.

What browsers are you seeing the problem on?

Chrome (including Arc, Brave, Opera, Vivaldi)

Describe the bug

When entering long version number (more than 32 chars) an error is shown and version not updates.

Image

Image

Steps to reproduce

  1. Open page for uploading/editing version
  2. Type more than 32 characters to Version number field (#version-number element)
  3. Click Save to save version
  4. See error popup

Expected behavior

maxlength property of that <input> is set to 32 to match actual limit and prevent users from typing more than 32 characters. Or actual limit must be increased

Additional context

Docs does not say anything about limit of 32 characters for version_number. Also i think that limit may be increased.
Docs page with that field.
Tested with POST and PATCH requests.

@BoBkiNN BoBkiNN added bug Something isn't working web Relates to Modrinth.com web frontend labels Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web Relates to Modrinth.com web frontend
Development

Successfully merging a pull request may close this issue.

1 participant