Commit Graph

4217 Commits

Author SHA1 Message Date
Rene Pfeuffer
39b5ff36df Harmonize swagger versions
Squash commits of branch dependency/swagger:

- Harmonize swagger versions
2025-08-21 10:36:43 +02:00
Thomas Zerr
8a8d18c33e Add Fast Forward Only Strategy 2025-08-19 11:48:54 +02:00
Rene Pfeuffer
ed843e0a76 Bump pgp 2025-08-14 14:58:26 +02:00
Rene Pfeuffer
ec9e32bdab Bump Eclipse transformer library 2025-08-14 14:52:47 +02:00
Rene Pfeuffer
57f15f3ac4 Set Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers 2025-08-11 09:08:28 +02:00
Rene Pfeuffer
605d77e383 Fix hg import/export issues 2025-07-07 15:13:50 +02:00
Thomas Zerr
20743c29da Change default time zone for cron expressions
Squash commits of branch feature/cron-using-system-time-zone:

- Change default time zone for cron expressions
2025-06-26 14:47:23 +02:00
Rene Pfeuffer
4b49748561 Introduce HikariCP as connection pool
Squash commits of branch feature/hikari:

- Introduce HikariCP as connection pool

- Log change

- Close maintenance stores correctly

- Do not force minimum number of connections

- Log change

- Assert stores are closed correctly

... and test QueryableStoreDeletionHandler

- Fix license

- Fix unit tests

- Use constants

- Change change log

- Move hikari version to libraries

- Enhance documentation

- Use configuration for pool settings
2025-06-19 09:41:03 +02:00
Florian Scholdei
a2afc40432 Remove plugin center authentication
Squash commits of branch feature/remove_plugin_center_auth:

- Remove plugin center authentication

- Fix i18n file

- Fix tests

- Changelog entry
2025-06-11 10:58:57 +02:00
Till-André Diegeler
6165bd3d63 Revert "Remove plugin center authentication"
This reverts commit d353c9a96b.
2025-06-06 11:27:16 +02:00
Florian Scholdei
d353c9a96b Remove plugin center authentication
Squash commits of branch feature/remove_plugin_center_auth:

- Remove plugin center authentication

- Fix i18n file

- Fix tests

- Changelog entry
2025-06-05 09:31:55 +02:00
Rene Pfeuffer
ee72034912 Configure logging earlier in time
Doing so, all log output will heed the configured log levels.
2025-05-27 11:33:12 +02:00
Thomas Zerr
63a936d5e2 Add anonymous health check endpoint
Besides the endpoint, another API was added, the ShouldRequestPassChecker.
This api should be used to check whether a REST Request should be passed or rejected.
2025-05-02 14:00:05 +02:00
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
Till-André Diegeler
d5362d634b Fix javadoc errors
Tasks.documentation.javadoc threw around 50 errors due to multiple inconsistencies within the javadoc comments.

Furthermore, the option 'failOnError' is now set to 'true' so that future Javadoc errors in our codebase are avoided.
2025-03-25 00:05:14 +01:00
Viktor Egorov
9be59bd83f Assert minimum JWT expiration time 2025-03-07 12:01:57 +01:00
Thomas Zerr
6d2ec8a70a Add API for updating RepositoryPermissions
Squash commits of branch feature/permission-updater:

- Add API for updating RepositoryPermissions

- Add licensing and logging

- Fix assertion depending on the order of item serialization

- Replace manual logger setup with @Slf4j annotation
2025-03-03 11:16:10 +01:00
Till-André Diegeler
f0f7e922bf Introduce Git Revert functionality to SCM-Manager 2025-02-27 11:11:57 +01:00
Viktor Egorov
19930804a0 Add Configuration to JWT lifetime length 2025-02-25 13:16:27 +01:00
René Pfeuffer
e7abde8322 Merge branch 'main' into develop 2025-01-17 19:54:54 +01:00
René Pfeuffer
bcfb58aa3b Merge remote-tracking branch 'origin/support/2.48.x' into support/3.6.0 2025-01-17 18:35:50 +01:00
René Pfeuffer
12b291f7e5 Merge branch 'support/2.46.x' into support/2.48.x 2025-01-17 16:24:06 +01:00
Rene Pfeuffer
7b74224a80 Remove exception log for api token errors
Printing the exception may reveal details about the password.
2025-01-17 14:46:17 +01:00
René Pfeuffer
e615bc32ad Log exception in default branch delete protection 2024-12-28 17:50:56 +01:00
Till-André Diegeler
f12722b70f Update Jackson to 2.18.2
A minor change in a test class was necessary; cf. https://github.com/FasterXML/jackson-databind/issues/4499

Co-authored-by: Till-André Diegeler<till-andre.diegeler@cloudogu.com>
2024-12-13 14:10:19 +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
afdaee0442 Add tag guard 2024-10-16 16:14:22 +02:00
Viktor Egorov
b0521d2c4f Add provider for source links
Pushed-by: Viktor Egorov<viktor.egorov-extern@cloudogu.com>
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: Viktor<viktor.egorov@triology.de>
Co-authored-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-09-30 09:43:49 +02:00
René Pfeuffer
35aec03814 Merge branch 'main' into develop 2024-09-24 11:53:23 +02:00
Rene Pfeuffer
e6433d01d1 Change to GNU Affero General Public License v3.0 2024-09-24 09:42:07 +02:00
Rene Pfeuffer
a5d9992e65 Set X-Frame-Options to 'sameorigin'
We need this setting to be able to display PDF files in the file view in Firefox (Chrome does this nonethelss, only Firefox seems to have a problem without this header).

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-09-23 10:24:14 +02:00
Viktor Egorov
f95579c102 Add missing change types to diff statistics 2024-09-20 10:04:23 +02:00
Thomas Zerr
8f0ed74b7a Add table to diff view
Pushed-by: Florian Scholdei<florian.scholdei@cloudogu.com>
Pushed-by: Viktor Egorov<viktor.egorov-extern@cloudogu.com>
Pushed-by: k8s-git-ops<admin@cloudogu.com>
Committed-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Co-authored-by: Viktor<viktor.egorov@triology.de>
Co-authored-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Thomas Zerr<thomas.zerr@cloudogu.com>
2024-09-16 17:52:10 +02:00
Rene Pfeuffer
6f9db230a7 Update java test libraries 2024-08-29 18:42:25 +02:00
Thomas Zerr
316d03ad1a Fix logging
With this change,
- logs are only written to console when the server is started in foreground (prevents writing to scm-server.out file)
- the location of the log file is determined correctly, when it is configured with a relative path
- less logs are written to console on startup
- enabling file and console appenders via config.yml
2024-08-26 16:25:15 +02:00
Thomas Zerr
5d908b29d6 Improve Java Test compilation time
Co-authored-by: Sebastian Sdorra<sebastian.sdorra@cloudogu.com>
Co-authored-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Sebastian Sdorra<sebastian.sdorra@cloudogu.com>
2024-08-23 10:30:49 +02:00
Thomas Zerr
090178a3dd Update env variable docs 2024-08-20 17:31:44 +02:00
Thomas Zerr
39e8f66565 Add logging for the used scm-manager core version 2024-08-13 16:15:30 +02:00
Tarik Gürsoy
797bda4bbb Add statistics for diffs (added, deleted, modified)
Extend the diff result from the diff command to include modified,
added and deleted file count and add DiffStats component to
ui-components.

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Pushed-by: Tarik Gürsoy<tarik.guersoy@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: Tarik Gürsoy<tarik.guersoy@cloudogu.com>
2024-08-01 16:54:40 +02:00
Rene Pfeuffer
48b4978a3b Fix privilege escalation in namespaces
This fixes the following security issue:&#10;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
b12f4d579a Notification if external user management is activated
A notification will be displayed when an external user
management system is activated to inform that users
created within the SCMM will not be transferred to the
external system.

Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-07-04 09:05:17 +02:00
René Pfeuffer
e29d30c578 Merge branch 'hotfix/2.46.4' into develop
# Conflicts:
#	CHANGELOG.md
#	gradle.properties
#	scm-dao-xml/src/main/java/sonia/scm/repository/xml/XmlRepositoryDAO.java
#	scm-plugins/scm-git-plugin/package.json
#	scm-plugins/scm-hg-plugin/package.json
#	scm-plugins/scm-legacy-plugin/package.json
#	scm-plugins/scm-svn-plugin/package.json
#	scm-ui/e2e-tests/package.json
#	scm-ui/ui-api/package.json
#	scm-ui/ui-buttons/package.json
#	scm-ui/ui-components/package.json
#	scm-ui/ui-extensions/package.json
#	scm-ui/ui-forms/package.json
#	scm-ui/ui-layout/package.json
#	scm-ui/ui-legacy/package.json
#	scm-ui/ui-modules/package.json
#	scm-ui/ui-overlays/package.json
#	scm-ui/ui-plugins/package.json
#	scm-ui/ui-polyfill/package.json
#	scm-ui/ui-scripts/package.json
#	scm-ui/ui-shortcuts/package.json
#	scm-ui/ui-styles/package.json
#	scm-ui/ui-syntaxhighlighting/package.json
#	scm-ui/ui-tests/package.json
#	scm-ui/ui-text/package.json
#	scm-ui/ui-types/package.json
#	scm-ui/ui-webapp/package.json
2024-06-24 11:53:58 +02:00
Laura Gorzitze
38d0325b4c Check on duplicate name for rename
Add check whether namespace and name already exist
when renaming a repository.
2024-06-24 10:12:53 +02:00
Laura Gorzitze
25548e9f0a Add error description for read-only exception 2024-06-18 09:47:52 +02:00
Viktor Egorov
5d446278d9 Fixed branch name limit
Pushed-by: Viktor Egorov<viktor.egorov-extern@cloudogu.com>
Co-authored-by: Viktor<viktor.egorov@triology.de>
Co-authored-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Thomas Zerr<thomas.zerr@cloudogu.com>
2024-06-10 13:21:30 +02:00
Eduard Heimbuch
d55f5deda7 Fix unit tests 2024-05-23 08:21:36 +02:00
Eduard Heimbuch
bef418692b Delete annoying unit test which breaks the unit test suite 2024-05-22 14:33:06 +02:00
Thomas Zerr
09d72280d0 Fix exact search
Previously a query was only parsed by lucene as it is, if the query
contained a colon (:) or a wildcard character (*). With this, every query
gets parsed as it is, as long as there is one operator contained inside
the query (colon, quotation marks, logical operators, ...). These are
called "expert queries". All other queries are still processed as
"simple queries" where every part of the query is extended with a
wildcard operator.

Addtionally the user is now getting feedback for every
search, if the query is a simple query or an expert query. The syntax
documentation got also extended with the quotation mark operator
and the definition of the two query types.

Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-05-14 11:45:10 +02:00
Viktor Egorov
c8ef99cf07 Add option to hide whitepace changes in diffs
Co-authored-by: Florian Scholdei<florian.scholdei@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>


Reviewed-by: Florian Scholdei <florian.scholdei@cloudogu.com>
2024-05-14 11:33:48 +02:00
Thomas Zerr
6fbde760d4 Fix double /trunk folder bug
With this change, every repository initializer gets its own modification command and therefore its own commit. This allows each initializer to decide on its own, if he want to use the default path of the repository.
2024-04-30 15:28:08 +02:00