[MRM-576]
- modified logic for deleting released snapshots, delete only if there exists a released version of that snapshot not when there is a
higher released/snapshot version
- adjusted tests
Joakim Erdfelt [Tue, 6 Nov 2007 18:26:04 +0000 (18:26 +0000)]
[MRM-516] Search results return results for all repositories, regardless of security.
[MRM-569] Browse shows results for all repositories, regardless of security.
Merge of https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-backend-security changes from revision 590763 to HEAD
[MRM-556]
- respect set retention count when purging by number of days old (used same logic for purging by retention count)
- updated edit managed repository validation for the number of days old minimum range
- adjusted DaysOldRepositoryPurgeTest for the changes
Joakim Erdfelt [Thu, 1 Nov 2007 06:21:26 +0000 (06:21 +0000)]
[MRM-547] proxy connectors: cache failures options are confusing
[MRM-549] proxy connectors: no "always" option for releases and snapshots policies
Applying changes to policy naming per decisions made in dev@archiva mailing list.
Updating DefaultArchivaConfiguration.load() to automatically adjust old configuration settings to new values.
Joakim Erdfelt [Wed, 31 Oct 2007 22:47:50 +0000 (22:47 +0000)]
[MRM-577] Release policy of disabled fails all metadata requests.
Fixing release / snapshot policies from applying tests on maven-metadata.xml files.
Creating unit tests for release / snapshot policies.
Switching from boolean return on .applyPolicy() to throwing exception, to gain better logging of why the transfer failed.
Logging policy failures better.
Joakim Erdfelt [Wed, 31 Oct 2007 20:20:02 +0000 (20:20 +0000)]
[MRM-577] Metadata aren't generated by archiva.
Adding unit tests to replicate conditions around maven-metadata.xml requests presented in Jira ticket.
Not able to reproduce bug (yet).
Joakim Erdfelt [Mon, 29 Oct 2007 20:03:58 +0000 (20:03 +0000)]
Removing archiva-xml-tools dependency from archiva-configuration.
Loading default FileTypes using plexus-configuration way, not via direct load of the XML.
Joakim Erdfelt [Sat, 27 Oct 2007 00:00:04 +0000 (00:00 +0000)]
[MRM-560] Dependency Tree causes an Exception.
Prevented complete collapse of DependencyTree tab when an exception occurs.
Provide more details if there was a problem creating the graph.
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.