Commit Graph

56 Commits

Author SHA1 Message Date
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
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
Maria Odea B. Ching 254148d5e2 [MRM-256]
ArtifactsByRepositoryConstraint -- this got left-out too


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586921 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 17:44:24 +00:00
Maria Odea B. Ching fa556335ea [MRM-256]
RepositoryContentStatisticsDAO --> oops, got left out from the previous commit


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586920 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 17:36:02 +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
Maria Odea B. Ching 88e4896ee9 [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 


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@584735 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 11:16:38 +00:00
Joakim Erdfelt 8af86cd884 Finishing the Repository split work that brett started.
ArchivaRepository has been removed from model.
This work was needed before repository layout/detection proposal work is started.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@582987 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 22:07:39 +00:00
Brett Porter 17f229020f [MRM-462] separate configuration of managed and remote repositories
Merged from branches/MRM-462

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@574859 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 09:33:41 +00:00
Brett Porter 8ffe658623 [MRM-449, 450] improvements to the group search reporting
Submitted by: Teodoro Cue Jr.


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@568011 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 08:16:36 +00:00
Brett Porter 0dc2c29c92 [MRM-329] revised reporting actions
Submitted by: Teodoro Cue

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562511 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 16:02:00 +00:00
Joakim Erdfelt ad906608b7 * Updating my email address from joakim@erdfelt.com to my apache side email address at joakime@apache.org
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562485 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 14:44:15 +00:00
Brett Porter 01350dc303 [MRM-430] configuration adjustments and tests
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562474 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 14:16:58 +00:00
Brett Porter a40c80e2e1 [MRM-446] search by checksum was not working due to a case mismatch
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562380 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 08:10:29 +00:00
Joakim Erdfelt 59cd555432 [MRM-329] The Reports link gives an HTTP 500
Patch by: Teodoro Cue Jr



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@562233 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 20:02:27 +00:00
Maria Odea B. Ching 488303a9e8 [MRM-425 and MRM-426]
- Added and modified code for handling snapshots (if the versions of a specific artifact snapshot are only timestamped versions, add a 
generic snapshot which is pointing to the latest timestamp version) in DefaultRepositoryBrowsing and ProjectModelToDatabaseConsumer.
- Updated pom validations in ProjectModelToDatabaseConsumer - handling of timestamped versions were considered
- Added isUniqueSnapshot(..) and isGenericSnapshot(..) in VersionUtil
- Added new attribute 'modelVersion' in DependencyTreeTag to get the in-pom version. Did not use the version attribute so as to retain the 
actual version being browsed. Also updated DependencyTree
- Updated the ff. pages for the version to be displayed: artifactInfo.jspf, showArtifact.jsp, dependencyTree.jsp and artifactDecorator.jsp
- Updated the version in SearchResultHit



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@558795 13f79535-47bb-0310-9956-ffa450edef68
2007-07-23 16:48:30 +00:00
Joakim Erdfelt 029c0c9789 * Fixing ArtifactsByChecksumConstraint for null types.
* Adding anonymous type constructor for ArtifactsByChecksumConstraint.
* Removing DatabaseSearch.  (We don't want a repeat of the mess that exists within continuum!)



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@551997 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 18:52:49 +00:00
Maria Odea B. Ching 49ec5dcb1f [MRM-416]
- Added DatabaseSearch class for querying from the database (This could be used for future database queries so there is only one entry point for all 
db queries)
- Added ArtifactsByChecksumConstraint to be used for querying artifacts by checksum (either sha1, md5 or both)
- Updated "artifact" result of findArtifact action in xwork.xml
- Updated SearchAction to find an artifact (using checksums) in the database instead of in the indices
- Updated results.jsp to accomodate when the results came from the database instead of the SearchResults that is for index searching
- Deleted ArtifactsBySha1Constraint and its test, replaced by ArtifactsByChecksumConstraint
- Created tests for the new classes added



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@549792 13f79535-47bb-0310-9956-ffa450edef68
2007-06-22 11:57:55 +00:00
Joakim Erdfelt 66fa6ce2c3 [MRM-403]: when browsing, groups list incorrect sub-groups
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@549578 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 18:22:48 +00:00
Joakim Erdfelt a19f5c6e86 Removing bad unit test.
Shouldn't be testing jpox directly using internal JPOX classes.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@548824 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 18:47:29 +00:00
Joakim Erdfelt 6405f2be6b [MRM-388] Unable to configure archiva if configuration file did not already exist
Correcting DatabaseUpgrade process that was causing the problem.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@548151 13f79535-47bb-0310-9956-ffa450edef68
2007-06-18 00:54:16 +00:00
Joakim Erdfelt e7664898d6 [MRM-410] Dependency Tree is not shown in artifact details screen.
* Refactored project resolution into ProjectModelResolverFactory component.
* All resolution access points now use this factory.
* Created ResolverFactoryInit as plexus component load-on-start, to hookup database to resolver stack.
* Created archiva:dependency-tree taglib



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@548008 13f79535-47bb-0310-9956-ffa450edef68
2007-06-17 04:50:05 +00:00
Joakim Erdfelt f457d052ae [MRM-378]: Clicking on the tabs in the artifact detail page doesn't change the view
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@542881 13f79535-47bb-0310-9956-ffa450edef68
2007-05-30 17:20:20 +00:00
Joakim Erdfelt 18454da4e7 [MRM-346]: Show Artifact results in error 500.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@540614 13f79535-47bb-0310-9956-ffa450edef68
2007-05-22 15:48:23 +00:00
Joakim Erdfelt 8e4c990b3b [MRM-346]: Show Artifact results in error 500.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@540599 13f79535-47bb-0310-9956-ffa450edef68
2007-05-22 14:43:07 +00:00
Joakim Erdfelt 24acf2fa0e Disabling unfinished testcase
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@540582 13f79535-47bb-0310-9956-ffa450edef68
2007-05-22 13:39:20 +00:00
Joakim Erdfelt ec549451bb [MRM-346]: Show Artifact results in error 500.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@540343 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 23:01:36 +00:00
Joakim Erdfelt 3dce54c7fb [MRM-346]: Show Artifact results in error 500.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@539619 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 22:35:12 +00:00
Joakim Erdfelt 650c56007b [MRM-346]: Show Artifact results in error 500.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@539163 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 23:17:48 +00:00
Joakim Erdfelt 2ae3268ff9 [MRM-346]: Show Artifact results in error 500.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@539145 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 22:16:57 +00:00
Joakim Erdfelt 6c1ebee773 [MRM-345]: Browsing shows no information.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@538642 13f79535-47bb-0310-9956-ffa450edef68
2007-05-16 16:21:57 +00:00
Joakim Erdfelt 711bb6c0c6 Updates to Database scanner, updater, task, consumers, and admin screens.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@536680 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:03:49 +00:00
Joakim Erdfelt e52e0793df Updates for admin screens
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@534044 13f79535-47bb-0310-9956-ffa450edef68
2007-05-01 12:46:46 +00:00
Joakim Erdfelt 3a6d8b6a27 Fixing bad role-hint
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@532453 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 19:37:27 +00:00
Joakim Erdfelt 32f1b4afd2 * Splitting up Constraint into DeclarativeConstraint and SimpleConstraint.
* Adding ArchivaDAO.query(SimpleConstraint).
* Adding UniqueGroupIdConstraint.
* Adding UniqueArtifactId Constraint.
* Adding UniqueVersionConstraint.
* Adding RepositoryBrowsing component.
* Refactoring webapp's BrowseAction groupId filtering into GroupIdFilter class.
* Refactoring BrowseAction to utilize new RepositoryBrowsing component.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@530911 13f79535-47bb-0310-9956-ffa450edef68
2007-04-20 20:44:32 +00:00
Joakim Erdfelt 8b0319bf62 Refactoring of reporting. One step closer to an end-to-end compile.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@530395 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 12:25:11 +00:00
Jesse McConnell c4f2ef40af fix up component decl
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@527686 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 21:36:48 +00:00
Joakim Erdfelt 9e39e98656 Fixing RepositoryDAO and tests.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@527676 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 21:13:53 +00:00
Joakim Erdfelt 454fb5b0be Work towards compilable webapp
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@527650 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 20:27:38 +00:00
Joakim Erdfelt 84e5e12ca8 * More unit testing of the archiva-database.
* Added CompoundKey tag to help JdoAccess process compound keys more intelligently.
* Updates to keys to honor CompoundKey identity.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@526927 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 21:28:30 +00:00
Joakim Erdfelt 6ee23e63a9 * Implemented ArtifactDAO
* Fixed Query / Constraints when using dates (and other parameterized objects)



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@526879 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 19:12:10 +00:00
Joakim Erdfelt 0dc680c13e * Adding boilerplate for DatabaseUpdater.
* Splitting ArchivaDAO into sub-DAO's to aide in maintenance.



git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@526822 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 16:39:58 +00:00
Joakim Erdfelt 379bbb7225 Updating with changes surrounding model, and database schema, change
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@525951 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 20:11:19 +00:00
Joakim Erdfelt 3e1c7a3ad2 Boilerplate unit testing with hsqldb for other devs ...
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@521303 13f79535-47bb-0310-9956-ffa450edef68
2007-03-22 15:11:37 +00:00
Joakim Erdfelt 2087d187e7 Changing to hsqldb for unit testing.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@520921 13f79535-47bb-0310-9956-ffa450edef68
2007-03-21 15:46:41 +00:00
Joakim Erdfelt 1451e3ef75 More work against model/database unit testing.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@520899 13f79535-47bb-0310-9956-ffa450edef68
2007-03-21 14:30:32 +00:00
Joakim Erdfelt f5da042413 Furthor work against BidirectionalLayout
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@518797 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 22:44:49 +00:00
Joakim Erdfelt 7a5f50c9f6 Partial work against jpox database refactoring.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@518686 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 16:48:40 +00:00
Joakim Erdfelt df9ebafaf9 Fixing broken code.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@512450 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 22:19:08 +00:00
Joakim Erdfelt 08d67a9bac artifact persistence work
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@512448 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 22:17:45 +00:00
Jesse McConnell 69a8874030 remove reference to object factory, it won't solve the problem at hand
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@512418 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 21:23:29 +00:00