Commit Graph

2018 Commits

Author SHA1 Message Date
Rene Pfeuffer
882a25936d Add parsed diff endpoint for incoming diffs 2020-01-24 14:08:29 +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
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
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
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
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
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
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
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
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
49bdf18fb0 fix integration tests 2019-11-20 08:24:42 +01:00
Eduard Heimbuch
fd75277176 cleanup 2019-11-19 16:43:45 +01:00
Eduard Heimbuch
aa7b6f5282 only migrate public flag if repository-v1-xml-backup 2019-11-19 15:42:22 +01:00
Eduard Heimbuch
e432d6d210 refactor 2019-11-19 14:23:05 +01:00
Eduard Heimbuch
2ec98c2763 remove repository public flag 2019-11-19 14:04:47 +01:00
Eduard Heimbuch
dd8f84e7c4 implement repository public flag migration to repositoryPermissions for _anonymous user 2019-11-19 13:50:57 +01:00
Eduard Heimbuch
0abb2e108d Merged in bugfix/missing_styles (pull request #353)
create separate styles bundle
2019-11-18 13:20:16 +00:00
Eduard Heimbuch
c6ba50b3b5 fix path for loading migration styles 2019-11-18 14:18:37 +01:00