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

Unable to find project model for [...] if the initial import of the POM failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0
    • 1.0.2
    • repository scanning
    • None
    • Windows32

    Description

      It seems that Archiva is not properly updating the database if the initial import of the POM failed due to a parse error, even after the original problem has been corrected, the repository has been rescanned, and the database updated again.

      Steps to reproduce:
      1. Start with a fresh Archiva 1.0 installation
      2. Drop a group containing an artifact with a broken POM (illegal XML) to Archiva's internal repo directory
      3. Run "Scan Repository Now" and "Update Database Now".
      The log shows a ProjectModelException because the broken POM could not be parsed.
      4. Fix the broken POM. Run "Scan Repository Now" and "Update Database Now" again.
      5. Use the "Browse" page to browse to the artifact -> you get the error message:
      Unable to find project model for [junit:junit:3.7].

      I've attached the zipped contents of the "data" directory after performing the steps above, and the log file.

      Notice that there might be general repository scanning problem in 1.0 that could be related, see
      http://www.nabble.com/Repository-scanning-problem-in-1.0--tf4897121.html

      Attachments

        1. data.zip
          363 kB
          Arne Degenring
        2. archiva.log
          73 kB
          Arne Degenring

        Issue Links

          Activity

            People

              oching Maria Odea B. Ching
              arned Arne Degenring
              Votes:
              4 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: