-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from wultra/develop
Prepare release 0.23.0
- Loading branch information
Showing
31 changed files
with
1,544 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
- openjdk11 | ||
script: mvn -DskipTests=true clean package | ||
branches: | ||
only: | ||
- master | ||
- coverity_scan | ||
env: | ||
global: | ||
- secure: "HdkS3LONKdXYlW83TLwobYK+YIZBujkG8JuEyfSlueFEwYZ2Pk0GmQZP4Q5b50w4VqE1tnAvHmSg4q/ShP+NreH0EzBdnwFaUV+pts0mdwqk50g6JqQE8dbj2AU4wPrkungW9E1xWH6iuxQJbQnJCtgqGMfXHPpML5/0XLJtie7/T+1rTJE9zDTct+IRk1s4aYjEMWm5Bkm4A+BDYAEwfoeesgQ1Qj46+FSLVFnO28x0RkSy/Ucq1SBolTCxw6X4Q9cMCpmkQ5kQj3cdSf968WQJazECzzY0Ev9sv1NfZCYhV5nb9zlIt0CMbcbogUA+rBAg0Vw/TdMz3y8UM5b7CU9TG90WvB8psA++d26XOVRz42oBkXwh6rO/yUdAaDEzTRzgjE1ESOBJSpcr3pjSGWb6DJgW2lNW6JjmBGmOqSsmBHVa3VGAXlxvS/aUHU/LH/oC7YkNf2jhjl+M1fZwt+mQO5QhFBhS2BB+VnFPMPFpyJcwdZJI6DJzXPSj7LFdYtjI7F68+s2a7lgzVtSL3vXVq2cD+qQP4AjR7Ekd05+1SBHLvaCsktrZJ6lcmKQUwyTGYel7uzmL6et9vZ1eS5b3u5YSeKNmxwcJ0XPBduh1n+NQX1vtpNSgJX4dSplmFn3grO4ujDptyFoyC4Qc8OGQWTAav+m14+OcKPPUZCI=" | ||
- secure: "hUmHJZJmFBXV8j8SCVOEWGTcRlqAcllfWDwXz+owY5cWIOtDRvMrZXOvgupRsAHzRL7BUAsKo8k7/eqeZVfjO+zSlYLr3/06krCv5T/8GQTwHv3nTNq3r03GLZpYypuUapfUFCCVQchafWvYuNs7O5IsL1YHcRB5MjwbobARw1AezkEs+0n9kIeEofTFDZntILKXYuEO4Xa44KOzOEenxHieBeKgUpa43JFH/Qoh96qumqt3US+F4raHTwDG8KgNKc7bEzMdGxZ8MrfwljZP0teuc6B6/mPsIh8ZNdWTnsxq04M6Qe3fvCrkyUOyHZsAVA0xoSK2pTuMkAQOF0c9tLYcs1aOg4gM/tOsbgQa8iS5loC+zxPo5UgixIwGg/QxnQTHZLrOTCpsQqGbtqK5qTP/2v6FXKOUQ8tnvth8DQpsyI/FUKe0KEZYs5WSen5anXIkWE7fITlVUXaUvNAILIzM2nAdaYnhdnyUaVNfjvIVIwiciEzBL7FiuZnVRcfGaX2HTqp9embnFW43kpkSypvDUwaBFhsLDLVgr6xyurYwdWD6Ot+gwN6BMT8ajPnqSRTtiesdYGOu+uQ5AnwkRpeD87r6C1yHTAeyMlPVpVoslpw6cocEWlBNOR4oMwHoqcV9/ygjHdHBnZeWO7oEoJtds1oY6WmFzZM2TuToPbk=" | ||
|
||
before_install: | ||
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- | ||
|
||
script: mvn clean package -DskipTests=true | ||
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- | ||
|
||
addons: | ||
coverity_scan: | ||
project: | ||
name: lime-company/powerauth-push-server | ||
description: Build submitted via Travis CI | ||
notification_email: petr@wultra.com | ||
build_command_prepend: mvn clean | ||
build_command: mvn compile -DskipTests=true | ||
branch_pattern: master | ||
name: "wultra/powerauth-push-server" | ||
description: "Build submitted via Travis CI" | ||
notification_email: roman.strobl@wultra.com | ||
build_command_prepend: "mvn clean" | ||
build_command: "mvn -DskipTests=true compile" | ||
branch_pattern: coverity_scan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Migration from 0.22.0 to 0.23.0 | ||
|
||
## Database changes | ||
|
||
Following DB changes occurred between version 0.22.0 and 0.23.0: | ||
- Added unique index (`activationId`, `push_token`) in table `push_device_registration` | ||
- The existing `push_device_activation` index in table `push_device_registration` was changed to unique | ||
|
||
The DDL script for Oracle: | ||
```sql | ||
CREATE UNIQUE INDEX PUSH_DEVICE_ACTIVATION_TOKEN ON PUSH_DEVICE_REGISTRATION(ACTIVATION_ID, PUSH_TOKEN); | ||
|
||
DROP INDEX PUSH_DEVICE_ACTIVATION; | ||
CREATE UNIQUE INDEX PUSH_DEVICE_ACTIVATION ON PUSH_DEVICE_REGISTRATION(ACTIVATION_ID); | ||
``` | ||
|
||
The DDL script for MySQL: | ||
```sql | ||
CREATE UNIQUE INDEX `push_device_activation_token` ON `push_device_registration`(`activation_id`, `push_token`); | ||
|
||
DROP INDEX `push_device_activation` ON `push_device_registration`; | ||
CREATE UNIQUE INDEX `push_device_activation` ON `push_device_registration`(`activation_id`); | ||
``` | ||
|
||
In case either of the index updates fails, delete existing duplicate rows. Rows with newest timestamp_last_registered should be preserved. | ||
|
||
## Device Registration Changes | ||
|
||
Following changes of device registration have been applied in release `0.23.0`: | ||
- A device can no longer be registered with the same `activationId` and multiple related `pushtoken` values. | ||
This change was introduced because Google and Apple do not always expire existing push tokens. When the device | ||
receives a new push token, the device registration endpoint updates the `pushtoken` value for an existing activation instead of | ||
creating a new device registration. Thus the old push token is removed from database. | ||
- It is no longer possible to register a device without associated activation. The `activationId` parameter must be | ||
always sent with device registration request. | ||
- It is possible to re-register a device with same `activationId` and `pushtoken`. The registration timestamp is updated in this case. | ||
- It is possible to register a device with multiple `activationIds` associated with a single `pushtoken`. Such | ||
device registration must be initiated using the new endpoint created for this use case: | ||
[Create Device for Multiple Associated Activations](./Push-Server-API.md#create-device-for-multiple-associated-activations). | ||
Multiple activations are used in master-child activation schemes. The functionality needs to be enabled | ||
using a configuration property [for enabling multiple activations](./Deploying-Push-Server.md#enabling-multiple-associated-activations-in-device-registration), | ||
because it is less secure than the case when a single associated activation is allowed for a push token. | ||
- Database indexes are now applied to enforce database consistency for device registrations: | ||
- The (`activationId`) value must be unique in the device registration table. Each `activationId` must have exactly one associated `pushtoken`. | ||
- The (`activationId`, `pushtoken`) combination must be unique in the device registration table. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.