Peter Vigier
185f88e19b
Added /target/generated-sources/apt to resources for maven and m2e ( #802 )
...
* Added `/target/generated-sources/apt` to resources for maven and m2e
Additionally it was needed to use the `build-helper-maven-plugin`, as
m2e would otherwise exclude by default all sources from the additional
source folder (s. https://stackoverflow.com/a/7759911 )
Signed-off-by: Peter Vigier <Peter.Vigier@bosch-si.com >
* Removed resource plugin configuration
For adding the apt "source" folders the build-helper plugin is enough.
Signed-off-by: Peter Vigier <Peter.Vigier@bosch-si.com >
2019-03-05 17:49:10 +01:00
Stefan Schake
e8e203b69a
CBOR support for the DDI API ( #797 )
...
* Add test for default content-type of DDI
We want to add support for other content types to the DDI interface.
To make sure we don't break devices that implicitly assume they will
receive JSON without setting an Accept header, add a test for the current
behavior.
v2: Complete the assertion
Signed-off-by: Stefan Schake <stefan.schake@devolo.de >
* Add CBOR support for DDI API
Concise Binary Object Representation (CBOR) is a binary data format
optimized for small code and message size. Since Spring Boot 2, there
is an autoconfigured data converter so we need to do little more than
add the reference to the Jackson backend and advertise support in the DDI
endpoints. Add tests to ensure all endpoints support the format.
Fixes #748
Signed-off-by: Stefan Schake <stefan.schake@devolo.de >
2019-02-28 18:32:48 +01:00
Dominic Schabel
d29bcc0345
Typo fixed
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2019-02-28 18:24:45 +01:00
Kai Zimmermann
7870f9f87f
Boot update 2.1.3 , Boot app banner. ( #800 )
...
* Banner for app, boot update, helm license exclude
Signed-off-by: Kai Zimmermann <kai.zimmermann@microsoft.com >
2019-02-26 13:01:09 +01:00
Dominic Schabel
e1ffe79bd2
Broken link fixed
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2019-02-26 12:26:42 +01:00
Bondar Bogdan
473b6b2cc5
Feature extend target attributes constraints ( #799 )
...
* extended target attributes key limit to 128 characters
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* fixed tests
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
2019-02-25 14:54:30 +01:00
Stefan Klotz
caca308f47
Use browser language in UI ( #788 )
...
* set language according to browser
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* fix unlocalized ui texts
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* add constants for localization strings
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* fix typo
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* fix typo
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* change configuration captions in ui
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* explain localization determination
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* make english the fallback language
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* rename variables
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
2019-02-13 14:18:30 +01:00
Dominic Schabel
9946efc2af
New CQ for CBOR added
...
See PR #797 (https://github.com/eclipse/hawkbit/pull/797 )
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2019-02-12 13:58:39 +01:00
Stefan Klotz
d1d5903b83
Make assembly file accessible from other projects ( #787 )
...
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
2019-02-07 13:54:27 +01:00
Jeroen Laverman
a906d37d7d
fix typo
...
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
2019-02-05 08:05:35 +01:00
Stefan Klotz
515ec84f32
Remove broken repo ( #795 )
...
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
2019-02-04 10:16:21 +01:00
Stefan Behl
df23c4ef83
In-memory user management should not ignore user roles configured via Spring ( #794 )
...
* Fix hawkBit UserDetailsService bean to honor the configured roles
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com >
* Fix Sonar issues
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com >
2019-02-01 14:18:38 +01:00
Kai Zimmermann
59f674ca0e
revert Eclipselink update due to issues with SQL Server ( #793 )
2019-02-01 12:10:49 +01:00
Kai Zimmermann
6095133019
Fix DMF docs and unnecessary content_type enforcements. ( #792 )
...
* Fix DMF docs and unnecessary content_typ enforcements.
* One more error.
* Typo
2019-02-01 12:09:11 +01:00
Kai Zimmermann
f9a7194fd5
Fix JavaDoc syntax errors. Add check to circle build. ( #791 )
...
* Fix JavaDoc syntax errors. Add check to circle build.
* One more code error
* Added missing tags.
2019-02-01 10:31:40 +01:00
Kai Zimmermann
4ee582fe04
Fix DMF doc on reply_to ( #790 )
2019-01-31 09:50:13 +01:00
Kai Zimmermann
d52a720480
Spring Boot 2.0 ( #721 )
...
* Migration to Boot 2.0.
Signed-off-by: Kai Zimmermann <kai.zimmermann@microsoft.com >
2019-01-31 07:29:27 +01:00
Dominic Schabel
b42b009f9e
Test with different label
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2019-01-28 19:06:31 +01:00
Dominic Schabel
0f2296f49d
Space removed from label
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2019-01-28 14:07:02 +01:00
Dominic Schabel
c3eb9ff920
Release Notes updated
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2019-01-18 17:25:06 +01:00
Jeroen Laverman
c9d77e88a9
Add Bosch 2019 License Header for validation ( #782 )
...
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
2019-01-18 09:40:20 +01:00
Markus Block
5025192844
fixed NPE if no UploadProgress object is stored for uploadId in ( #780 )
...
Fixed NPE if no UploadProgress object is stored for uploadId in artifactUploadState.
Signed-off-by: Markus Block <markus.block@bosch-si.com >
2019-01-10 14:33:02 +01:00
Jeroen Laverman
da098b334b
Improve "Required Migration Step" documentation ( #776 )
...
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
2019-01-08 12:56:47 +01:00
Markus Block
f918d32bc8
Enable/disable buttons in action history based on user permission ( #775 )
...
* Fixed missing org.apache.logging.Log dependency in eclipse
* Evaluate the user's permissions when rendering the action buttons
* Added ConfimationDialog id
* Fixed Sonar issues
* Fixed review findings
Signed-off-by: Markus Block <markus.block@bosch-si.com >
2019-01-08 11:11:55 +01:00
Stefan Behl
eada7cdd6f
Distribution set assignment: Fix NPE in AbstractDsAssignmentStrategy ( #777 )
...
* Fix NPE
* Add unit test
* Fix review findings
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com >
2018-12-21 13:08:43 +01:00
Dominic Schabel
a1ace0a463
Fixed wrong GPG key for MariaDB driver
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-12-17 16:28:10 +01:00
Dominic Schabel
25209166a7
Fixed outdated comment
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-12-17 15:56:11 +01:00
Dominic Schabel
c9067156d9
Message fixed
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-12-17 11:04:52 +01:00
Dominic Schabel
a6cfd4205a
Update Dockerfiles to 0.2.5
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-12-17 10:45:23 +01:00
Stefan Klotz
20d84a10eb
Fix artifact filename validation ( #770 )
...
* use validated ArtifactUpload object when creating a new artifact
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* rename method
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* add regular expression classes
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* add filename validation to UI upload button
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* move filename validation to uploadStarted
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* clean up code for UI error handling during artifact upload, assert
filename validation
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* update visibilities
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* clean up code
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* clean up code
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* change RegexChar class to enum and use i18n
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* typo, use StringBuilder
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* typo
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* use dedicated class for collections of regular expression characters
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* remove Optional, remove stringBuilder
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* PR findings
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* make regex validation method static
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* use WhiteListType.NONE for filename validation via mgmt-api
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
2018-12-17 10:17:46 +01:00
Bondar Bogdan
a2c1e5f132
Transaction handling refactoring ( #771 )
...
* unified new transaction handling in jpa repositories, extended Deployment Management and Action Repository
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* moved Deployment Helper to utilities package
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* removed superfluous utility method from Deployment Helper
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* refactored distribution set to target assignment, fixed PR review findings
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* fixed PR review findings
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* added additional validation of active flag and current status fields for action status update repository method
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* fixed timing issue in amqp message handler integration test, when validating target attributes update
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
2018-12-14 17:41:38 +01:00
Jeroen Laverman
b06928d089
Fix missing localization ( #772 )
...
* fix typos
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* Add localization to documentation link description
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* Add localization for rollouts errorthreshold
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* Add CN to available localizations
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* fix NO TAG localization
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* Fix sonar findings
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* Make Localization configurable
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* fix sonar findings
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* fix review findings
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* fix review findings
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
* add final
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com >
2018-12-13 09:07:10 +01:00
Stefan Klotz
347fac7f00
Fix empty collection saved in ds table ( #768 )
...
* check if collection is empty, clean up and refactor code
* fix map and set types
* fix array conversion
* fix review findings
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
2018-11-30 09:05:18 +01:00
Stefan Schake
e9ddcefd4a
Include attribute values in target search text filter ( #736 )
...
* Add specification for like attribute value
v2: ensure returned targets are unique
v3: remove redundant or
Signed-off-by: Stefan Schake <stefan.schake@devolo.de >
* Use like attribute value specification with target search text
Target attributes are the primary way to relay back metadata,
particularly in a plug&play application. They should therefore be
included in the target search. Attribute keys are excluded since they
are expected to be consistent between targets.
v3: remove whitespace changes
Signed-off-by: Stefan Schake <stefan.schake@devolo.de >
* Add test for target search includes attribute values
v2: test targets returned are unique
Signed-off-by: Stefan Schake <stefan.schake@devolo.de >
2018-11-29 10:18:51 +01:00
Bondar Bogdan
b2dfd4a99e
Feature target metadata filter ( #767 )
...
* implemented RSQL query filter for target metadata
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* refactored rsql fields providers code for targets, distribution sets and software modules for consistency, fixed predicate grouping for map fields in rsql utility
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* extended tests for target management rsql queries with target metadata
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* extended target management test for RSQL not equal case of target metadata, added a suggestion of comparator operators when map key ends with = or ! symbol in Target Filter View
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* Fixed peer review findings
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
* small test fixes: seconds are respected while scheduling the maintenance window, redundant ds-target assignment statement removed
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
2018-11-28 14:09:52 +01:00
Bondar Bogdan
a460f61e13
Added TargetAttributesRequestedEvent event type ( #769 )
...
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
2018-11-27 14:40:41 +01:00
Stefan Klotz
be348030b2
Feature target metadata ui ( #765 )
...
* add metadata tab and popup to target UI
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* send event to update UI
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* send event on target meta data delete and update
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* display selected element name in details layout and metadata popup of UI
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* add comments to explain manual event publishing
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* remove option to hide metadata button in details layout
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* fix typos and refactor
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* fix typos
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
* fix wrong method call
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
2018-11-26 11:10:49 +01:00
Dominic Schabel
9d38f76c43
Bugfix for CircleCI builds
...
CircleCI updated the latest docker image to JDK 8u81 which has a bug
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-11-20 18:56:19 +01:00
Stefan Klotz
d4c1e82090
Feature do not temp store uploaded files ( #763 )
...
* Upload artefacts directly without creating a temp file
* Remove redundant code that checks if user tries to update a directory
* Handle UI upload exceptions, use Spring thread pool
* Clean up code
* Fix review findings
* Fix Sonar findings
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com >
2018-11-12 08:57:10 +01:00
Stefan Schake
49d064df18
Switch printed order of firstname and lastname ( #758 )
...
When separating with a comma, put the lastname up front.
Signed-off-by: Stefan Schake <stefan.schake@devolo.de >
2018-11-07 11:02:22 +01:00
Stefan Behl
ddca072561
Fixes for software module assignment in Distributions Management view of Mgmt UI ( #759 )
...
* Fix software module assignment
* Fix hawkbit-bot findings
* Fix review findings
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com >
2018-10-30 08:48:39 +01:00
Bondar Bogdan
0cf4f8e8b9
Feature target metadata ( #757 )
...
* Defined the model for target matadata and the corresponding repository layer/management
* Added target metadata quotas incl enforcement
* Extended Target Mgmt REST API to allow for metadata CRUD operations
* Added migration scripts for each database
* Added back reference to target metadata in JpaTarget
* Added tests for target management, Mgmt REST API, target metadata RSQL, and REST documentation
* Updated asciidocs for target rest documentation
* Fix Allure imports and annotations
* Fix review findings
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com >
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com >
2018-10-29 11:28:34 +01:00
Dominic Schabel
1cbde47370
First version of a Dockerfile generator added
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-10-26 23:57:48 +02:00
Dominic Schabel
1bff1feee2
Use CircleCI image with smaller footprint
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-10-26 21:25:39 +02:00
Dominic Schabel
96f6651570
Plugin versions upgraded
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-10-26 16:57:08 +02:00
Dominic Schabel
583f6fca08
Allure report timeout fixed
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-10-26 15:55:40 +02:00
Dominic Schabel
a6135a6c0c
Quickfix for Allure timeout
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-10-26 15:38:38 +02:00
Dominic Schabel
70021c1935
Version of hawkBit 0.2.4 added
...
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com >
2018-10-26 13:43:11 +02: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
Stefan Klotz
f8e1a547b0
Request attribute update after deployment ( #750 )
...
Send attribute update request to ddi connected device after successful software update
Signed-off-by: Stefan Klotz <stefan.klotz@bosch-si.com >
2018-10-25 17:12:41 +02:00