Avgustin Marinov
d842bc2aaa
Code format hawkbit ( #1948 )
...
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com >
2024-11-05 11:41:56 +02:00
Avgustin Marinov
d5c44e6c19
Fix Doc - Remove UI leftover ( #1867 )
...
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com >
2024-10-04 15:04:55 +03:00
Avgustin Marinov
bce69676d2
Reduce dependency on Guava ( #1589 )
...
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com >
2024-02-02 22:21:46 +02:00
Avgustin Marinov
8d487fde33
Doc add link to sonar reports ( #1476 )
...
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com >
2023-11-16 10:23:46 +02:00
Avgustin Marinov
9c86729a68
[#1393,#1008] Switch to Eclipse v2.0 license ( #1427 )
...
Switching license from EPL v1 to v2. Following
https://www.eclipse.org/legal/epl-2.0/faq.php#h.tci84nlsqpgw
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com >
2023-09-14 11:03:20 +03:00
Avgustin Marinov
56ea5b15c9
[ #1383 ] Spring Boot 3 Migration / Step 1 ( #1384 )
...
1. PagingAndSortingRepository doesn't extend CrudRepository anymore. For all extending that interface repositories CrudRepository super interface shall be now declared (https://spring.io/blog/2022/02/22/announcing-listcrudrepository-friends-for-spring-data-3-0 -
```
The popular PagingAndSortingRepository used to extend from CrudRepository, but it no longer does. This lets you combine it
with either CrudRepository or ListCrudRepository or a base interface of your own creation. This means you now have to
explicitly extend from a CRUD fragment, even when you already extend from PagingAndSortingRepository.
```
)
2. org.eclipse.hawkbit.autoconfigure.mgmt.ui -> move in hawkbit-ui (to be ready for removal), anyway - it's a better location for ui related configs
3. extends WebMvcConfigurerAdapter -> implements WebMvcConfigurer
4. remove WebSecurityConfigurerAdapter -> https://docs.spring.io/spring-security/reference/5.8/migration/servlet/config.html#_stop_using_websecurityconfigureradapter , https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter
and add @Order to the bean reg!!
5. Use configurers (the other will be deprecated / removed), e.d: http.csrf().disable() -> http.csrf(AbstractHttpConfigurer::disable)
6. configure(final AuthenticationManagerBuilder auth) -> put in httpsecurity config - http.getSharedObject(AuthenticationManagerBuilder.class).... (https://www.baeldung.com/spring-security-authentication-provider )
7. configure(final WebSecurity webSecurity) ->
```
@Bean
public WebSecurityCustomizer webSecurityCustomizer() {
return (web) -> web.ignoring().antMatchers("/documentation/**", "/VAADIN/**", "/*.*", "/docs/**");
}
```
(https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter )
8. AuthenticationManager authenticationManagerBean() ->
```
@Bean
AuthenticationManager authenticationManager(final AuthenticationConfiguration authenticationConfiguration) throws Exception {
return authenticationConfiguration.getAuthenticationManager();
}
```
(https://backendstory.com/spring-security-how-to-replace-websecurityconfigureradapter/ )
9. WebMvcAutoConfiguration could be removed - it uses deprectated methods, and sets properties that are same by default - hence - not neeeded
(https://github.com/spring-projects/spring-framework/issues/23915#issuecomment-563987147 )
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com >
2023-07-17 10:36:26 +03:00
Zygmunt Krynicki
a64c2bc28e
Fix several typos ( #1314 )
...
Those were discorvered while casually browsing the source code in an IDE.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl >
2023-02-01 15:24:34 +01:00
Markus Block
dafc059a76
Adapted resources to reflect switch to sonarcloud ( #1290 )
...
* adapted Readme and resources to reflect sonarcloud
* fixed badges
2022-10-26 11:21:44 +02:00
Peter Vigier
44a85f20eb
Feature/fix sonar warnings ( #1226 )
...
* Fixed sonar warnings
- "Cognitive Complexity"
- "Do not use replaceAll when not using a regex"
- java:S5869 - Character classes in regular expressions should not contain the same character twice
- Improved bad name
- Typos
- reduced code duplications
- Replaced hand-made wait-utility with Awaitility
- Log messages
- Duplicate code
- Typos
- Removed Thread.sleep, instead relaxed check condition
- Removed use of deprecated API
- Removed use of deprecated API
- Added supress-warnings as I do not see a better way to write the tests
- Removed Thread.sleep / redundant functionality to Awaitility
- Fixed other warnings (use isZero, isEmpty, hasToString)
- Removed/Reduced duplicate code
- Added generics
- Fixed asserts
- removed: field.setAccessible(true) actually should not be needed for public static fields!
- Too long constructor passes arguments in wrong order - how surprisingly...
- Clean-up use of varargs arguments
- Fixed regex
- Fixed typos and other minor stuff
- Making public constructors protected in abstract classes
- Swapped expected and asserted argument
- volatile not enough for syncing threads
- volatile not enough for syncing threads
- out-commented code
- Made regex not-greedy, added tests for verification
- Avoid exposure of thread-local member var
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Fixed Sonar warnings
* License header fix
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* License header fix #2
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Fixing review findings
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
* Fixing tests
- Fixed '&' usage in javadoc and typos
- Fixing some warnings
Signed-off-by: Peter Vigier <Peter.Vigier@bosch.io >
2022-01-31 21:59:46 +01:00
Dominic Schabel
3cf1b18549
Security chapter added and minor formatting issues fixed
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io >
2021-02-23 11:00:50 +01:00
Florian Ruschbaschan
09db327ba4
Add license header example to the contribution guide ( #1073 )
...
Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch.io >
2021-02-03 17:30:53 +01:00
Stefan Klotz
d09ca7be05
Migrate to Allure 2 ( #749 )
...
Add allure 2.7.0 dependency; change class references of Description, Features, Stories
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
2018-10-25 18:18:37 +02:00
Kai Zimmermann
d8ad9f6ef0
Sandbox uri and user includes DEMO hint ( #692 )
...
* New sandbox name und users.
* Fix controllerId in DDI docs.
* Optimise README set new creds
* Revert accidental checkin
* Fix typo.
* Cleanup text.
* Merge
2018-06-06 16:52:34 +02:00
Kai Zimmermann
5c4075290e
ECA instead of CLA
2018-06-06 10:16:46 +02:00
Kai Zimmermann
67a4677ef6
Split repository API for module and DS management. Refactor utility usage ( #524 )
...
* Split DS management and reduce util usage.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Split sw module and type management.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Sonar issues.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Make sonar listen to the exception!
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Register both beans.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Split JPA implementations.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Revert user details change.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Fix compilation errors.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Fix bean queries. Fix image path.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Document preferred utility usage.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Fix exmaples and revert unintended checkin.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Code cleanup.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Typos, readibility.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Remove unused reference.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Rollouts cache delete aware.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Fix rolloutgroup delete event.
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
* Add new RolloutGroupDeletedEvent event
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com >
2017-06-01 06:28:59 +02:00
Christian Storm
ce277b7d35
Rename CONTRIBUTING.md and fix Sonar rule set reference. ( #503 )
...
Signed-off-by: Christian Storm <christian.storm@siemens.com >
2017-05-05 15:54:27 +02:00