Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-2
-
None
Description
The first unique snapshot version you clicked is getting persisted in the request that's why the DatabaseUnprocessedArtifactConsumer gets the 'version does not match' error when the actual requested artifact's pom file is compared with the version in the request.
Let's say you have the following in your repository, so from the Browse page..
[top] / org / jruby / plugins / jruby-rake-plugin
Versions
- 1.0RC1-20070504.153317-1/
- 1.0RC1-20070504.160758-2/
- 1.0RC1-20070505.090015-3/
- 1.0RC1-20070506.090132-4/
- 1.0RC1-SNAPSHOT/
1. Click 1.0RC1-20070504.160758-2, the artifact info will be displayed.
2. Now go back to the previous page and click 1.0RC1-20070504.153317-1, this would be displayed 'Unable to find project model for [org.jruby.plugins:jruby-rake-plugin:1.0RC1-20070504.153317-1].' in the page.. and from the logs you will see the following error:
jvm 1 | 2007-09-19 10:08:29,594 [SocketListener0-1] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project - Project Model groupId = 'org.jruby.plugins'
jvm 1 | artifactId = 'jruby-rake-plugin'
jvm 1 | version = '1.0RC1-20070504.160758-2' version: 1.0RC1-20070504.160758-2 does not match the pom file's version: 1.0RC1-20070504.153317-1
jvm 1 | 2007-09-19 10:08:29,597 [SocketListener0-1] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project - Invalid or corrupt pom. Project model groupId = 'org.jruby.plugins'
3. Go back again to the previous page and click 1.0RC1-20070506.090132-4, this would be displayed 'Unable to find project model for [org.jruby.plugins:jruby-rake-plugin:1.0RC1-20070506.090132-4].' in the page.. and from the logs you will see the following error:
jvm 1 | 2007-09-19 10:08:05,957 [SocketListener0-1] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project - Project Model groupId = 'org.jruby.plugins'
jvm 1 | artifactId = 'jruby-rake-plugin'
jvm 1 | version = '1.0RC1-20070504.160758-2' version: 1.0RC1-20070504.160758-2 does not match the pom file's version: 1.0RC1-20070506.090132-4
jvm 1 | 2007-09-19 10:08:06,350 [SocketListener0-1] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project - Invalid or corrupt pom. Project model groupId = 'org.jruby.plugins'
Notice that the one being added in the database is still the first unique version you clicked, which is 1.0RC1-20070504.160758-2.