Sebastian Sdorra
dda761ffc2
Fix unit tests on Java 11 ( #1483 )
...
The unit test I18nServlet and MultiParentClassLoaderTest are failing on Java 11.
This is because they mock ClassLoaders which cause a jvm error.
The following tickets describe the problem in more detail:
- https://bugs.openjdk.java.net/browse/JDK-8254969
- https://github.com/mockito/mockito/issues/2043
- https://github.com/mockito/mockito/issues/1696
2020-12-18 14:23:36 +01:00
René Pfeuffer
8e3b0e4145
Archive repository ( #1477 )
...
This adds a flag "archived" to repositories. Repositories marked with this can no longer be modified in any way. To do this, we switch to a new version of Shiro Static Permissions (sdorra/shiro-static-permissions#4 ) and specify a permission guard to check for every permission request, whether the repository in question is archived or not. Further we implement checks in stores and other activies so that no writing request may be executed by mistake.
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com >
2020-12-16 10:58:29 +01:00
Florian Scholdei
88b93dc8b8
Feature/profile navigation ( #1464 )
...
- Fix bug where profile settings wasn't shown if user cannot change password
- Add missing "ApiKey" entry in the single user menu
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com >
2020-12-16 09:23:05 +01:00
Konstantin Schaper
16c76285c0
add repository import via dump for subversion
...
Subversion repositories can be imported from dump files (backups). Just upload your dump file and check if your file is compressed on the import form for Subversion. The repository will be imported synchronously and you will be redirected to the new repository after the import is finished.
2020-12-14 11:46:35 +01:00
Eduard Heimbuch
a4f559f9c1
Downgrade Jenkins JDK version to Java 8 ( #1473 )
...
* Downgrade Jenkins JDK version to Java 8
The unit tests cannot run properly with Java 11.
We have to downgrade our image to use Java 8
instead until we have fixed this issue.
* Fix unit tests that have not been adapted during
the failed builds
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com >
2020-12-14 11:40:50 +01:00
Eduard Heimbuch
821cca2a06
cleanup
2020-12-10 16:22:39 +01:00
Eduard Heimbuch
097237734e
Append import bundle link to repository type if unbundle command is supported
2020-12-10 10:36:30 +01:00
Eduard Heimbuch
89add3f795
Add bundle endpoint to repository import resource
2020-12-10 10:27:03 +01:00
Sebastian Sdorra
0ade91ac85
Use mapper and improve validation
...
We have to use the repository mapper in order to fix missing fields contact and description in the created repository.
Use bean validation to ensure correct validation and require import url.
2020-12-03 11:06:53 +01:00
Eduard Heimbuch
60cdc6f8cf
Merge branch 'develop' into feature/import_git_from_url
2020-12-02 14:39:45 +01:00
Eduard Heimbuch
b40bfd8fe2
Merge branch 'develop' into feature/import_git_from_url
2020-12-01 12:18:13 +01:00
Konstantin Schaper
e8044747e3
fix review findings
2020-12-01 11:18:19 +01:00
Eduard Heimbuch
af9f6ab629
refactor UI
2020-12-01 08:53:56 +01:00
Konstantin Schaper
e18480ad2b
add permission check to hal links for tags
2020-11-30 15:25:29 +01:00
Konstantin Schaper
8986e3d378
Merge branch 'develop' into feature/manage-tags
...
# Conflicts:
# scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceProvider.java
2020-11-30 14:18:05 +01:00
Konstantin Schaper
7e46c3a491
wip fixes
2020-11-30 14:15:42 +01:00
Eduard Heimbuch
5468fddf90
improve event handling
2020-11-30 12:04:03 +01:00
Eduard Heimbuch
7ee8755dca
append import links as array
2020-11-30 11:31:41 +01:00
Eduard Heimbuch
8d96c5fdd2
fix event handling on repository import
2020-11-30 08:43:48 +01:00
Eduard Heimbuch
599639bc48
Append import link to repository type
2020-11-27 14:25:23 +01:00
Eduard Heimbuch
3265d1cefb
Enhance repository manager create api to perform actions after creation
2020-11-27 13:38:30 +01:00
Sebastian Sdorra
8ee8c8b351
Merge branch 'develop' into feature/hg_hooks_over_tcp
...
# Conflicts:
# CHANGELOG.md
2020-11-27 08:57:09 +01:00
Eduard Heimbuch
74fc70e942
add repository import event
2020-11-27 08:53:50 +01:00
Eduard Heimbuch
76cf2d801a
Merge branch 'develop' into feature/import_git_from_url
2020-11-26 14:01:19 +01:00
Eduard Heimbuch
9a06bc7d8a
add repository import event
2020-11-26 13:58:34 +01:00
Eduard Heimbuch
485138e5f2
add unit tests
2020-11-26 11:06:35 +01:00
Konstantin Schaper
84ea159741
add unit test for rest endpoints
2020-11-25 12:08:51 +01:00
Konstantin Schaper
d0feb7c22c
implement hg tag command and add rest endpoints
2020-11-25 11:29:06 +01:00
René Pfeuffer
8e7d0d87af
Validate 'plugins.json' files from core
2020-11-25 10:31:42 +01:00
René Pfeuffer
fc9176ec5a
No exception for missing file on cancelled installation
2020-11-24 18:31:18 +01:00
Eduard Heimbuch
308b95d8c7
Upgrade repository import api
2020-11-24 10:39:38 +01:00
Sebastian Sdorra
0841a0a409
Merge branch 'feature/hg_hooks_over_tcp' of github.com:scm-manager/scm-manager into feature/hg_hooks_over_tcp
2020-11-19 14:34:56 +01:00
Sebastian Sdorra
1311061c82
Pass transaction id from request to mercurial hooks
2020-11-19 14:30:39 +01:00
Sebastian Sdorra
29faa5ec6c
Fix review findings
2020-11-19 12:22:52 +01:00
Eduard Heimbuch
3132dbc0f8
remove obsolete tests
2020-11-19 09:50:35 +01:00
Eduard Heimbuch
4411e24ea7
add test
2020-11-17 12:57:49 +01:00
Eduard Heimbuch
65884a9168
Enhance trace api to set codes which are accepted as successful. This way requests can be traced as successful even if the response code is 4xx or 5xx.
2020-11-17 12:51:11 +01:00
Eduard Heimbuch
831aa09cff
Merge branch 'develop' into feature/delete_branches
2020-11-12 14:58:51 +01:00
René Pfeuffer
01a5dbd091
Show messages from native scm protocol
2020-11-12 11:41:04 +01:00
Eduard Heimbuch
bb82c18e2b
add delete link to branchDto
2020-11-11 14:09:15 +01:00
Eduard Heimbuch
2fab771740
create endpoint for branch deletion
2020-11-10 15:41:13 +01:00
Konstantin Schaper
7b24a4e95c
Merge branch 'develop' into bugfix/api-key-to-access-token
2020-11-05 10:14:52 +01:00
Sebastian Sdorra
423402e62b
Add option to disable request tracing
2020-11-04 09:44:08 +01:00
Konstantin Schaper
3dd0272c4a
Merge branch 'bugfix/api-key-to-access-token' of github.com:scm-manager/scm-manager into bugfix/api-key-to-access-token
2020-11-04 09:38:46 +01:00
Konstantin Schaper
b5f042ad15
use preexisiting scope by default but prevent overriding of builder scope and update unit tests
2020-11-04 09:38:29 +01:00
Sebastian Sdorra
5694a89589
Set span kinds for internal requests
2020-11-04 09:37:24 +01:00
Sebastian Sdorra
b91d9e6b60
Add exception class to failed span of AdvancedHttpClient
2020-11-04 08:55:23 +01:00
Sebastian Sdorra
3c32073853
Merge with develop
2020-11-04 08:22:41 +01:00
Konstantin Schaper
616e1efc97
Merge branch 'develop' into bugfix/api-key-to-access-token
2020-11-03 14:48:39 +01:00
Konstantin Schaper
621ed5b827
update unit test name
2020-11-03 14:43:06 +01:00