Skip to content

mw app dependency update fails for ImageMagick: versionRange returns 404 despite versions existing #1539

@fritzdacat

Description

@fritzdacat

Description

The mw app dependency update command fails for ImageMagick (im) with a 404 error when using any version specification, even though versions exist in the API.

Steps to Reproduce

  1. List available ImageMagick versions (works):

    mw app dependency versions im
    # Shows: 7.1.1-41, 7.1.1-39, 7.0.7-26, etc.
  2. Try to update dependency with version range (fails):

    mw app dependency update APP_ID --set "im=~7"
  3. Try with exact version (also fails):

    mw app dependency update APP_ID --set "im=7.1.1-41"

Expected Behavior

The dependency should be updated to the specified version.

Actual Behavior

GET v2/system-softwares/.../versions
Response 404 Not Found
Message: no system software versions found

Root Cause Analysis

The API returns incorrect internalVersion values for ImageMagick. When querying the versions endpoint directly (without versionRange), the internalVersion field shows:

  • 71.1.41 instead of 7.1.1-41
  • 70.7.26 instead of 7.0.7-26

The major version appears to be concatenated with the minor version (71 instead of 7.1), causing the semver matcher to fail.

Comparison with working software (GraphicsMagick):
GraphicsMagick has correctly formatted internalVersion values like 1.3.38, and mw app dependency update --set "gm=~1" works as expected.

Environment

  • mw CLI version: 1.12.0
  • OS: macOS (Darwin 24.6.0)

Workaround

None - ImageMagick cannot be configured via CLI.

Note

This appears to be an API/database issue - the internalVersion values for ImageMagick are incorrectly formatted in the backend.

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