Archiva (moved to ASF)
  1. Archiva (moved to ASF)
  2. MRM-964

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


    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: Web Interface
    • Labels:
    • Environment:
      Client: Windows XP SP3, Firefox 3.0.3
      Server: Linux Red Hat AS 4.0
    • Number of attachments :


      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/

      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.

        Issue Links


          Maria Odea Ching made changes -
          Field Original Value New Value
          Link This issue relates to MRM-837 [ MRM-837 ]
          Brett Porter made changes -
          Fix Version/s 1.x [ 13571 ]
          Justin Rennell made changes -
          Link This issue is related to MRM-1172 [ MRM-1172 ]
          Brett Porter made changes -
          Link This issue duplicates MRM-929 [ MRM-929 ]
          Brett Porter made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s Backlog [ 13571 ]
          Resolution Duplicate [ 3 ]


            • Assignee:
              Vincent Thévenin


              • Created: