Commit Graph

2611 Commits

Author SHA1 Message Date
Sebastian Sdorra
d49c07b992 change collection type hint from array of dto to CollectionDto 2018-08-02 13:20:37 +02:00
Johannes Schnatterer
aed70d3544 Git Plugin Config: Create fine-grained configuration permissions.
No more hard-coded isAdmin() checks.
Also adds more tests.
2018-08-01 16:21:05 +02:00
Johannes Schnatterer
e7ca81a6f4 Merge 2018-08-01 14:17:48 +02:00
Johannes Schnatterer
11e2112e80 Adds docs for config and me resources 2018-08-01 14:16:08 +02:00
Johannes Schnatterer
02327b55f3 Makes pom.xmls more DRY 2018-08-01 11:42:40 +02:00
René Pfeuffer
41170a1c83 Fix error for multiple creation of repositories 2018-08-01 11:40:09 +02:00
Johannes Schnatterer
35231fb202 Merged 2.0.0-m3 into feature/global_config_v2_endpoint 2018-08-01 10:30:38 +02:00
René Pfeuffer
44d96f29ad Initialize missing user database at startup 2018-08-01 09:59:23 +02:00
Sebastian Sdorra
ea17e536f1 change NamespaceStrategy signature to createNamespace(Repository)
This change allows us to implement NamespaceStrategies, such as by type (git, hg, svn) or manual defined.
The DefaultNamespaceStrategy accepts now a predefined namespace and only if no namespace was set the username of the currently logged in user is used.
2018-08-01 09:43:49 +02:00
Johannes Schnatterer
c3b7703f2b Merged 2.0.0-m3 into feature/global_config_v2_endpoint 2018-07-31 16:21:40 +02:00
Johannes Schnatterer
865929b328 Renames globalConfig to config.
From an SCMM point of view there is only one config, so no "global" necessary.
The others configs are provided by plugins.
2018-07-31 14:47:15 +02:00
Johannes Schnatterer
ca93735514 Return no content on PUT /config 2018-07-31 14:14:21 +02:00
Johannes Schnatterer
912dea6d6e Simplifies GlobalConfigDto.
Use camel case everywhere and no XML annotation.
2018-07-31 14:13:41 +02:00
Johannes Schnatterer
9aaca22942 DTO Config Mapper: Adds tests for all properties 2018-07-31 13:43:43 +02:00
Johannes Schnatterer
c7ce170513 Config DTO Mapper: Adds tests for all properties 2018-07-31 13:18:27 +02:00
Johannes Schnatterer
7572580ac1 Create fine-grained configuration permissions.
No more hard-coded isAdmin() checks.
2018-07-30 17:41:00 +02:00
Philipp Czora
ea5ef13cfb Added tests for AuthenticationResource 2018-07-30 17:07:22 +02:00
Sebastian Sdorra
dc0ed6b695 remove legacy exception handling from AuthenticationResource 2018-07-30 16:19:21 +02:00
Sebastian Sdorra
b8897b273a do not use IllegalArgumentException for parameter validation 2018-07-30 16:13:17 +02:00
Philipp Czora
f5033290e2 Extracted AuthenticationRequestDto into own class 2018-07-26 17:17:53 +02:00
Philipp Czora
66bc8b75c5 Added unit test for authentication resource 2018-07-26 15:04:50 +02:00
Philipp Czora
e1b3efb5ff Fixed unit test 2018-07-26 13:14:08 +02:00
Johannes Schnatterer
df282ee6a9 Merged 2.0.0-m3 into feature/global_config_v2_endpoint 2018-07-25 17:15:01 +02:00
Philipp Czora
11e7548d14 Merged heads 2018-07-24 13:42:51 +02:00
Philipp Czora
4352403631 Merged heads 2018-07-24 13:42:25 +02:00
Philipp Czora
3afd560028 Refactored /me-Resource 2018-07-24 13:02:50 +02:00
Sebastian Sdorra
1f60d76f7c fixed failing unit test 2018-07-24 12:56:58 +02:00
Sebastian Sdorra
e9d0cbbc94 merge with 2.0.0-m3 to get the new shiro-unit version 2018-07-24 08:01:15 +02:00
Sebastian Sdorra
525fa8333a update shiro-unit to 1.0.1 2018-07-24 07:52:01 +02:00
Sebastian Sdorra
0b03372ff9 merge with 2.0.0-m3 to have jenkins and sonarqube 2018-07-23 15:36:10 +02:00
Michael Behlendorf
064375c921 Merge remote branch 2018-07-17 13:58:42 +02:00
Michael Behlendorf
ada3d6679f Implement git config v2 endpoint 2018-07-17 13:39:55 +02:00
Sebastian Sdorra
90aff6b31f merge branch heads of 2.0.0-m3 2018-07-16 15:21:29 +02:00
Sebastian Sdorra
187384088b remove no longer required sonia.scm.url package 2018-07-16 14:17:05 +02:00
Sebastian Sdorra
25d1ac0821 uncomment the whole import block, to avoid sonarqube sonarqube mark it as bug 2018-07-16 13:38:57 +02:00
Sebastian Sdorra
1e37dfb3a7 use subscribe annotation of legman instead of guava eventbus 2018-07-16 11:26:00 +02:00
Michael Behlendorf
5dca6d402d Unbind security subject after tests 2018-07-16 11:04:47 +02:00
Sebastian Sdorra
a14e9e1182 merge with 2.0.0-m3 2018-07-16 10:36:29 +02:00
Sebastian Sdorra
82da801280 improve DefaultNamespaceStrategy, added tests and javadoc 2018-07-13 12:10:19 +02:00
Michael Behlendorf
39ec300ece Merged 2.0.0-m3 into feature/global_config_v2_endpoint 2018-07-13 11:38:12 +02:00
Michael Behlendorf
0c60df3ac6 Merge branch 2.0.0-m3 into feature/global_config_v2_endpoint 2018-07-13 11:13:43 +02:00
Sebastian Sdorra
64b86ad1b6 Merged in feature/jenkins_on_cloudbees (pull request #50)
Feature/jenkins on cloudbees
2018-07-13 09:04:09 +00:00
Johannes Schnatterer
4859be47b7 Sonar: Exclude complete legacy webapp.
This will be deleted soon and the new webapp will have its own module.
2018-07-12 12:05:59 +02:00
René Pfeuffer
43dbb6e0aa Merge with upstream 2018-07-12 11:31:55 +02:00
René Pfeuffer
76ad3dfc89 Fix unit test for delete with archive enabled 2018-07-12 11:00:32 +02:00
René Pfeuffer
9131764fbb Implement delete in ManagerDaoAdapter 2018-07-12 10:30:33 +02:00
René Pfeuffer
42543f6a47 Create NotFoundExceptions with id fields 2018-07-12 10:20:16 +02:00
René Pfeuffer
4e207713bf Introduce ManagerDaoAdapter for create and modify 2018-07-12 10:15:32 +02:00
René Pfeuffer
8593e1dc58 Fix creation date set to null on modify 2018-07-11 15:06:11 +02:00
René Pfeuffer
b1ed50affb Fix internal error when pushing an existing repository 2018-07-11 14:56:18 +02:00