AbortedChanges

Summary

  1. Add fix for Download-Only deployment type on DDI-API (#848) (details)
  2. Fix upload artifact (#852) (details)
  3. Increase target name to 128 and target controller id to 256 (#849) (details)
  4. Fix failing ControllerManagement tests (#856) (details)
  5. refactored DdiDeploymentBaseTest.java (#853) (details)
  6. Feature enable cors (#854) (details)
  7. Handle response of MethodArgumentNotValidException (#855) (details)
  8. fix the logic that marks distributionSet as complete (#838) (details)
  9. Test check complete of distribution set (#859) (details)
  10. Fix MAX_TENANTS_QUERY constant. Signed-off-by: Stefan Behl (details)
  11. 0.3.0M4 added to release notes (details)
  12. Fixed typos in server error codes and messages (#867) (details)
  13. Performance optimizations for Multi-Assignments (#858) (details)
  14. Reduced DMF logging level in BaseAmqpService to debug (#868) (details)
  15. CQ list for PR #865 populated (details)
  16. External ref for actions and status-update events (#830) (details)
  17. DDI supports sha256 (#869) (details)
Commit 34fc7a7012356e60448e3b5eab8ece30183a5f5b by GitHub
Add fix for Download-Only deployment type on DDI-API (#848)
Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
The file was modifiedhawkbit-rest/hawkbit-ddi-resource/src/test/java/org/eclipse/hawkbit/ddi/rest/resource/DdiDeploymentBaseTest.java (diff)
The file was modifiedhawkbit-rest/hawkbit-ddi-resource/src/main/java/org/eclipse/hawkbit/ddi/rest/resource/DdiRootController.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/Action.java (diff)
Commit 568848bb27999131219405965168d3d70e861d7c by Jeroen.laverman
Fix upload artifact (#852)
* fixed repository to check for file existence before trying to get the
artifact
* added additional existence checks before retrieving the artifact from
repository
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
The file was modifiedhawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtDownloadResource.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaArtifactManagement.java (diff)
Commit f6c0edffa59fe7c1f4648397a9d5164d338fe456 by stefan.behl
Increase target name to 128 and target controller id to 256 (#849)
* Increase target name to 128 and target controller id to 256
* Fix test failures by using constant NamedEntity.NAME_MAX_SIZE + 1
* Use constant NamedEntity.NAME_MAX_SIZE + 1 for mgmt-resource tests
* Add db migration scripts to increase the controllerId and name limit
* Fix review issues
* Use correct constant field for junit tests
* Change Hawkbit documentation url of application-<db>.properties
* Add new line at the end of db migration scripts
* Update assertion description
* Revert copyright years to its creator year
* Add DDI-, AMQP- and controller management-tests
Signed-off-by: Florian Ruschbaschan <Florian.Ruschbaschan@bosch-si.com>
The file was modifiedhawkbit-dmf/hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/integration/AmqpMessageHandlerServiceIntegrationTest.java (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/MYSQL/V1_12_12__change_length_of_controller_id_and_name___MYSQL.sql
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/ControllerManagementTest.java (diff)
The file was modifiedhawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSoftwareModuleTypeResourceTest.java (diff)
The file was modifiedhawkbit-runtime/hawkbit-update-server/src/main/resources/application-mysql.properties (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/Target.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/TargetManagementTest.java (diff)
The file was addedhawkbit-runtime/hawkbit-update-server/src/main/resources/application-db2.properties
The file was modifiedhawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/NamedEntity.java (diff)
The file was modifiedhawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtDistributionSetResourceTest.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/DB2/V1_12_5__baseline___DB2.sql (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/DB2/V1_12_12__change_length_of_controller_id_and_name___DB2.sql
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/DistributionSetTypeManagementTest.java (diff)
The file was modifiedhawkbit-runtime/hawkbit-update-server/src/main/resources/application-mssql.properties (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/DistributionSetManagementTest.java (diff)
The file was modifiedhawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtTargetResourceTest.java (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/H2/V1_12_12__change_length_of_controller_id_and_name___H2.sql
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/TargetTagManagementTest.java (diff)
The file was modifiedhawkbit-rest/hawkbit-ddi-resource/src/test/java/org/eclipse/hawkbit/ddi/rest/resource/DdiRootControllerTest.java (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/SQL_SERVER/V1_12_12__change_length_of_controller_id_and_name___SQL_SERVER.sql
The file was modifiedhawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtDistributionSetTypeResourceTest.java (diff)
Commit 06a739a3dc591c26c95f0df0424f988f65949d5a by GitHub
Fix failing ControllerManagement tests (#856)
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/ControllerManagementTest.java (diff)
Commit 4640b8ad5e34e9869111ed84f7ab744351893642 by stefan.behl
refactored DdiDeploymentBaseTest.java (#853)
* refactored DdiDeploymentBaseTest.java
* removed hardcoded variables, moved createArtifact() to TestDataFactory

Signed-off-by: Ahmed Sayed <ahmed.sayed@bosch-si.com>
The file was modifiedhawkbit-rest/hawkbit-ddi-resource/src/test/java/org/eclipse/hawkbit/ddi/rest/resource/DdiDeploymentBaseTest.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-test/src/main/java/org/eclipse/hawkbit/repository/test/util/TestdataFactory.java (diff)
Commit 379726a697de7289078104caaf7a153777b96253 by stefan.behl
Feature enable cors (#854)
* enabled cors in security configuration, added corresponding properties

* added test for cors validation
* formatting
* added mariadb test dependency and refactored test
* added database listeners to the test
* Remove dependency duplicate
Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
The file was modifiedhawkbit-security-core/src/main/java/org/eclipse/hawkbit/security/HawkbitSecurityProperties.java (diff)
The file was modifiedhawkbit-autoconfigure/src/main/java/org/eclipse/hawkbit/autoconfigure/security/SecurityManagedConfiguration.java (diff)
The file was modifiedhawkbit-runtime/hawkbit-update-server/pom.xml (diff)
The file was addedhawkbit-runtime/hawkbit-update-server/src/test/java/org/eclipse/hawkbit/app/CorsTest.java
The file was modifiedhawkbit-runtime/hawkbit-update-server/src/main/resources/application.properties (diff)
Commit 0812937f3f821410c24323ceb7b47bf1600f8829 by stefan.behl
Handle response of MethodArgumentNotValidException (#855)
* Handle response of MethodArgumentNotValidException
* Readapt DdiDeploymentBaseTest after merge conflicts
* Handle Exceptions HttpMessageNotReadable and MethodArgumentNotValid in
one ExceptionHandler method
Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch-si.com>
The file was modifiedhawkbit-rest/hawkbit-ddi-resource/src/test/java/org/eclipse/hawkbit/ddi/rest/resource/DdiDeploymentBaseTest.java (diff)
The file was modifiedhawkbit-rest/hawkbit-rest-core/src/main/java/org/eclipse/hawkbit/rest/exception/ResponseExceptionHandler.java (diff)
Commit effb1e24adaeb3a62c93a874a5e97f2057c342b1 by stefan.behl
fix the logic that marks distributionSet as complete (#838)
DistributionSets without SoftwareModules shall not be marked as
complete, when no Software Module is assigned
Signed-off-by: Ravindranath Sandeep (INST-IOT/ESW-Imb)
<Sandeep.Ravindranath@bosch-si.com>
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/model/JpaDistributionSetType.java (diff)
Commit 2e37f85c2f7865f65310052cad6a1e82bd92da68 by stefan.behl
Test check complete of distribution set (#859)
* fix the logic that marks distributionSet as complete
* DistributionSets without SoftwareModules shall not be marked as
complete, when no Software Module is assigned
Signed-off-by: Ravindranath Sandeep (INST-IOT/ESW-Imb)
<Sandeep.Ravindranath@bosch-si.com>

* test to verify that the distributionSet is complete or not
* change test description
Signed-off-by: Nazife Basbaz <nazife.basbaz@bosch-si.com>
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/DistributionSetTypeManagementTest.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/model/JpaDistributionSetType.java (diff)
Commit fd9de429e627c46cd9daaf3563ded9ee21b3e0e3 by stefan.behl
Fix MAX_TENANTS_QUERY constant. Signed-off-by: Stefan Behl
stefan.behl@bosch-si.com
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaSystemManagement.java (diff)
Commit 7dd3e0db7171bf65e20f8d73334203c1d4490720 by dominic.schabel
0.3.0M4 added to release notes
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
The file was modifieddocs/content/release-notes.md (diff)
Commit 749218098f79d1124d596c897bd14fed43a0351b by dominic.schabel
Fixed typos in server error codes and messages (#867)
* fixed typos in server error codes and messages
Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>

* reverted changes of server error message keys
Signed-off-by: Robert Sing <Robert.Sing@bosch-si.com>
The file was modifiedhawkbit-rest/hawkbit-rest-core/src/main/java/org/eclipse/hawkbit/rest/exception/ResponseExceptionHandler.java (diff)
The file was modifiedhawkbit-core/src/main/java/org/eclipse/hawkbit/exception/SpServerError.java (diff)
The file was modifiedhawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtTargetResourceTest.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/exception/EntityAlreadyExistsException.java (diff)
Commit 4e9308a949a5d7bac17cc0bbac0c9d6973f311de by GitHub
Performance optimizations for Multi-Assignments (#858)
* Add remote event test for the new MultiActionEvent
* Improve test descriptions
* Improve sendMultiActionRequestMessages
* Moved action filtering to the database query level (#12)
* Use @ExpectedEvents instead of EventHandlerStubs
* Removed @Param from
'existsByTargetControllerIdAndStatusAndActiveIsTrue'
* Reverted metadata initialization
* Fix hawkBit bot findings
Signed-off-by: Stefan Behl <stefan.behl@bosch-si.com>
Ahmed Sayed <ahmed.sayed@bosch-si.com>
The file was modifiedhawkbit-dmf/hawkbit-dmf-api/src/main/java/org/eclipse/hawkbit/dmf/json/model/DmfSoftwareModule.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/DeploymentManagementTest.java (diff)
The file was modifiedhawkbit-dmf/hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/integration/AmqpMessageDispatcherServiceIntegrationTest.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/event/remote/RemoteTenantAwareEventTest.java (diff)
The file was modifiedhawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpMessageHandlerService.java (diff)
The file was modifiedhawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpMessageDispatcherService.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/event/remote/entity/ActionEventTest.java (diff)
The file was modifiedhawkbit-dmf/hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/matcher/SoftwareModuleJsonMatcher.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/ActionRepository.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/event/remote/entity/AbstractRemoteEntityEventTest.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/event/remote/RemoteIdEventTest.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/event/remote/entity/RolloutGroupEventTest.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/event/remote/AbstractRemoteEventTest.java (diff)
The file was modifiedhawkbit-dmf/hawkbit-dmf-api/src/main/java/org/eclipse/hawkbit/dmf/json/model/DmfMetadata.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/OnlineDsAssignmentStrategy.java (diff)
Commit c6357b1e5ca12c006e2014d4ed98042ee53db6f8 by dominic.schabel
Reduced DMF logging level in BaseAmqpService to debug (#868)
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
The file was modifiedhawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/BaseAmqpService.java (diff)
Commit e80399bc79f0cc4c36f1be779bd4970fe8fc6a73 by dominic.schabel
CQ list for PR #865 populated
Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
The file was modified.3rd-party/Release_0_3_0.md (diff)
The file was modified.3rd-party/compile.txt (diff)
Commit fba6cf97874afc7ce495ac6e648dbb2477ee6db0 by stefan.behl
External ref for actions and status-update events (#830)
* Add feature to listen to rollout status update
* With this feature, extensions can update back the status of a given
rollout using an event(containing distributionSetId and targetId).
* In future, AmqpMessageHandlerService can make use of this feature and
de-couple its own implementation from performing status update of an
action.
* Implement ActionStatusUpdateHandlerService using actionId
* Extend actions to support externalRef
* Update the action status using externalRef.
* Update securityContext to support running a callable under specific
authorities.
* Fixing the review comments
* Increase length of externalRef to 128 chars
* Remove actionStatusUpdateEvent and the handler service
* Use 256 chars for externalRef
* Increment the version for migration script
* Another feature had use v1_12_12 in a recent PR. So incrementing the
version.
* Create length limit for externalRef and add it to index
* Externalref will be much longer than 256 chars if controllerId is as
long as 256 chars
* Adding tests for verifying externalRef in controllerManagement
* Improve test to consider multiple externalRefs
* Fix issue in migration script for mssql server
* Fix documentation
Signed-off-by: Ravindranath Sandeep (INST-IOT/ESW-Imb)
<Sandeep.Ravindranath@bosch-si.com>
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/model/JpaAction.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/Action.java (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/SQL_SERVER/V1_12_13__add_action_external_id___SQL_SERVER.sql
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/ControllerManagementTest.java (diff)
The file was modifiedhawkbit-security-core/src/main/java/org/eclipse/hawkbit/security/SystemSecurityContext.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/ActionRepository.java (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/MYSQL/V1_12_13__add_action_external_id___MYSQL.sql
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/DB2/V1_12_13__add_action_external_id___DB2.sql
The file was modifiedhawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/ControllerManagement.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaControllerManagement.java (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/H2/V1_12_13__add_action_external_id___H2.sql
Commit bde3548846fbc7b8a31e7e3eb473e8e38288b1f0 by dominic.schabel
DDI supports sha256 (#869)
* Add SHA256 file hash to ddi GET outputs
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Integrate review findings for SHA256 changes
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Renamed hashes to base16hases in store() parameters
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Added missing javadoc according to sonarqube findings
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
The file was modifiedhawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/Artifact.java (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/SQL_SERVER/V1_12_14__add_sha256_hash___SQL_SERVER.sql
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/ArtifactManagementTest.java (diff)
The file was modifiedhawkbit-core/src/main/java/org/eclipse/hawkbit/artifact/repository/model/DbArtifactHash.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/ArtifactUpload.java (diff)
The file was modifiedhawkbit-rest/hawkbit-rest-docs/src/test/java/org/eclipse/hawkbit/rest/ddi/documentation/DdiApiModelProperties.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/model/JpaArtifact.java (diff)
The file was modifiedhawkbit-core/src/main/java/org/eclipse/hawkbit/artifact/repository/AbstractArtifactRepository.java (diff)
The file was modifiedhawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaArtifactManagement.java (diff)
The file was modifiedhawkbit-core/src/main/java/org/eclipse/hawkbit/artifact/repository/HashNotMatchException.java (diff)
The file was modifiedhawkbit-rest/hawkbit-ddi-resource/src/test/java/org/eclipse/hawkbit/ddi/rest/resource/DdiDeploymentBaseTest.java (diff)
The file was modifiedhawkbit-rest/hawkbit-ddi-resource/src/main/java/org/eclipse/hawkbit/ddi/rest/resource/DataConversionHelper.java (diff)
The file was modifiedhawkbit-artifact-repository-filesystem/src/test/java/org/eclipse/hawkbit/artifact/repository/ArtifactFilesystemTest.java (diff)
The file was modifiedhawkbit-dmf/hawkbit-dmf-amqp/src/test/java/org/eclipse/hawkbit/amqp/AmqpMessageDispatcherServiceTest.java (diff)
The file was modifiedhawkbit-artifact-repository-filesystem/src/main/java/org/eclipse/hawkbit/artifact/repository/ArtifactFilesystemRepository.java (diff)
The file was modifiedhawkbit-rest/hawkbit-rest-docs/src/test/java/org/eclipse/hawkbit/rest/ddi/documentation/RootControllerDocumentationTest.java (diff)
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/DB2/V1_12_14__add_sha256_hash___DB2.sql
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/MYSQL/V1_12_14__add_sha256_hash___MYSQL.sql
The file was addedhawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/H2/V1_12_14__add_sha256_hash___H2.sql
The file was modifiedhawkbit-rest/hawkbit-ddi-api/src/main/java/org/eclipse/hawkbit/ddi/json/model/DdiArtifactHash.java (diff)