Commit Graph

295 Commits

Author SHA1 Message Date
Brett Porter 606da5d43e [MRM-586] transfer failures cause proxying to fail. Added test and some notes on missing tests
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593843 13f79535-47bb-0310-9956-ffa450edef68
2007-11-11 04:07:45 +00:00
Maria Odea B. Ching 46fbfa0fd1 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593451 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 08:32:31 +00:00
Maria Odea B. Ching 68ec920cd9 [maven-release-plugin] prepare release archiva-1.0-beta-4
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593449 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 08:30:01 +00:00
Joakim Erdfelt 729ad246d2 [MRM-564] Audit log is not populated when artifacts are deployed.
Expanded Audit concepts into listener / event / log.
Using log4j for audit log (for consistency with other logging)
Moved AuditLog from webapp to repository-layer.




git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593246 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 18:36:12 +00:00
Joakim Erdfelt 9f4dee3c71 [MRM-582] Remote Repositories with empty <username> and <password> fields shouldn't be created in configuration.
Implemented on-load cleanup of remote repo username/password (instead of on-save)
Implemented proper check for blank username/password in proxy connectors.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593220 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 16:19:05 +00:00
Maria Odea B. Ching 352479d4c9 - Updated repository purge tests to reflect the changes made in r592297 as suggested in the dev list
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@593081 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 09:03:44 +00:00
Maria Odea B. Ching c7cd97bf16 [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


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@592657 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 09:02:58 +00:00
Joakim Erdfelt 42c39b585d [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



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@592513 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 18:26:04 +00:00
Maria Odea B. Ching 293bd8e2f2 [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


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@592297 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 06:16:12 +00:00
Brett Porter ed87e673fe [MRM-141] remove irrelevant documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@591958 13f79535-47bb-0310-9956-ffa450edef68
2007-11-05 11:05:08 +00:00
Joakim Erdfelt baf4c89435 [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.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@590908 13f79535-47bb-0310-9956-ffa450edef68
2007-11-01 06:21:26 +00:00
Joakim Erdfelt 255949579d [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.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@590858 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 22:47:50 +00:00
Maria Odea B. Ching 0561ccc53d [MRM-544]
- remove artifact in index if artifact no longer exists in the file system
- added tests


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@590622 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 11:07:24 +00:00
Maria Odea B. Ching 76ca3a6797 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@589972 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 06:18:56 +00:00
Maria Odea B. Ching 7cde1cdf00 [maven-release-plugin] prepare release archiva-1.0-beta-3
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@589970 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 06:16:21 +00:00
Joakim Erdfelt ec8628ad93 Removing archiva-xml-tools dependency from archiva-configuration.
Loading default FileTypes using plexus-configuration way, not via direct load of the XML.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@589831 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 20:03:58 +00:00
Brett Porter b2c335626a [MRM-528] must only use the enabled consumers
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@589542 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 08:24:12 +00:00
Brett Porter 5445c18888 update TODO
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@589528 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 07:10:39 +00:00
Joakim Erdfelt 40001e82b1 [MRM-560] Dependency Tree causes an Exception
Improving exception messages on bad ArchivaArtifact to include what details it does have.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@588805 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 23:49:53 +00:00
Joakim Erdfelt 76aabf37a0 [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.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@588732 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 18:16:43 +00:00
Maria Odea B. Ching 2395fea5f0 [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


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@588598 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 10:36:48 +00:00
Maria Odea B. Ching c5f4e5079b -Reverted version to 1.0-beta-3-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@588567 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 08:54:24 +00:00
Joakim Erdfelt 89079a2684 Adding some tests for invalid request paths.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587701 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 00:00:30 +00:00
Joakim Erdfelt ac7babe5a1 [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.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587623 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 19:21:19 +00:00
Joakim Erdfelt 322c16f688 [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.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587318 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 00:18:20 +00:00
Joakim Erdfelt b4c36626c5 Adding a few more .toKey() methods to aide in logging statements elsewhere.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587310 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 00:12:47 +00:00
Joakim Erdfelt 1c0f8cd18e [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.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587224 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 20:00:55 +00:00
Brett Porter 21b1ab9f3b [MRM-551] the default scan cron expression is once a day, should be hourly
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587097 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 13:51:45 +00:00
Brett Porter 0b16483c88 [MRM-546] correct clean up of registry after removal
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587088 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 13:39:52 +00:00
Brett Porter 19afbc4ac8 [MRM-546] restore correct test data and fix configuration modifications
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587071 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 12:37:25 +00:00
Brett Porter 858f0283d1 [MRM-546] re-enable tests that are passing
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@587070 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 12:36:50 +00:00
Maria Odea B. Ching d2ceac7b0b [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586989 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 02:56:59 +00:00
Maria Odea B. Ching 44c44aa4f1 [maven-release-plugin] prepare release archiva-1.0-beta-3
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586987 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 02:54:10 +00:00
Maria Odea B. Ching 21a61ab5f9 [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



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586919 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 17:30:07 +00:00
Brett Porter d271660cc6 [MRM-555] scanner checks timestamps, but some consumers will want to consume artifacts regardless
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586827 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 02:43:26 +00:00
Joakim Erdfelt aa9ef1d3e6 Re-enabling tests now that MRM-535 is fixed.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586636 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 22:53:53 +00:00
Joakim Erdfelt 8d22aca37f Beefing up tests for RepositoryContentConsumers.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586524 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 16:40:05 +00:00
Joakim Erdfelt 53b29620d5 Updating javadoc.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586517 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 16:13:49 +00:00
Brett Porter cc605be65b run the correct consumers
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586514 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 15:59:35 +00:00
Joakim Erdfelt 5242d36ec9 Cleaning up potential multi-threading issues with use of static SimpleDateFormat.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586472 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:21:13 +00:00
Joakim Erdfelt 0fe0fa5a6f Correcting path resolution logic.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585598 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:46:40 +00:00
Joakim Erdfelt 0427f685c7 Remove unused classes.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585588 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:30:18 +00:00
Joakim Erdfelt 37b716926d Removing unused imports.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585587 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:29:17 +00:00
Joakim Erdfelt 766b613044 Removing unused pieces.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585586 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:28:01 +00:00
Joakim Erdfelt cd2c55d5c3 Upgrading bidirlayout usage to RepoContent usage to eliminate bugs around missing content from bad layout routines.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585579 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:14:25 +00:00
Joakim Erdfelt 84731f48bc Upgrading bidirlayout usage to RepoContent usage to eliminate bugs around missing content from bad layout routines.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585576 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 17:01:25 +00:00
Joakim Erdfelt b8ec325b49 Upgrading bidirlayout usage to RepoContent usage to eliminate bugs around missing content from bad layout routines.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585574 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 16:56:51 +00:00
Joakim Erdfelt acdff6dcc1 Adding ability to create an ArchivaArtifact from an ArtifactReference.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585573 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 16:54:27 +00:00
Joakim Erdfelt 568312aa1f Updating from bidirlayout to RepoContent techniques.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585569 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 16:47:33 +00:00
Joakim Erdfelt f3d43d4d4d Setting deprecations on interfaces / classes not to use.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585564 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 16:39:06 +00:00