Skip to content

Spigot version sorting uses lexicographic order instead of semantic #288

@Nlkomaru

Description

@Nlkomaru

Summary

`SpigotDownloader` fetches versions with `sort=-name`, which sorts version strings lexicographically. This means `2.9` sorts after `2.10` (because `"9" > "1"`), so the "latest" version may actually be an older release.

Location

`paper/src/main/kotlin/party/morino/mpm/infrastructure/downloader/spigot/SpigotDownloader.kt` line ~75

Impact

Medium — Incorrect "latest" version detection for SpigotMC plugins with version numbers that don't sort lexicographically.

Suggested Fix

Use the Spiget API's `sort=-id` or `sort=-releaseDate` to get chronologically latest versions, or fetch all versions and apply semantic version comparison.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions