Commit Graph

804 Commits

Author SHA1 Message Date
Martin Stockhammer 5d90a2102d Renaming packages to make them distinct over modules 2019-10-04 13:04:18 +02:00
Martin Stockhammer 8a94fa6bdd Removing junit 4 dependencies 2019-10-03 19:18:36 +02:00
Martin Stockhammer 391442c6a0 Changing package for audit events 2019-10-03 18:36:54 +02:00
Martin Stockhammer 405687b120 Migrating basic event API to archiva commons 2019-10-03 18:30:48 +02:00
Martin Stockhammer 88329740a3 Removing xerces dependencies 2019-09-28 22:37:41 +02:00
Martin Stockhammer b072f6921d Proxy changes 2019-09-22 00:09:54 +02:00
Martin Stockhammer 363c4c9608 Switching to enum for policy options 2019-09-06 21:14:28 +02:00
Martin Stockhammer ebf95723a5 Modifying NetworkProxy class. Adding tests. 2019-09-03 14:40:22 +02:00
Martin Stockhammer d3310322d0 Updating apache commons library versions 2019-09-02 16:51:46 +02:00
Martin Stockhammer d7c3dbe771 Removing maven-artifact-manager dependency 2019-09-01 20:09:48 +02:00
Martin Stockhammer f39fc917a8 Fixes for JDK11 2019-09-01 11:18:11 +02:00
Martin Stockhammer 36249f6646 Trying to fix merge test error on build server 2019-08-31 18:59:37 +02:00
Martin Stockhammer f1ae6b4145 Moving mavenmerge class to archiva-maven-repository module 2019-08-31 17:01:36 +02:00
Martin Stockhammer 32c4ada259 Using test loop for browse service test 2019-08-29 19:04:00 +02:00
Martin Stockhammer 31fd0d917e Migrating to primaryTypes and modifying dependencies 2019-08-27 22:09:09 +02:00
Martin Stockhammer 8f42ce002c Changing method names and adding javadoc for metarepository 2019-08-25 19:55:00 +02:00
Martin Stockhammer 118604a706 Fixing unit tests 2019-08-16 22:36:09 +02:00
Martin Stockhammer 21d5cf53fe Refactoring repository metadata session handling 2019-08-06 22:06:57 +02:00
Martin Stockhammer eca0097d85 Changing session handling for metadata API 2019-08-04 22:40:04 +02:00
Martin Stockhammer 9ebf8c8880 Fixing Unit Tests 2019-08-03 16:02:09 +02:00
Martin Stockhammer c56ce11c20 Fixing unit tests 2019-08-02 23:49:08 +02:00
Martin Stockhammer bb3b074aaf Refactoring to StorageAsset access 2019-07-28 15:24:13 +02:00
Martin Stockhammer 8e4acdc82a Migrating to storage API 2019-07-19 19:29:01 +02:00
Martin Stockhammer 8335c60215 Moving filter API to common module 2019-05-08 19:38:23 +02:00
Martin Stockhammer a13bfb5a01 Moving maven specific modules 2019-05-06 22:08:19 +02:00
Martin Stockhammer 79bee6e847 Combining maven specific packages into subdirectory and package structure. 2019-05-05 21:46:25 +02:00
Martin Stockhammer 8a13d818fe [MRM-1987] Improving URL check for organisation info
(cherry picked from commit 796716d441)

This is the final commit from the 2.x branch of multiple commits to fix the vulnerabilities
CVE-2019-0213 and CVE-2019-0214
2019-05-03 20:51:05 +02:00
Martin Stockhammer 7a0e81d515 Fixing unit tests after refactoring 2019-02-10 12:53:02 +01:00
Martin Stockhammer 21220fcd57 Starting refactoring of proxy handling. 2019-01-31 22:49:06 +01:00
Martin Stockhammer 3da7b8ff94 Adding jabx dependency for JDK11
The dependency is needed by enunciate plugin. It is not sufficient to add it as plugin dependency.
Using profile for selecting JDK9+ only and adding it as 'provided' scope.
2019-01-20 22:20:25 +01:00
olivier lamy 5e7d541cf1 no more osgi bundle as no one use it and the build stucks on Jenkins because of this
Signed-off-by: olivier lamy <olamy@apache.org>
2018-12-31 17:00:54 +10:00
olivier lamy 1472fd224f use jettt version property from parent pom
Signed-off-by: olivier lamy <olamy@apache.org>
2018-12-31 15:57:55 +10:00
Martin Stockhammer 586f3c3c2b Adding archiva-modules site build changes for git migration 2018-11-04 13:34:47 +01:00
Martin Stockhammer 956818e3e6 Running rest tests concurrently to reduce build time 2018-10-31 16:32:09 +01:00
Martin Stockhammer df330893d7 Moving dependency versions to main project 2018-10-28 15:48:01 +01:00
Martin Stockhammer 27f5fd524c Preparing for JDK>=9 compatibility 2018-05-19 19:07:44 +02:00
Martin Stockhammer 4b6ee0e554 Extracting maven specific scheduler part to single module 2018-04-16 23:39:39 +02:00
Martin Stockhammer d3564941d5 Moving references to repositoryRegistry 2018-04-08 00:32:46 +02:00
Martin Stockhammer ae49e50067 Migrating usage of repositoryAdmin to repositoryRegistry 2018-04-07 19:59:13 +02:00
Martin Stockhammer 06fcbdbbb8 Changing URL for connectivity tests 2018-04-06 23:14:17 +02:00
Martin Stockhammer cf347e1eb8 Reducing compiler warnings 2018-04-01 18:45:33 +02:00
Martin Stockhammer 98236b99cb Switching to apache commons collections4 2018-04-01 17:21:48 +02:00
Martin Stockhammer f8a9bc1640 Changing the event system to use the checksum module 2018-04-01 09:54:30 +02:00
Martin Stockhammer f101252375 Reorganizing imports 2018-03-30 20:11:57 +02:00
Martin Stockhammer c424149d1c Updating index merge to new maven api 2018-03-30 19:35:16 +02:00
Martin Stockhammer c002211a10 Removing IndexerCleaners 2018-03-30 15:15:26 +02:00
Martin Stockhammer 9cd3c61340 Adding packedIndexDir 2018-03-29 23:47:13 +02:00
Martin Stockhammer c544376afb Switching repository admin and dependent classes to RepositoryRegistry
RepositoryRegistry is used for indexing context now. There is still more work to do
to move the maven dependent parts into its own projects and update the dependencies.
2018-03-24 17:44:13 +01:00
Martin Stockhammer 6899bc54a7 Fxing unit tests for RepositoryRegistry 2017-11-09 19:10:21 +01:00
Martin Stockhammer 97b2c9c909 Refactoring the repository content factory
Adding content provider service that creates repository content instances
remove direct access to the repository content instances.
2017-11-01 22:52:14 +01:00
Martin Stockhammer d6120d6c22 Adapting the web modules to the new repository api 2017-11-01 15:39:07 +01:00
Martin Stockhammer a6706c8414 Migrating web modules to java.nio 2017-09-11 08:48:01 +02:00
Martin Stockhammer b12b8a3ec9 Migrating rest services to java.nio 2017-09-10 20:40:50 +02:00
Martin Stockhammer f886688c25 Migrating scheduler to java.nio 2017-09-10 17:47:17 +02:00
Martin Stockhammer 5437dfd6de Migrating policies module to java.nio 2017-09-05 23:28:55 +02:00
Martin Stockhammer cd1f4a9e79 Switching the checksum module to java.nio 2017-09-02 22:05:16 +02:00
Martin Stockhammer 4781155596 Next part for moving to java.nio 2017-09-02 18:18:56 +02:00
Martin Stockhammer ad9fee4399 First part in moving to java.nio 2017-09-02 13:18:15 +02:00
olivier lamy 6abccf3510 avoid npe
Signed-off-by: olivier lamy <olamy@apache.org>
2017-09-02 18:56:07 +10:00
olivier lamy 9964f9d5ea upgrade to wagon 3.0.0
Signed-off-by: olivier lamy <olamy@apache.org>
2017-08-21 21:52:14 +10:00
olivier lamy 7a2710ec0a Merge branch 'feature/jcr_oak' 2017-08-19 21:37:35 +10:00
olivier lamy 789f879c3b fixing test for rest services, correctly close jcr repo
Signed-off-by: olivier lamy <olamy@apache.org>
2017-08-14 17:20:12 +10:00
Daniel Trebbien 0b15664f1c Utilize parameterized logging and remove toString() calls
As suggested in the SLF4J FAQ:
https://www.slf4j.org/faq.html#logging_performance
.. parameterized logging can improve the efficiency of logger calls when
logging at the specified level is disabled.

In addition, per the FAQ: https://www.slf4j.org/faq.html#paramException
since SLF4J 1.6.0 it is possible to use parameterized logging and also
log an exception/throwable.

toString() is called automatically:
https://www.slf4j.org/faq.html#string_contents

These changes were suggested by SLF4J Helper for NetBeans IDE:
http://plugins.netbeans.org/plugin/72557/
2017-07-30 13:26:05 -07:00
olivier lamy d93ae430d5 trying more memory too see what happen on Jenkins
Signed-off-by: olivier lamy <olamy@apache.org>
2017-07-29 09:22:14 +10:00
olivier lamy 8a76b99641 more progress on oak lucene shaded
Signed-off-by: olivier lamy <olamy@apache.org>
2017-07-24 14:56:21 +10:00
Martin Stockhammer f637c02c71 [MRM-1957] Spliting statistics plugin module
Adding new API module (metadata-statistics-api) for statistics and move the
jcr specific tasks to the metadata store module.

Providing interfaces for the statistics API.

Removing dependencies to store specific libraries (like JCR) from the statistic
modules.
2017-07-16 17:56:54 +02:00
olivier lamy 22430044a4 push work started with shaded lucene
Signed-off-by: olivier lamy <olamy@apache.org>
2017-07-07 17:20:47 +10:00
Martin Stockhammer 7d2cc26b4b Adding jcr oak implementation 2017-06-24 09:05:49 +10:00
Martin Stockhammer dc259c035b [MRM-1954] Adding validatehierarchy property for JCR 2017-06-14 00:04:07 +02:00
Martin Stockhammer 6ff4d94f6c [MRM-1953] Upgrading and fixing jacoco configuration 2017-06-13 22:48:31 +02:00
Martin Stockhammer 7e6ad27e07 Centralizing openjpa log config 2017-05-21 22:36:03 +02:00
Martin Stockhammer 46a38451bc Removing duplicate dependency 2017-05-21 16:19:44 +02:00
Martin Stockhammer acc02bf962 [MRM-1942] Merge branch 'jpa' into master
Removing JDO and add JPA backend.
2017-05-20 23:15:10 +02:00
olivier lamy 053315826d bump version to 3.0.0-SNAPSHOT
Signed-off-by: olivier lamy <olamy@apache.org>
2017-05-18 15:04:58 +10:00
olivier lamy 84a1846854 Merge branch 'feature/jetty_9.4' 2017-05-18 13:53:17 +10:00
Martin Stockhammer a43d980be3 [maven-release-plugin] prepare for next development iteration 2017-05-12 21:36:19 +02:00
Martin Stockhammer e80c3cd529 [maven-release-plugin] prepare release archiva-2.2.3 2017-05-12 21:36:09 +02:00
olivier lamy e9376eeb6d migrate all tests to jetty 9.4
Signed-off-by: olivier lamy <olamy@apache.org>
2017-05-12 16:19:41 +10:00
olivier lamy 52147ba057 upgrade to jetty 9.4 for archiva-rest-services module
Signed-off-by: olivier lamy <olamy@apache.org>
2017-05-11 21:38:51 +10:00
Martin Stockhammer 1acc6e7b84 Adding check path to remote repositories
Allow to set a check path for connection checks to the remote repositories.
This is useful for repositories that do not allow to browse the base directory.

Improved the fix for MRM-1933
2017-05-10 21:39:15 +02:00
Martin Stockhammer 2bf5154f13 MRM-1933, MRM-1940: Fixing repository check
Remove trailing slashes from the remote repositories
Use special check paths for certain servers
2017-05-04 00:22:31 +02:00
Martin Stockhammer d61f68e684 Fixing browse service filter handling
Improved handling of slashes at the beginning of filters
Added patterns for surefire tests to ensure the test runs
2017-04-28 22:41:47 +02:00
Martin Stockhammer 0626aa2bde Going back to version 2.2.3 2017-04-28 00:33:58 +02:00
Martin Stockhammer 04e221a571 [maven-release-plugin] prepare for next development iteration 2017-04-21 22:56:58 +02:00
Martin Stockhammer 41327eebf1 [maven-release-plugin] prepare release archiva-2.2.2 2017-04-21 22:56:47 +02:00
Martin Stockhammer c773e3835c Adding documentation for snippets 2017-03-21 20:53:10 +01:00
Martin Stockhammer a981c1847c Fixing test cases for rest service 2017-03-10 22:09:08 +01:00
Martin Stockhammer fc41a79885 Adding Header check to archiva rest services 2017-01-31 22:56:50 +01:00
Martin Stockhammer dd311845e1 Use JPA as default and only database backend
Remove the JDO dependencies and set the JPA implementation as only
database alternative and default implementation. Uses the same database
as JDO before.
2016-12-30 15:35:19 +01:00
Martin Stockhammer 14a667c4a0 Change userManager reference for configuration service 2016-10-26 23:28:01 +02:00
Martin Stockhammer e6950bba28 Add jpa settings to test spring contexts 2016-10-26 23:27:26 +02:00
Martin Stockhammer 49323248e4 Remove comment 2016-10-25 22:42:39 +02:00
Martin Stockhammer 3fe1000865 Adding isValid() method to authentication classes 2016-10-16 17:18:23 +02:00
Martin Stockhammer 0cc2733ca0 Adding isValid() method to authentication classes 2016-10-04 20:52:25 +02:00
Martin Stockhammer 1fd9c951e1 Improving error handling for LDAP configuration
Error is only displayed, if LDAP is used as repository. The error
messages are more detailed and internationalized.
2016-10-02 15:20:56 +02:00
Martin Stockhammer 5bc8ad7de3 Adding test case for repository listing 2016-09-14 23:04:03 +02:00
Martin Stockhammer de3eb83242 Adding restricted view for user managable repositories
Adds additional rest method to list the repositories where the user
has manage permissions.
Restricts the view for uploads to only managable repositories.
2016-09-14 21:49:30 +02:00
Martin Stockhammer 5bb5f76520 Adding unit test for remote repository check 2016-09-14 10:22:21 +02:00
Martin Stockhammer e4a2e65f6e Removing trailing slash in remote repository check
See https://issues.apache.org/jira/browse/MRM-1909
2016-09-13 18:33:19 +02:00
Martin Stockhammer 02b892796c Increasing timeouts for repository check
Slow responding repositories were marked with a repository failure because of the
low read timeout value.
Increases the timeout for the repository check.
2016-09-08 19:00:40 +02:00
Ciprian Ciubotariu a746721940 Fix non-deterministic test failures
archiva-rest-services tests need to wait for repo scanning to finish
2016-05-31 20:05:29 +03:00
olivier lamy e2482432b2 [maven-release-plugin] prepare for next development iteration 2016-05-23 10:38:28 +10:00
olivier lamy 64f4bc5e0e [maven-release-plugin] prepare release archiva-2.2.1 2016-05-23 10:38:19 +10:00
Eric Barboni b960b96e32 change style and template to have a kind of enunciate 1.x style that we can use 2015-11-13 18:01:52 +01:00
Bernd Eckenfels 495a7bf95f Remove Sonar Dead Store Issues. 2015-10-13 00:54:04 +02:00
Eric Barboni 5d5b0733de put documentation on the same folder as before 2.0.0x migration
make servlet compatible with new layout (not enough)
2015-10-08 19:09:48 +02:00
Eduardo Souza 01f9aad617 [MRM-1861] Proxy behaviour issue migrating from 1.3.x to 2.x 2015-06-11 20:18:45 -03:00
Olivier Lamy 46ccfb47a6 [maven-release-plugin] prepare for next development iteration 2015-02-24 21:55:57 +11:00
Olivier Lamy e5500cce83 [maven-release-plugin] prepare release archiva-2.2.0 2015-02-24 21:55:45 +11:00
Olivier Lamy aac7bb95c0 cleanup legacy api test 2015-02-13 09:52:49 +11:00
Olivier Lamy 642ceb3f9e [MRM-1359] remove maven1 code 2015-02-12 23:00:22 +11:00
Olivier Lamy 4374c550e4 add missing dependency 2015-02-11 22:32:54 +11:00
Olivier Lamy 29faf4ed88 fix exception mapping 2015-02-10 22:10:09 +11:00
Olivier Lamy 8753e05338 fix unit test 2015-02-09 22:46:33 +11:00
Olivier Lamy a115afdbe7 use jaxrs 2.0 2015-02-07 23:02:56 +11:00
Olivier Lamy 1edc02aad9 missing dependency 2015-02-07 22:28:56 +11:00
Olivier Lamy 041a8cc8e0 upgrade to cxf 3.0.3 2015-02-06 23:30:36 +11:00
Olivier Lamy 1040ab6f74 formatting 2015-01-29 16:47:38 +11:00
Olivier Lamy b141b830d7 formatting 2015-01-14 14:49:36 +11:00
Olivier Lamy 61c83ff3d9 [MRM-1867] Adding a find jar by checksum functionality to the REST api 2015-01-12 17:07:54 +11:00
Carlos Sanchez f11f39932a [MRM-1390] Bump version to 2.2.0 2014-12-01 16:56:43 +01:00
Carlos Sanchez e4da1fa6f5 [MRM-1390] Add REST methods to search JCR store for generic metadata and properties
Added REST methods:

artifactsByProjectVersionMetadata/{key}/{value}
artifactsByMetadata/{key}/{value}
artifactsByProperty/{key}/{value}
searchArtifacts/{text}
searchArtifacts/{key}/{text}

In JCR implementation When searching into any property (key = nil) we can't do exact searchs
2014-12-01 16:48:13 +01:00
Olivier Lamy d9473241c9 format and debug infos 2014-11-27 15:32:24 +11:00
Carlos Sanchez 5d29c9ff1d [MRM-1848] download links for files multi-dot extensions incorrect in Browse view 2014-11-20 10:26:37 +01:00
Eric Barboni a1d2414702 MRM-1848 lazy fix for tar.gz 2014-11-19 00:10:53 +01:00
Olivier Lamy df99049a93 avoid returning empty data 2014-10-15 11:45:44 +11:00
Eric Barboni e4a7f04a35 add a profile for coverage (jacoco-coverage) 2014-09-30 23:06:57 +02:00
forjsharp 19b4ddd0c8 REST: BrowseServiceTest: Mitigate Stale Item Error 2014-09-21 15:30:02 -07:00
Olivier Lamy ede01e523e [maven-release-plugin] prepare for next development iteration 2014-09-01 15:15:00 +10:00
Olivier Lamy aca120c87c [maven-release-plugin] prepare release archiva-2.1.1 2014-09-01 15:14:47 +10:00
Brett Porter 4ec9c4356f re-order test 2014-08-01 14:20:56 +10:00
Brett Porter 8b1e1ffa71 refactor service tests
Split out scan call to be explicit to make it easier to refactor duplicate
sections, then move repeated configuration to before/after methods.

Make sure scanning has finished before operations that might concurrently try
to modify the metadata. This also means we can now verify the deletion of the
repository is successful
2014-08-01 12:51:12 +10:00
Brett Porter fafb8d284f split out audit facet and listener to match others
by placing these in the metadata model / API they can be used more broadly,
while the storage-dependant implementation can be in a plugin. This means the
plugins can be removed from the admin implementation, which can then be used
(as required) in the CLI
2014-07-31 15:10:37 +10:00
Brett Porter be20d16cfd more autowiring 2014-07-30 18:06:15 +10:00
Brett Porter 75c63ff2eb split out problem facet
this avoids modules wanting to report a problem from having to depend on the
plugin itself and its consumer, etc.
2014-07-30 12:02:04 +10:00
Olivier Lamy e92a96880e line ending 2014-07-17 17:54:44 +10:00
Olivier Lamy f051ac2796 [maven-release-plugin] prepare for next development iteration 2014-07-16 10:51:34 +10:00
Olivier Lamy 93eafa089c [maven-release-plugin] prepare release archiva-2.1.0 2014-07-16 10:51:21 +10:00
Olivier Lamy 0c689f9f6f version is mandatory too 2014-05-21 15:19:52 +10:00
Olivier Lamy ce79d61198 fix context when know repository 2014-05-21 12:09:19 +10:00
Olivier Lamy 89ec8af055 fix context when know repositoryarchiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java 2014-05-21 12:09:03 +10:00
Olivier Lamy b272a1bc2f [MRM-1843] provide mechanism to obtain the latest version of an artifact
Implements LATEST keyword
2014-05-21 10:12:43 +10:00
Olivier Lamy 511858d4ab more cleanup and fix a TODO :-) 2014-05-20 17:15:45 +10:00
Olivier Lamy 2c09abccbc [MRM-1843] provide mechanism to obtain the latest version of an artifact
add some query validation. ensure we properly change the repositoryId for queries without any repositoryId so result can come from a remote repository index
2014-05-20 16:55:34 +10:00
Olivier Lamy 85047d3bb6 [MRM-1843] provide mechanism to obtain the latest version of an artifact
start download api currently redirect
2014-05-20 15:04:47 +10:00
Olivier Lamy 0312f52d7f [MRM-1836] Make search limit (maxCount) configurable via UI 2014-05-02 15:53:54 +10:00
Olivier Lamy 2b03379852 [MRM-1210] Dependency tree should include the artifact type 2014-04-17 15:09:15 +10:00
Olivier Lamy 9dcb92bed0 fix wrong assignment 2014-04-17 09:21:27 +10:00
Olivier Lamy dc91fae5fa more try with resources 2014-04-16 23:00:24 +10:00
Olivier Lamy 65bcbc9d45 do the same as FileUtils.copyFile do 2014-04-16 19:48:53 +10:00