Commit Graph

669 Commits

Author SHA1 Message Date
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
Olivier Lamy ec1e655c9d use Files.copy from java.nio.file 2014-04-16 18:11:38 +10:00
Olivier Lamy 67985e0486 diamond operator 2014-04-16 17:12:51 +10:00
Eric Barboni 99117364be one move for all remaining override annotation 2014-04-11 23:46:35 +02:00
Olivier Lamy d6c28781b0 more diamond 2014-04-10 23:11:38 +10:00
Olivier Lamy d9de8dc7af use diamond operator 2014-04-10 11:43:11 +10:00
Olivier Lamy 751bffaef1 bump version to 2.1.0-SNAPSHOT because of 1.7 pre requisite
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1585071 13f79535-47bb-0310-9956-ffa450edef68
2014-04-05 11:57:09 +00:00
Olivier Lamy 56696b4bd8 fix cache invalidate when deleting a groupId
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1583868 13f79535-47bb-0310-9956-ffa450edef68
2014-04-02 04:04:00 +00:00
Olivier Lamy fa2a3efcc7 [MRM-1802] Find a cache solution for browsing part (especially root browsing)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1583867 13f79535-47bb-0310-9956-ffa450edef68
2014-04-02 03:55:28 +00:00
Olivier Lamy abdad59483 add comment
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1583849 13f79535-47bb-0310-9956-ffa450edef68
2014-04-02 01:29:07 +00:00
Olivier Lamy ddfbb1c41e fix unit test
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1583229 13f79535-47bb-0310-9956-ffa450edef68
2014-03-31 01:30:16 +00:00
Olivier Lamy 90d0b07393 add a bit of caching here at least for released version
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582203 13f79535-47bb-0310-9956-ffa450edef68
2014-03-27 06:02:33 +00:00
Olivier Lamy 5719fa8827 format code
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582197 13f79535-47bb-0310-9956-ffa450edef68
2014-03-27 06:01:41 +00:00
Olivier Lamy 663de30beb [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1581635 13f79535-47bb-0310-9956-ffa450edef68
2014-03-26 02:40:25 +00:00
Olivier Lamy 477615ea47 [maven-release-plugin] prepare release archiva-2.0.1
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1581634 13f79535-47bb-0310-9956-ffa450edef68
2014-03-26 02:39:38 +00:00
Olivier Lamy 7156611df0 use assertj as fest-assert is not maintained anymore
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1581256 13f79535-47bb-0310-9956-ffa450edef68
2014-03-25 06:29:30 +00:00
skygo 764c9d6424 fix javadoc. Generation possible on jdk8
(fix html content + replace @todo with TODO  )

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1571532 13f79535-47bb-0310-9956-ffa450edef68
2014-02-25 02:01:14 +00:00
Olivier Lamy d5dfe85111 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1566005 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 12:07:59 +00:00
Olivier Lamy 57d85761a8 [maven-release-plugin] prepare release archiva-2.0.0
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1566004 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 12:07:08 +00:00
Olivier Lamy 4535901efd [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1566002 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 12:06:19 +00:00
Olivier Lamy 12722ebf9d [maven-release-plugin] prepare release archiva-2.0.0-RC3
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1566001 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 12:05:32 +00:00
Olivier Lamy f6b004c361 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1565998 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 12:04:34 +00:00
Olivier Lamy 8efe254c0f [maven-release-plugin] prepare release archiva-2.0.0-RC2
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1565997 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 12:03:45 +00:00
Olivier Lamy bd56eac0c4 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1565985 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 12:01:36 +00:00
Olivier Lamy 7c38ab4088 [maven-release-plugin] prepare release archiva-2.0.0-RC1
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1565984 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 12:00:46 +00:00
Olivier Lamy abf7ffaa6d change version to 2.0.0-RC1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1565974 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 11:59:09 +00:00
Olivier Lamy 28c5e2e323 fix issue when deleting project version non snapshot
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1558620 13f79535-47bb-0310-9956-ffa450edef68
2014-01-16 00:00:17 +00:00
Olivier Lamy 41eefa4f67 fixing browsing with typeahead
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1558609 13f79535-47bb-0310-9956-ffa450edef68
2014-01-15 23:32:28 +00:00
Olivier Lamy d2d596e7dc fix issue reported on the mailing list
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1556973 13f79535-47bb-0310-9956-ffa450edef68
2014-01-09 22:33:52 +00:00
Olivier Lamy dc6db7b475 last tomcat version 7.0.50
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1556661 13f79535-47bb-0310-9956-ffa450edef68
2014-01-08 22:20:16 +00:00
Olivier Lamy 59743128e8 use strict matching for model mapper
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1556150 13f79535-47bb-0310-9956-ffa450edef68
2014-01-07 08:55:08 +00:00
Olivier Lamy fcf4fb5a2e fix xml dependency
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1555680 13f79535-47bb-0310-9956-ffa450edef68
2014-01-06 05:32:53 +00:00
Olivier Lamy 4825f8eb88 remove use of old httpunit library
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1555665 13f79535-47bb-0310-9956-ffa450edef68
2014-01-06 05:30:35 +00:00
Olivier Lamy 04d1d172a6 fix mapping with modelmapper
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1553476 13f79535-47bb-0310-9956-ffa450edef68
2013-12-26 12:56:18 +00:00
Olivier Lamy bd07ace6fb fix timeout
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1552985 13f79535-47bb-0310-9956-ffa450edef68
2013-12-22 12:26:20 +00:00
Olivier Lamy 5743afc3ff add unit test
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1552983 13f79535-47bb-0310-9956-ffa450edef68
2013-12-22 12:25:55 +00:00