Commit Graph

3294 Commits

Author SHA1 Message Date
Rene Pfeuffer
97600b26e2 Check plugin dependencies after download 2020-01-23 17:02:53 +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
Sebastian Sdorra
3602976ff1 removed unnecessary plugin node wrapper
Removed PluginNodeHashWrapper and moved equals and hashCode logic into PluginNode
2020-01-16 10:27:34 +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
Rene Pfeuffer
96cda839f8 Simplify class 2020-01-15 14:00:20 +01:00
Rene Pfeuffer
c5520e6b07 Fix error handling on git push
Failing git push does not lead to an GitAPIException. Instead we have to
check the dedicated push update results.

By the way this adds a message for the internal repository exception.
2020-01-15 08:49:14 +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
Rene Pfeuffer
b6590673c0 Create mock subject to satisfy legman
The posted restart event will trigger legman to request the current
subject so that it can be passed over. This will lead to an exception
if no subject is registered. The subject itself is of no importance
here.

Reported here:
https://groups.google.com/d/msg/scmmanager/m4CfDE2n4h8/Yn6fddaYBgAJ
2020-01-13 10:56:47 +01:00
Sebastian Sdorra
6b62f0aab6 throw more specific PluginLoadException instead of generic RuntimeException 2020-01-09 08:20:47 +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
Sebastian Sdorra
3244e552a9 extension binder logs now to debug instead of info 2020-01-08 14:22:14 +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
Sebastian Sdorra
0374aad7a7 DefaultSyncAsyncExecutorProvider should be a Singleton 2019-12-13 13:46:20 +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
Sebastian Sdorra
a0dcb28497 merge repository heads 2019-12-12 11:35:12 +01:00
Sebastian Sdorra
1b7907d575 update mustache to 0.9.6-scm1 in order to fix a ClassLoader leak
see https://github.com/spullara/mustache.java/pull/240
2019-12-12 11:27:28 +01:00
Rene Pfeuffer
f7dc89ee81 Reload partial results 2019-12-11 15:49:33 +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
a37df2c20b Fix test helper 2019-12-11 12:58:01 +01:00
Rene Pfeuffer
9a8f0a4ee7 Use interfaces for executor classes 2019-12-11 12:42:21 +01:00
Rene Pfeuffer
11acf7ad21 Enable cache for browse results 2019-12-10 15:50:33 +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
d70948a650 log error messages, if startup fails 2019-12-04 10:48:34 +01:00
Rene Pfeuffer
516bbe6f26 Prepare for next development iteration 2019-12-02 15:15:34 +01:00
Rene Pfeuffer
2d08ba4adc Release version 2.0.0-rc1 2019-12-02 12:52:33 +01:00
Rene Pfeuffer
fc8677617b Disable StopThreadsCleanUp
When this is enabled, we get timeouts on some machines (seems to depend
on the number of cores) when the server is stopped which leads to an
error when the integration tests are run (the server cannot be stopped
fast enough when the integration tests are finished in webapp and shall
be started for scm-it).
2019-12-02 08:49:31 +01:00
Sebastian Sdorra
fe2370c863 merge with 2.0.0-m3 2019-11-28 08:15:23 +01:00
Sebastian Sdorra
9202e1c77c fixed wrong checksum field 2019-11-27 16:37:00 +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
6c023f7d56 Fix sonar issue 2019-11-25 14:15:43 +01:00
Rene Pfeuffer
450ed7bd4e Fix unit test 2019-11-25 08:15:13 +01:00
Rene Pfeuffer
aedf34c581 Postpone restart after plugin (de)installation 2019-11-22 15:43:58 +01:00
Sebastian Sdorra
ca8d5956e0 shutdown executor on context destroy 2019-11-21 16:23:04 +01:00
Sebastian Sdorra
2fde622560 reset resteasy StatisticsController to avoid ClassLoader leaks 2019-11-21 16:22:39 +01:00
Sebastian Sdorra
571f5aa421 destroy guice context from BootstrapContextListener 2019-11-21 16:21:52 +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
755b99f524 close CronThreadFactory to avoid thread leak 2019-11-21 16:17:30 +01:00
Sebastian Sdorra
ff7b8ca842 make ClassLoaderLeakPreventorFactory configurable and mark BootstrapClassLoader as shutdown 2019-11-21 16:16:15 +01:00
Rene Pfeuffer
1cd7983723 Merge with 2.0.0-m3 2019-11-21 07:39:28 +01:00
Rene Pfeuffer
67c21b18e3 Move translation key to correct file 2019-11-20 16:50:18 +01:00