Skip to content

Filtering by version constraint is broken (Case 162267) #49

@janopae

Description

@janopae

Here I searched for a certain library being < 2.10.0.0: https://baton.webfactory.de/package/webfactory/doctrine-bundle-default-config;html?operator=%3C&versionString=2.10.0.0

It shows usages of 2.0.1 and 2.0.3.

Here I searched for the same library being used in < 3.7.0.0: https://baton.webfactory.de/package/webfactory/doctrine-bundle-default-config;html?operator=%3C&versionString=3.7.0.0

The results include usages of 2.4.0, 2.5.0 and 2.8.3, which are all smaller than 2.10, yet didn't show up in the first search.

My assumption is that Baton treats the value of 2.10 as 2.1. This suspicion is amplified by the fact that in the sorted search results, 2.4 etc. appear after 2.10, while actually being smaller.

How does Baton compare versions? Does it understand SemVer, or does it just order the strings alphabetically?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions