Commit Graph

129 Commits

Author SHA1 Message Date
Rene Pfeuffer
ada575d871 Add queryable store with SQLite implementation
This adds the new "queryable store" API, that allows complex
queries and is backed by SQLite. This new API can be used
for entities annotated with the new QueryableType annotation.
2025-04-01 16:18:04 +02:00
Viktor Egorov
19930804a0 Add Configuration to JWT lifetime length 2025-02-25 13:16:27 +01:00
Florian Scholdei
dd7b07aeaf Retry failing integration tests
This uses 'RetryingTest' from junit jupiter to retry integration tests
that are known to fail from time to time. We explicitly mark single
tests in contrast to set a global retry to be able to trace those,
whenever this is intended.
2025-02-03 16:28:30 +01:00
Rene Pfeuffer
4ebf0e2044 Adds 'head' as revision for Subversion repositories
To still support the editor plugin, a new field in the
browse command results is needed to indicate, whether
such a result or rather the requested revision can be
modified by a new commit.

This is the case, when
- for Subversion repositories either the new 'head' or the
latest revision has been requested, or
- for Git and HG when a branch (or the default by specifying
no concrete revision) has been used.
2024-11-05 10:54:49 +01:00
Rene Pfeuffer
e6433d01d1 Change to GNU Affero General Public License v3.0 2024-09-24 09:42:07 +02:00
Rene Pfeuffer
48b4978a3b Fix privilege escalation in namespaces
This fixes the following security issue:
If a user creates a new repository in a namespace this user had no permission to read any repository from, the user gets OWNER permissions on this namespace and all other permissions are removed from this namespace.

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-07-05 12:24:24 +02:00
Laura Gorzitze
d8e1f2d739 Cleanup Code
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-02-06 14:54:00 +01:00
Eduard Heimbuch
cf4d9cf20f 3.x
Committed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Pushed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-30 17:02:44 +01:00
Rene Pfeuffer
4491f8894f Make flappy integration test case retrying 2023-11-13 11:41:44 +01:00
Rene Pfeuffer
68110ee6b3 Retry failing integration tests
This uses 'RetryingTest' from junit jupiter to retry integration tests that are known to fail from time to time. We explicitly mark single tests in contrast to set a global retry to be able to trace those, whenever this is intended.

To do so, we have to update to the latest version of JUnit. Unfortunately, this brought a new behaviour for the @TempDir annotation: In contrast to the former behaviour where for one test all annotated parameters got the same directory, in the new version the parameters get different directories assigned. This led to the need of some consolidation between @BeforeEach methods and the related tests.

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-03-22 06:24:33 +01:00
René Pfeuffer
6ec8041b8c Replace default scm-manager.org mail address 2022-12-12 10:28:14 +01:00
Eduard Heimbuch
67c083ee54 Reduce code smells (#2089)
Reduce code smells found by deepsource.io. We focused on the low-hanging fruits and not breaking any api.
2022-07-15 15:33:37 +02:00
René Pfeuffer
6e555a855a Set HEAD to correct default branch (#1929)
Sets the HEAD for new Git repositories to the default branch (this is 'main' for the default configuration).
This change led to errors in unit tests, that depended on the 'master' branch.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2022-01-20 10:19:27 +01:00
René Pfeuffer
b6d343bf09 Make auth expiration for LFS configurable (#1697)
When SCM-Manager is used behind a reverse proxy like
Nginx it may be the case, that lfs PUT requests are
buffered by the reverse proxy and will be sent to the
SCM-Manager after the whole file has been received. Due
to the expiration time of 5 minutes for the authentivation
token that had been requested by Git before the upload
has been started, this request from the proxy to
SCM-Manager fails if the upload from the client to the
reverse proxy took longer than these 5 minutes.

To solve this, we make this expiration time configurable,
so that whenever you have very large files or small
bandwidth the expiration timeout can be increased.
2021-06-16 09:14:52 +02:00
Eduard Heimbuch
73c1609d92 Add flag to global config to enable/disable api keys as additional authentication method (#1606)
Add flag to global config to enable/disable API keys as additional authentication method.

Fixes #1599
2021-03-25 12:06:22 +01:00
René Pfeuffer
512bf20659 Run JUnit 5 integration tests again (#1571)
With the migration to gradle we lost the JUnit 5 integration tests. This is fixed here. In addition we have to adapt the AnonymousAccessITCase to the change, that the anonymous access is disabled when creating the default test data.
2021-03-05 15:08:20 +01:00
Konstantin Schaper
94304f96a3 migrate integration tests to bdd (#1497)
Migrates the existing e2e tests towards a cucumber bdd-style and utilizes the integration-test-runner package.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2021-01-26 12:58:48 +01:00
René Pfeuffer
32e09f5874 Revert "Try to prevent flappy integration test failures"
This reverts commit ccbd56e625.
2021-01-18 10:52:08 +01:00
René Pfeuffer
ccbd56e625 Try to prevent flappy integration test failures
Some integration tests tend to fail from time to time with
a server side error reading packed objects. This is kind
of a desperate try to fix these.
2021-01-15 15:32:18 +01:00
René Pfeuffer
e9410c6c3f Clean up before running old it cases from webapp 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
bac430163f Fix missing resources for integration tests 2021-01-14 12:01:34 +01:00
Sebastian Sdorra
6b30da247a Move scm-webapp integration tests to scm-it 2021-01-14 12:01:34 +01:00
Konstantin Schaper
11ebba349c fix integration test 2020-11-27 13:08:42 +01:00
Konstantin Schaper
a6667b0ffd update integration test 2020-11-04 10:00:28 +01:00
René Pfeuffer
8f13f3203d Fix integration test 2020-10-30 14:24:31 +01:00
René Pfeuffer
4200aa1225 Add integration test for api keys 2020-10-05 10:53:30 +02:00
René Pfeuffer
af9e2529ca Adapt test to additional 'date' attribute in tag object 2020-09-03 14:26:58 +02:00
Eduard Heimbuch
a9bf3c54e6 merge with develop 2020-08-10 11:39:18 +02:00
René Pfeuffer
264ad2bef1 Migrate to JUnit 5 2020-08-07 17:25:23 +02:00
René Pfeuffer
2433c50d64 Add test for "real" merge commits 2020-08-07 08:01:13 +02:00
René Pfeuffer
6f20781812 Add first integration tests for merge detection 2020-08-06 17:12:14 +02:00
Eduard Heimbuch
7dc13b1168 add integration tests 2020-08-04 13:31:37 +02:00
Eduard Heimbuch
b926238e03 enhance anonymous access from two state mode to three state mode 2020-08-03 14:40:39 +02:00
Sebastian Sdorra
081e6f5185 relax test pattern to not fail if there are no millis on the creation date 2020-07-03 11:08:43 +02:00
René Pfeuffer
7636f1e845 Remove temp dir extension and use native junit annotation 2020-05-24 16:05:20 +02:00
René Pfeuffer
b12b1ca5fe Update rest assured version 2020-05-19 21:57:55 +02: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
Rene Pfeuffer
3a3c27bb67 Enhance logging for diff comparison 2019-11-19 09:26:01 +01:00
Rene Pfeuffer
20338c1bb6 Add integration tests for anonymous access 2019-10-17 11:53:23 +02:00
Rene Pfeuffer
3e2c8b7c4b Remove archive flag 2019-08-20 14:23:52 +02:00
Eduard Heimbuch
e33b4dc9fc removed unused method 2019-08-02 14:46:58 +02:00
René Pfeuffer
66b8187804 Fix integration test 2019-05-08 12:54:32 +02:00
René Pfeuffer
c5b20566c1 Fix bugs with integration test 2019-05-07 09:20:19 +02:00
René Pfeuffer
424120c964 Delete unused methods 2019-03-21 13:13:12 +01:00
Sebastian Sdorra
691f84a801 removes comments which are not useful without the context of the current change 2019-03-21 13:04:53 +01:00
Sebastian Sdorra
1179fd37fa fixes integration tests, which are relying on the admin flag 2019-03-13 15:56:40 +01:00
Sebastian Sdorra
8bf82213b8 remove unused imports 2019-01-30 14:48:37 +01:00
Sebastian Sdorra
eba07dc006 merge repository heads 2019-01-29 16:01:36 +01:00
Sebastian Sdorra
428734e0c7 port GitNonFastForwardITCase from scm-webapp to scm-it 2019-01-29 13:36:13 +01:00
René Pfeuffer
6bf216d379 Rename media type 2019-01-23 11:19:55 +01:00