Skip to content

Support qualifier-first versions like final-1.2.3 during migration #300

@bvladimir

Description

@bvladimir

Version
pulpcore 3.84.0
pulp-maven 0.11
installed via Poetry

Describe the bug
Unable to upload a file if its version looks like final-1.2.3.
We need to support such versions to migrate from another solution.

To Reproduce

  1. Install Pulp
  2. Create a repository
  3. Upload an artifact with version final-1.2.3:
mvn deploy:deploy-file -Dfile=adapter-FINAL-2.19.0.pom \
                       -DgroupId=group \
                       -DartifactId=adapter \
                       -Dversion=FINAL-2.19.0 \
                       -Dpackaging=zip \
                       -DrepositoryId=test-repo \
                       -Durl=https://void-test.raiffeisen.ru/pulp/maven/test-repo
  1. Observe a 500 error.

It seems the system tries to write a null value into the version field.

Expected behavior
The artifact should be created with version FINAL-2.19.0.

Additional context

django.db.utils.IntegrityError: null value in column "version" of relation "maven_mavenartifact" violates not-null constraint

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions