Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-964

Method isVersion() for validating an uploaded artifact version is open to criticism

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.1.2
    • None
    • Web Interface
    • None
    • Client: Windows XP SP3, Firefox 3.0.3
      Server: Linux Red Hat AS 4.0

    Description

      When uploading an artifact, a validation is made against the 'version' field.
      The validation occurs in file $SRC/archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/VersionUtil.java.

      I think such a validation algorithm can be discussed, as it does not let the user free to use its own versioning system. Actually, Maven itself does not seem to restrict the string pattern for the version of an artifact (even if the version ranging may not work), so why restricting it at Archiva level?
      There are cases where you cannot comply with imposed validation method, and where the change of the version system is not permitted for various reasons. The result is you cannot install the artifact using Archiva.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vthevenin Vincent Thévenin
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: