Commit Graph

3440 Commits

Author SHA1 Message Date
Stanislav Trailov
7456e52095 Unify Hibernate and EclipseLink exception translations (#2388)
* Unify Hibernate and EclipseLink exception translations

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

* properly set custom hibernate jpa dialect

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

---------

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>
2025-05-07 15:18:06 +03:00
dependabot[bot]
af19861de7 Bump io.github.openfeign:feign-hc5 from 13.5 to 13.6 (#2390)
Bumps [io.github.openfeign:feign-hc5](https://github.com/openfeign/feign) from 13.5 to 13.6.
- [Release notes](https://github.com/openfeign/feign/releases)
- [Changelog](https://github.com/OpenFeign/feign/blob/master/CHANGELOG.md)
- [Commits](https://github.com/openfeign/feign/compare/13.5...13.6)

---
updated-dependencies:
- dependency-name: io.github.openfeign:feign-hc5
  dependency-version: '13.6'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 10:01:14 +03:00
dependabot[bot]
3b228e731c Bump org.springdoc:springdoc-openapi-starter-webmvc-ui (#2389)
Bumps [org.springdoc:springdoc-openapi-starter-webmvc-ui](https://github.com/springdoc/springdoc-openapi) from 2.8.6 to 2.8.8.
- [Release notes](https://github.com/springdoc/springdoc-openapi/releases)
- [Changelog](https://github.com/springdoc/springdoc-openapi/blob/main/CHANGELOG.md)
- [Commits](https://github.com/springdoc/springdoc-openapi/compare/v2.8.6...v2.8.8)

---
updated-dependencies:
- dependency-name: org.springdoc:springdoc-openapi-starter-webmvc-ui
  dependency-version: 2.8.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 09:40:00 +03:00
Stanislav Trailov
5e72ea4522 Set old sql translator as a fallback in eclipseLink (#2387)
* Set old sql translator as a fallback in eclipseLink

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

* small refactor

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

* fix minor code smell

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

---------

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>
2025-05-02 12:18:00 +03:00
dependabot[bot]
546088e88e Bump vaadin.version from 24.7.2 to 24.7.3 (#2384)
Bumps `vaadin.version` from 24.7.2 to 24.7.3.

Updates `com.vaadin:vaadin-bom` from 24.7.2 to 24.7.3

Updates `com.vaadin:vaadin-maven-plugin` from 24.7.2 to 24.7.3

---
updated-dependencies:
- dependency-name: com.vaadin:vaadin-bom
  dependency-version: 24.7.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.vaadin:vaadin-maven-plugin
  dependency-version: 24.7.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-30 09:06:54 +03:00
dependabot[bot]
11097d15b0 Bump org.jsoup:jsoup from 1.19.1 to 1.20.1 (#2385)
Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.19.1 to 1.20.1.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md)
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.19.1...jsoup-1.20.1)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-version: 1.20.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-30 09:06:16 +03:00
Stanislav Trailov
2a71f61cc2 Extend current SQL translator in EclipseLink (#2383)
* Extend current SQL translator in EclipseLink

* Initialize translator in static block

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

* translation methods to static

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

* handle DataIntegrityViolation in rest core

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

---------

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>
2025-04-29 17:20:17 +03:00
Avgustin Marinov
744ab70f97 Small DB Init refactoring (#2382)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-29 10:08:54 +03:00
Denislav Prinov
08f8c528fd Merge pull request #2346 from maass-hamburg/simple_ui_add_assign_targets
simple_ui: add assign function in Target view
2025-04-29 08:45:12 +03:00
Avgustin Marinov
6a2bcb1f9a Add locations configuration for flyway db init (default still db/migration) (#2381)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-28 16:54:37 +03:00
Avgustin Marinov
023c6f06f5 Sets default Flyway ingore-migration-patterns (#2379)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-28 14:59:32 +03:00
Avgustin Marinov
8a3fa1e8a7 Add table name configuration for flyway db init (default still schema_version) (#2380)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-28 14:45:52 +03:00
Avgustin Marinov
0059a60f5b [#2362] Set cache manager TTL by default 10sec (#2378)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-28 13:22:19 +03:00
Avgustin Marinov
30c0ae3cc2 SoftwareModuleView small improvements (#2377)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-28 12:19:11 +03:00
Fin Maaß
88a0ac7256 simple_ui: SoftwareModuleView: add option for distributionSet (#2360)
This commit adds a new option, when creating a new SoftwareModule, to
also create a new distributionSet, based on the created SoftwareModule.
This is useful for cases, where software modules and distributionSets
have a 1:1 relation.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-04-28 09:36:52 +03:00
Avgustin Marinov
73bc6d15b5 Bump docker version to 21.0.7_6 (#2376)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-28 08:48:00 +03:00
Avgustin Marinov
4c5714ecb4 Remove Log4j dependencies (#2374) 2025-04-25 16:21:54 +03:00
Avgustin Marinov
ffc550fcc7 Fix/db refactoring rename (#2365)
* Refactor datbase - renaming

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

* Final refactoring

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

---------

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-25 16:08:23 +03:00
dependabot[bot]
4714f5edf2 Bump org.springframework.boot:spring-boot-starter-parent from 3.4.4 to 3.4.5 (#2373)
* Bump org.springframework.boot:spring-boot-starter-parent

Bumps [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) from 3.4.4 to 3.4.5.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.4.4...v3.4.5)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-parent
  dependency-version: 3.4.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update pom.xml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-25 09:38:29 +03:00
Avgustin Marinov
d2a41d1bff Feature/docker dbinit (#2371)
* Standalone tool for initializing of hawkBit Database

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

* Add docker build for dbinit

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>

---------

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-24 16:40:55 +03:00
Avgustin Marinov
323738bda9 Remove flywat from DDI & DMF servers (#2370)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-24 16:27:48 +03:00
Avgustin Marinov
df398c9a74 Standalone tool for initializing of hawkBit Database (#2369)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-24 16:27:28 +03:00
dependabot[bot]
6e24b6c33c Bump org.apache.commons:commons-collections4 from 4.4 to 4.5.0 (#2368)
Bumps org.apache.commons:commons-collections4 from 4.4 to 4.5.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-collections4
  dependency-version: 4.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-24 09:04:54 +03:00
Denislav Prinov
9563efa878 Merge pull request #2366 from bosch-io/feature/refactor-audit-log-description-field
Refactoring the audit log message -> description field
2025-04-22 13:23:44 +03:00
Denislav Prinov
7aa33cd96b Refactoring the audit log message -> description field
Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com>
2025-04-22 08:11:53 +03:00
Avgustin Marinov
7486f54291 Add DS type to distrubution set unique key (#2364)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-17 10:00:18 +03:00
dependabot[bot]
aa8cb9d305 Bump vaadin.version from 24.7.1 to 24.7.2 (#2361)
Bumps `vaadin.version` from 24.7.1 to 24.7.2.

Updates `com.vaadin:vaadin-bom` from 24.7.1 to 24.7.2

Updates `com.vaadin:vaadin-maven-plugin` from 24.7.1 to 24.7.2

---
updated-dependencies:
- dependency-name: com.vaadin:vaadin-bom
  dependency-version: 24.7.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.vaadin:vaadin-maven-plugin
  dependency-version: 24.7.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-16 09:02:27 +03:00
Fin Maaß
bce1c79c14 simple_ui: Utils: add actionTypeControls function
add actionTypeControls function to be able to share the code between
RolloutView and TargetView.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-04-15 16:47:07 +02:00
Fin Maaß
5a884661ed simple_ui: add assign function in Target view
add assign function in Target view

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-04-15 16:41:21 +02:00
Avgustin Marinov
3481461536 Don't check robots.txt for license (#2359)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-15 15:20:38 +03:00
Avgustin Marinov
de4e58d0ee Add robots.txt to servers - not for bots (#2358)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-15 15:13:36 +03:00
Avgustin Marinov
00b129ad95 [#2343] Deny scheduled rollout creation when no HANDLE_ROLLOUT permission (#2357)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-15 13:44:15 +03:00
Avgustin Marinov
f4fb11535c [#1744] Add permissions to MgmtUserInfo (#2356)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-15 09:51:21 +03:00
Avgustin Marinov
9290ea194c [#1832] Fix root redirect to swagger ui (#2355)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-15 09:13:50 +03:00
dependabot[bot]
e48d6b3a96 Bump commons-io:commons-io from 2.18.0 to 2.19.0 (#2354)
Bumps commons-io:commons-io from 2.18.0 to 2.19.0.

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-version: 2.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-15 08:24:15 +03:00
dependabot[bot]
b4bbef4c72 Bump org.apache.commons:commons-text from 1.13.0 to 1.13.1 (#2353)
Bumps org.apache.commons:commons-text from 1.13.0 to 1.13.1.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-text
  dependency-version: 1.13.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-14 08:55:23 +03:00
Avgustin Marinov
36fa915cbc Improve @Value properties (#2352)
Implement recommendation from https://docs.spring.io/spring-boot/reference/features/external-config.html to use kebab case for @Values:

If you do want to use @Value, we recommend that you refer to property names using their canonical form (kebab-case using only lowercase letters). This will allow Spring Boot to use the same logic as it does when relaxed binding @ConfigurationProperties.

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-11 16:46:34 +03:00
dependabot[bot]
44dd714fb5 Bump org.eclipse.persistence:org.eclipse.persistence.jpa (#2351)
Bumps [org.eclipse.persistence:org.eclipse.persistence.jpa](https://github.com/eclipse-ee4j/eclipselink) from 4.0.5 to 4.0.6.
- [Release notes](https://github.com/eclipse-ee4j/eclipselink/releases)
- [Commits](https://github.com/eclipse-ee4j/eclipselink/compare/4.0.5...4.0.6)

---
updated-dependencies:
- dependency-name: org.eclipse.persistence:org.eclipse.persistence.jpa
  dependency-version: 4.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-10 11:10:07 +03:00
Avgustin Marinov
2b270ddad7 Provide option to disable distributed lock (#2350)
by setting hawkbit.lock=inMemory the distributed lock could be disabled, e.g. on DDI/DMF servers

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-09 15:36:57 +03:00
Avgustin Marinov
7c881587b6 Fixes order and conditions for TenantMetricsConfiguration (#2348)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-09 13:20:40 +03:00
Avgustin Marinov
c1b7723c0f Register tenant metrics only if there is TenantResolver (#2347)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-09 11:35:15 +03:00
Fin Maaß
5e209bfecc remove references to anonymous controller support (#2345)
`hawkbit.server.ddi.security.authentication.anonymous.enabled` is no
longer supported, so remove the references to it.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-04-08 17:59:15 +03:00
Avgustin Marinov
ee26dff6f9 Add rollout and autoasigments metric (#2344)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-08 15:37:57 +03:00
Avgustin Marinov
65c103c435 Add tenant tag to http and repository metrics (#2342)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-08 11:13:32 +03:00
Denislav Prinov
07448f56da Merge pull request #2341 from bosch-io/feature/audit-logger-aspect-bean
Ensure AuditLoggingAspect Bean Registration
2025-04-04 11:33:43 +03:00
Denislav Prinov
23e3c0bc43 Ensure AuditLoggingAspect Bean Registration
Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com>
2025-04-04 11:30:24 +03:00
dependabot[bot]
f0dba91efb Bump org.jacoco:jacoco-maven-plugin from 0.8.12 to 0.8.13 (#2340)
Bumps [org.jacoco:jacoco-maven-plugin](https://github.com/jacoco/jacoco) from 0.8.12 to 0.8.13.
- [Release notes](https://github.com/jacoco/jacoco/releases)
- [Commits](https://github.com/jacoco/jacoco/compare/v0.8.12...v0.8.13)

---
updated-dependencies:
- dependency-name: org.jacoco:jacoco-maven-plugin
  dependency-version: 0.8.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-04 08:36:52 +03:00
Avgustin Marinov
764c02279e Fix distributed lock registration 2025-04-02 16:32:44 +03:00
Avgustin Marinov
2af5439b39 Clustering: Add distributed lock (#2333)
To support sync of activities in cluster setups

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-02 12:25:08 +03:00
Avgustin Marinov
32990ab2ea Add CORS support for DDI API (#2337)
For instance if used in remote swagger or web apps

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2025-04-02 09:01:02 +03:00