Commit Graph

1075 Commits

Author SHA1 Message Date
René Pfeuffer
24c7cb0b67 Ensure that context is destroyed on restart 2020-03-26 07:24:58 +01:00
René Pfeuffer
7247a81c9d Use exceptions with explicit messages 2020-03-25 15:31:20 +01:00
Sebastian Sdorra
88a851d817 do not create config.xml during unit test 2020-03-25 09:45:23 +01:00
Sebastian Sdorra
4ad01c210f remove error prone InjectionContextRestartStrategy 2020-03-25 08:38:13 +01:00
Sebastian Sdorra
fbc86e7d33 show execute and restart button only if restarting is supported 2020-03-24 15:58:33 +01:00
Sebastian Sdorra
2873c44b52 show restart checkbox only if restarting is supported 2020-03-24 15:01:39 +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
René Pfeuffer
8e983265a6 Merge pull request #1065 from scm-manager/feature/use_buildin_eventsource
Feature use built-in eventsource
2020-03-23 09:59:13 +01:00
René Pfeuffer
f5cfd0ca68 Adapt unit test to new mockito api 2020-03-20 11:44:28 +01:00
Sebastian Sdorra
f8f5aa2ebd X-SCM-Session-ID and X-SCM-Client could now be send via query parameter
The use of query parameters is required for SSE, because the standard does not support header.
This works currently only for GET request to avoid parsing of request body.
2020-03-20 11:10:05 +01:00
René Pfeuffer
b8ab729c45 Merge branch 'develop' into feature/browse_commit_with_limit 2020-03-09 08:40:29 +01:00
Sebastian Sdorra
7785ea2d68 Merged in bugfix/openapi_errors (pull request #417)
prevent using same classloader multiple times
2020-03-04 08:31:08 +00:00
Sebastian Sdorra
1160702ede merge with default branch 2020-03-03 16:00:30 +01:00
Sebastian Sdorra
f6368360c7 try to fix flappy unit tests, by using awaitility instead of Thread.sleep 2020-03-03 15:15:17 +01:00
Eduard Heimbuch
04d480684a prevent using same classloader multiple times 2020-03-03 10:39:07 +01:00
Eduard Heimbuch
b6208240ab remove obsolete repository fields 2020-03-02 11:18:57 +01:00
Rene Pfeuffer
6b3f36e7ea WIP 2020-02-18 17:56:22 +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
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