Commit Graph

42 Commits

Author SHA1 Message Date
Sebastian Sdorra
4ad01c210f remove error prone InjectionContextRestartStrategy 2020-03-25 08:38:13 +01:00
Sebastian Sdorra
b97dfd7ded added missing license headers 2020-03-24 10:19:10 +01:00
Sebastian Sdorra
967c802588 merge with develop 2020-03-24 10:17:57 +01:00
Florian Scholdei
f1b34eb502 Changeover to MIT license (#1066)
* prepare license-maven-plugin for license migration
* added license mapping for tsx files and added some more excludes
* Changeover to MIT license
* Fix build problems
* Delete old remaining licenses
* Add more exclude path for license checker
* Rename included netbeans license, add exclude .m2/repository/
* Specify .m2 exclude because not only repository/, also wrapper/ must match
* Add .cache/ exclude for license check
* Modify formatting of license in java classes to comply with convention and IDE
* Add IntelliJ documentation for license configuration
* Update CHANGELOG.md
* Exclude tmp/workspace/ dir for license check
* Edit README.md

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2020-03-23 15:35:58 +01:00
Sebastian Sdorra
de3db6252e implemented restarter to move control over the restart process to the core 2020-02-12 14:45:13 +01:00
Sebastian Sdorra
bca34b829d use SimpleClassLoaderLifeCycle by default 2020-02-12 12:36:37 +01:00
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
Rene Pfeuffer
ab169670f0 Fix JavaDoc 2020-02-06 09:58:49 +01:00
Sebastian Sdorra
71c5f68878 implemented simple ClassLoaderLifeCycle to fix integration tests on Java > 8 2020-02-04 15:59:11 +01:00
Rene Pfeuffer
9a8f0a4ee7 Use interfaces for executor classes 2019-12-11 12:42:21 +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
Rene Pfeuffer
75b43ef453 Merge with 2.0.0-m3 2019-11-25 14:35:47 +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
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
Sebastian Sdorra
5ea3c53613 create separate styles bundle 2019-11-18 10:56:40 +01:00
Eduard Heimbuch
18cb7020d0 implement anonymous realm // use constant for _anonymous user 2019-10-10 13:40:40 +02:00
Eduard Heimbuch
8556278533 create _anonymous user when anonymous access activated and user does not exist yet / also create _anonymous user on system start if required 2019-10-09 15:45:32 +02:00
Rene Pfeuffer
7e85f374ab Close file stream 2019-09-18 11:02:43 +02:00
Rene Pfeuffer
7ec2b0c31d Delete plugins marked for uninstall 2019-09-16 14:27:56 +02:00
Sebastian Sdorra
1a01216f62 renamed Plugin to InstalledPluginDescriptor and added PluginDescriptor interface 2019-08-20 08:05:41 +02:00
Sebastian Sdorra
ae19ad9327 renamed PluginWrapper to InstalledPlugin 2019-08-20 07:54:00 +02:00
Eduard Heimbuch
ef0c57b83f bind GroupCollector to DefaultGroupCollector 2019-08-02 09:55:30 +02:00
Sebastian Sdorra
2cdcf78c91 Merged in feature/redirect_migrated_repositories (pull request #277)
Feature redirect migrated repositories
2019-07-08 09:38:17 +00:00
Eduard Heimbuch
97c10a867c merged 2019-07-05 08:03:55 +02:00
René Pfeuffer
dc7407d6e5 Fix guice binding 2019-07-03 07:58:38 +02:00
René Pfeuffer
c35363b79f Store repository id in git config for each repository
This is needed after migration from v1 to v2 and is done in
GitV1UpdateStep.java. Therefore we hat to make the 'forAllPaths' method
in PathBasedRepositoryLocationResolver available in the interface of
RepositoryLocationResolver.
2019-07-03 07:48:06 +02:00
René Pfeuffer
f631dc1724 Redirect protocol requests for migrated repositories
- Make old repository name and id available to plugins (MigrationDAO)
- Build Map with paths of migrated repositories to new location
- Implement redirect (RepositoryLegacyProtocolRedirectFilter)
2019-07-02 10:46:26 +02:00
René Pfeuffer
7db3350439 Migrate git LFS blob directory 2019-07-01 14:17:32 +02:00
René Pfeuffer
67f9dcc5cf Add logging if previous version is too old 2019-06-27 10:17:34 +02:00
Sebastian Sdorra
c7700a8ddd remove SunAwtAppContextInitiator, because it cases a lot of exceptions 2019-06-26 15:52:54 +02:00
Sebastian Sdorra
572caedd73 remove mutable field from servlet, use servletcontext attribute instead of field instance 2019-06-26 14:46:14 +02:00
Sebastian Sdorra
bc4d6bfa74 merge with 2.0.0-m3 2019-06-26 09:27:52 +02:00
Sebastian Sdorra
30503158dd remove unused constants and indent 2019-06-25 13:22:32 +02:00
Sebastian Sdorra
80febf9424 added modules, classloading and view packages to sonia.scm.lifecycle 2019-06-25 09:49:52 +02:00
Sebastian Sdorra
c7365b74da move StaticResourceServlet to package sonia.scm 2019-06-25 08:41:02 +02:00
Sebastian Sdorra
99f1c8c55e rename package sonia.scm.boot to sonia.scm.lifecycle 2019-06-25 08:36:57 +02:00