Joakim Erdfelt [Fri, 26 Oct 2007 18:16:43 +0000 (18:16 +0000)]
[MRM-481] Artifact requests with a .xml.zip extension fail with a 404 Error
Fixed parsing of filenames to look for "." or "-" after the version to help determine if this artifact has a classifier or just a double-extension.
Added unit tests to repository.content.* classes for double extension.
Added unit test to RepositoryServlet for GET of artifact with double extension.
Joakim Erdfelt [Fri, 26 Oct 2007 16:10:59 +0000 (16:10 +0000)]
Updating test cases for ManagedRepositories to not set RoleManager via plexus (to aide in upgrade of redback)
/me runs to the edge of the ring and tags Jesse.
[MRM-454]
-synchronized the index operations in LuceneRepositoryContentIndex (used 'repository' as the lock) to avoid index locking
-added method for deleting artifacts from the index during repository purge
-updated repository purge tests
Joakim Erdfelt [Fri, 26 Oct 2007 00:59:48 +0000 (00:59 +0000)]
[MRM-567] Unable to download plugin SNAPSHOT's from proxy.
Adding unit tests for Timestamped Snapshot GET from RepositoryServlet (with proxies).
Adding unit tests for Timestamped Plugin Snapshot GET from RepositoryServlet (with proxies).
Joakim Erdfelt [Thu, 25 Oct 2007 23:39:05 +0000 (23:39 +0000)]
[MRM-567] Unable to download plugin SNAPSHOT's from proxy.
Adding unit tests for Artifact downloads via proxied requests.
Splitting RepositoryServlet testcase up to work around PlexusTestCase bug (the configuration within the plexus container consumed the entire java heap, causing an OOM, switching to smaller test cases gets around this bug, but its still not nice bug to hit.)
Reworking MimeTypes to allow for loading of archiva custom configuration. (mainly to get around the .getClassLoader().getResource() differences between command line / ide unit testing)
Joakim Erdfelt [Wed, 24 Oct 2007 00:16:40 +0000 (00:16 +0000)]
[MRM-565] Archiva 1.0-beta-3 fails in 404 on all legacy request.
Using new methods in RepositoryRequest to identify native resource path early and using it.
Adding PolicingServletRequest to deal with bad formatted request paths.
Beefing up RepositoryServletTest to test proxy-less (for now) requests ...
* Browse
* Get Checksum (default layout)
* Get Checksum (legacy layout)
* Get Metadata (versioned + default layout)
* Get Metadata (project + default layout)
* Get Artifact (default layout)
Adding custom mime-types.txt to get proper "Content-Type" headers on GET requests.
Joakim Erdfelt [Tue, 23 Oct 2007 19:21:19 +0000 (19:21 +0000)]
[MRM-565] Archiva 1.0-beta-3 fails in 404 on all legacy request.
Preparing RepositoryRequest for support needed to detect ...
* Support Files
* Maven Metadata
* Artifacts
And translate to a native path for the managed repository.
Joakim Erdfelt [Tue, 23 Oct 2007 00:18:20 +0000 (00:18 +0000)]
[MRM-563] Proxy connector logic for getIfModified is backwards.
Fixing backwards logic in DefaultRepositoryProxyConnectors.
Updating test cases to honor correct .get() vs .getIfModified() logic wrt/mocks.
Updating ManagedLegacyTransferTest for all varients of Managed to Remote, Legacy vs Default, Present and Not Present.
Introducing NotModifiedException to cope with proper .getIfModified() logic.
Introducing NotFoundException to cope with operational exception vs serious connectivity exception.
Joakim Erdfelt [Mon, 22 Oct 2007 20:00:55 +0000 (20:00 +0000)]
[MRM-562] Artifact type "maven-plugin" is not detected correctly in .toArtifactReference() methods.
Added ability in default and legacy layouts to detect the 'maven-plugin' type.
[MRM-265]
- added method for deleting the artifacts in the db when a repo is deleted
- also deleted repo scan statistics when the repo is deleted
- created DAO that does retrieving, deleting and adding of RepositoryContentStatistics to the db
- added and updated tests
Joakim Erdfelt [Fri, 19 Oct 2007 22:47:43 +0000 (22:47 +0000)]
[MRM-520] Proxy Connectors are not deleted with the deletion of a Repository.
Added ability of delete (managed|remote) repository action to clear out the associated proxy connector.
Added tests.
Joakim Erdfelt [Fri, 19 Oct 2007 21:46:08 +0000 (21:46 +0000)]
[MRM-398] configure guest access by default for pre-configured repositories
* Moving redback initialization from a lazy init via xwork interceptor to archiva's startup process.
* Changing UserAssignment process to check/create assignment before assigning new roles.
Joakim Erdfelt [Tue, 16 Oct 2007 01:31:40 +0000 (01:31 +0000)]
[MRM-535] metadata-updater is changing lastUpdating timestamp when it shouldn't
Correcting logic in snapshot metadata to only update on the following conditions.
* Last Updated exist in original metadata.xml or ...
* Last Updated timestamp as found in unique (timestamped) snapshots is newer.
Joakim Erdfelt [Mon, 15 Oct 2007 20:39:42 +0000 (20:39 +0000)]
[MRM-398] configure guest access by default for pre-configured repositories
Reverted partially r584279. (some good fixes for related bugs in place)
Introduced ArchivaConfiguration.isDefaulted() to aide SecuritySynchronization (startup task in archiva-webapp) to add guest user read-only roles if the configuration was set to default for some reason.
Joakim Erdfelt [Mon, 15 Oct 2007 20:39:39 +0000 (20:39 +0000)]
[MRM-398] configure guest access by default for pre-configured repositories
Reverted partially r584279. (some good fixes for related bugs in place)
Introduced ArchivaConfiguration.isDefaulted() to aide SecuritySynchronization (startup task in archiva-webapp) to add guest user read-only roles if the configuration was set to default for some reason.
Joakim Erdfelt [Mon, 15 Oct 2007 20:39:37 +0000 (20:39 +0000)]
[MRM-398] configure guest access by default for pre-configured repositories
Reverted partially r584279. (some good fixes for related bugs in place)
Introduced ArchivaConfiguration.isDefaulted() to aide SecuritySynchronization (startup task in archiva-webapp) to add guest user read-only roles if the configuration was set to default for some reason.
Joakim Erdfelt [Mon, 15 Oct 2007 20:39:34 +0000 (20:39 +0000)]
[MRM-398] configure guest access by default for pre-configured repositories
Reverted partially r584279. (some good fixes for related bugs in place)
Introduced ArchivaConfiguration.isDefaulted() to aide SecuritySynchronization (startup task in archiva-webapp) to add guest user read-only roles if the configuration was set to default for some reason.
Joakim Erdfelt [Mon, 15 Oct 2007 20:39:26 +0000 (20:39 +0000)]
[MRM-398] configure guest access by default for pre-configured repositories
Reverted partially r584279. (some good fixes for related bugs in place)
Introduced ArchivaConfiguration.isDefaulted() to aide SecuritySynchronization (startup task in archiva-webapp) to add guest user read-only roles if the configuration was set to default for some reason.
[MRM-37 and MRM-527]
- added code for cleaning up the database of artifacts that are no longer existing in the repository
(DatabaseCleanupRemoveArtifactConsumer and DatabaseCleanupRemoveProjectConsumer)
- created tests for database cleanup of removed artifacts
- updated some of the test cases (in archiva-database and archiva-scheduled modules) to reflect the changes in thedb cleanup consumers
Wendy Smoak [Sun, 14 Oct 2007 16:08:13 +0000 (16:08 +0000)]
Adjust url for publishing the site to archiva/ref/[version]
Comment out the Cobertura plugin, which breaks 'mvn site'
Drop the archiva-site module from the default list so it does not get published with the reference docs.
Joakim Erdfelt [Fri, 12 Oct 2007 17:56:29 +0000 (17:56 +0000)]
Removing BidirectionalRepositoryLayoutFactory usage.
Replacing with more reliable ManagedRepositoryContent operations.
Cleaning up logging output.
Using new ManagedRepositoryContent.toFile( ArchivaArtifact ) method.
Joakim Erdfelt [Fri, 12 Oct 2007 17:49:40 +0000 (17:49 +0000)]
Fixed unit tests for RepositoryPurge as they were non-repeatable in an IDE environment.
Corrected the assumption that a Managed Repository is the same as a Local Repository. (re: maven-metadata-local.xml)
Streamlined asserts to be more clear .assertExists() .assertDeleted() when reading code and when error message is created.
Removed jdom direct usage in unit tests in favor of XMLUnit.