Commit Graph

1004 Commits

Author SHA1 Message Date
Sebastian Sdorra
56b8dbdb22 Reimplement restarting of scm-manager
SCM-Manager tries now to figure out which is the best strategy for the restart.
It chooses from one of the following strategies:

* PosixRestartStrategy which uses native LibC
* ExitRestartStrategy uses System.exit and relies on external mechanism to start again
* InjectionContextRestartStrategy destroys and re initializes the injection context
2020-02-12 12:13:10 +01:00
Sebastian Sdorra
71c5f68878 implemented simple ClassLoaderLifeCycle to fix integration tests on Java > 8 2020-02-04 15:59:11 +01:00
Sebastian Sdorra
a36551597d fix deprecation warning of Jackson ISO8601DateFormat 2020-02-04 15:27:30 +01:00
Rene Pfeuffer
931133353d Add detection of circular dependencies 2020-01-31 12:27:02 +01:00
Rene Pfeuffer
f92ea41ca3 Fix order of plugin nodes 2020-01-31 11:47:32 +01:00
René Pfeuffer
bc112f8e1a Merge with default 2020-01-28 07:37:55 +01:00
Rene Pfeuffer
02a9dafee4 Append self links to parsed diff results 2020-01-24 16:31:31 +01:00
Rene Pfeuffer
868cfb4a0a Fix class name 2020-01-24 12:01:21 +01:00
Sebastian Sdorra
27c7c572f6 adjust unit tests to new language detection 2020-01-24 08:28:46 +01:00
Rene Pfeuffer
97600b26e2 Check plugin dependencies after download 2020-01-23 17:02:53 +01:00
Sebastian Sdorra
09bde1e3bb use aceMode or codemirrorMode to determine programming language 2020-01-23 16:26:13 +01:00
Sebastian Sdorra
fe8e4db10b added diff endpoint which returns a parsed diff as json 2020-01-22 15:49:50 +01:00
Eduard Heimbuch
f44d17d640 create RepositoryInitializer which can be used to create new files in the initial commit on a new repository 2020-01-20 15:19:51 +01:00
Rene Pfeuffer
2d755aae9a Fix plugin load order
The old algorithm failed, because the tree below lead to the issue, that
the scm-branchwp-plugin was loaded before the scm-review-plugin was
ready.

This commit changes the order in the way, that leafs are loaded last.

+- scm-editor-plugin d
   +- scm-branchwp-plugin a
+- scm-mail-plugin c
   +- scm-review-plugin b
      +- scm-branchwp-plugin a
   +- scm-branchwp-plugin a
2020-01-16 08:56:57 +01:00
Sebastian Sdorra
1cade825af enable xrfs protection only on write request
This change is required in order to fix the image viewer and download of editor plugin
2020-01-14 13:28:17 +01:00
Sebastian Sdorra
c1aa4af6e0 implemented optional dependencies
Plugin authors could now define optional dependencies to other plugins in their pom.
Extensions which are using classes from optional dependencies must specify this
with the "requires" attribute of the extension annotation.
Extensions with "requires" attribute are not installed if one of the specified plugins,
is not installed.
2020-01-08 14:27:11 +01:00
Rene Pfeuffer
cf9d1edb70 Make partial file attributes explicit. 2019-12-18 11:48:17 +01:00
Rene Pfeuffer
0d6dcbd6bd Merge with default 2019-12-17 14:14:34 +01:00
Eduard Heimbuch
03425b9e8a Merged in feature/assign_ui_session_id (pull request #377)
API-Client Support for SSE and Toast Components
2019-12-13 12:21:07 +00:00
Rene Pfeuffer
4fd2a0dd23 Small API changes 2019-12-12 16:13:36 +01:00
Rene Pfeuffer
8df43e7b4e Let background computations abort for browse command 2019-12-12 11:47:03 +01:00
Rene Pfeuffer
58cff0797b Remove redundant mapper
FileObjectToFileObjectDtoMapper#map and
BrowserResultToFileObjectDtoMapper#fileObjectToDto had the same
mapstruct implementation.
2019-12-11 15:09:53 +01:00
Rene Pfeuffer
7c0eb9251a Add unit test 2019-12-11 13:00:07 +01:00
Rene Pfeuffer
4a782db1fa Implement test 2019-12-06 14:44:50 +01:00
Rene Pfeuffer
d0f8e4ccf2 Rename utility class 2019-12-05 17:43:21 +01:00
Rene Pfeuffer
e363f057b2 Merge with bugfix/classloader_leak 2019-12-05 17:04:27 +01:00
Sebastian Sdorra
33833994d3 merge with default branch 2019-12-05 16:14:44 +01:00
Rene Pfeuffer
11391f2f64 Merge with default 2019-12-05 10:53:33 +01:00
Sebastian Sdorra
854e42a609 merge with default branch 2019-11-27 15:01:09 +01:00
Rene Pfeuffer
6bf86fab8d Introduce abstraction layer for RESTeasy mock dispatcher 2019-11-25 17:04:58 +01:00
Rene Pfeuffer
75b43ef453 Merge with 2.0.0-m3 2019-11-25 14:35:47 +01:00
Rene Pfeuffer
450ed7bd4e Fix unit test 2019-11-25 08:15:13 +01:00
Sebastian Sdorra
d1a5f6f24b fix wrong ClassLoader for Delayed-Restart Thread, which has caused an ClassLoader leak.
Also added system properties to configure shutdown only, wait between stop and start and possibility to disable gc.
2019-11-21 16:20:55 +01:00
Sebastian Sdorra
ff7b8ca842 make ClassLoaderLeakPreventorFactory configurable and mark BootstrapClassLoader as shutdown 2019-11-21 16:16:15 +01:00
Eduard Heimbuch
906c27ebba create scmadmin also if only _anonymous user exists 2019-11-20 11:42:32 +01:00
Sebastian Sdorra
9e9df35fdb upgrade resteasy, legman and hibernate-validator
* resteasy from 3.6.2.Final to 4.4.1.Final
* legman from 1.5.1 to 1.6.0
* hibernate-validator from 5.3.6.Final to 6.1.0.Final
2019-11-20 10:57:32 +01:00
Eduard Heimbuch
18c94352cf cleanup 2019-11-20 08:36:18 +01:00
Eduard Heimbuch
aa7b6f5282 only migrate public flag if repository-v1-xml-backup 2019-11-19 15:42:22 +01:00
Eduard Heimbuch
dd8f84e7c4 implement repository public flag migration to repositoryPermissions for _anonymous user 2019-11-19 13:50:57 +01:00
Sebastian Sdorra
999a3476e6 move to scm-webapp 2019-11-18 13:28:28 +01:00
Sebastian Sdorra
42ab81cf50 implement ui client session id
This changeset introduces a client side session id, which is generated
once by the client (ui: apiClient) and is send with each request to server.
The server makes the session id available by the PrincipalCollection of the
subject.
2019-11-13 14:03:48 +01:00
Eduard Heimbuch
313ec7fe5d fix dependencies after removing mergeResource 2019-11-08 13:10:31 +01:00
Eduard Heimbuch
b1216a898b remove mergeResource and move dryRun to review-plugin 2019-11-08 11:46:13 +01:00
Eduard Heimbuch
48154cce0f fix unit tests 2019-10-29 13:49:04 +01:00
Eduard Heimbuch
52c3c1d7f8 add enricher for browserResult mapping 2019-10-28 15:21:24 +01:00
Sebastian Sdorra
8a6f862d3d Merged in feature/lfs_over_ssh (pull request #336)
Feature LFS over ssh
2019-10-22 12:01:38 +00:00
Sebastian Sdorra
10fbf50263 fix wrong OutOfScopeException detection 2019-10-22 11:23:34 +02:00
Sebastian Sdorra
52f471b5dd fix lfs authentication via ssh command and enabled xsrf protection 2019-10-22 10:50:49 +02:00
Eduard Heimbuch
74a89a7130 fix missing anon exception 2019-10-18 11:31:15 +02:00
Eduard Heimbuch
1af4acabbe add missing check if anonymous access is enabled but anonymous user doesn't exists 2019-10-18 09:43:03 +02:00