Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-426

Search does not work for snapshots because of different version values in index and database when the snapshot version is unique

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-alpha-2
    • 1.0-beta-1
    • None
    • None

    Description

      When an artifact with unique snapshots is searched from Archiva, the search result would contain different hits for that artifact which has the same version but when you click the version to browse the artifact.. an ObjectNotFound error is returned. Below is an example of this behavior.

      The artifact to be searched is castor-anttasks. Let's say it has 3 SNAPSHOT versions 1.1.2-20070427.065136-1, 1.1.2-20070506.163513-2 and 1.1.2-20070506.163513-3 in the repository, and the path to this artifact is [REPO]/org/codehaus/castor/castor-anttasks/1.1.2-SNAPSHOT.

      The search results would then look like this:

      Hits: 3 of 3
      castor-anttasks
      org / codehaus / castor / castor-anttasks | Version(s): 1.1.2-SNAPSHOT

      castor-anttasks
      org / codehaus / castor / castor-anttasks | Version(s): 1.1.2-SNAPSHOT

      castor-anttasks
      org / codehaus / castor / castor-anttasks | Version(s): 1.1.2-SNAPSHOT

      When you click either of the versions to browse the artifact, what you would get is this error:
      'Unable to find project model for [org.codehaus.castor:castor-anttasks:1.1.2-SNAPSHOT]'

      Attachments

        Issue Links

          Activity

            People

              oching Maria Odea B. Ching
              oching Maria Odea B. Ching
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: