Skip to content

Uploading versions of different type depends on their order #5513

@lukaskabc

Description

@lukaskabc

Please confirm the following.

What browsers are you seeing the problem on?

Firefox

Describe the bug

When I create a new project, I can upload a new version of several types e.g., mod, resourcepack, datapack.
Uploading different types of versions results in a different behavior depending on their upload order.

Steps to reproduce

Use the web UI:

  1. Create a new project
  2. Prepare two files, a resourcepack zip and mod jar (I am using neoforge mod)
  3. Upload the resourcepack as the first version
  4. Try to upload the mod as a second version
  5. Error shows up
The file "TEST-neoforge.jar" is not a valid file type for this project.

Now delete both versions and try it in reverse order.

  1. Upload the mod as the first version
  2. Upload the resourcepack as the second version
  3. Both uploads succeeds

Expected behavior

The behaviour should not change based on the order of uploaded versions.

Additional context

When using API via KiraNT/mc-publish, the behavior is the same for both orders.

HttpError: 400 (Bad Request, {"error":"invalid_input","description":"Error while validating input: Field loaders failed validation with error: length"})

Changing the order results in the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    websiteRelates to Modrinth.com web frontend

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions