Skip to content

Commit a1adf7b

Browse files
Merge pull request #377 from FAIRDataTeam/hotfix/1.16.1
Hotfix 1.16.1
2 parents dca7117 + b64ad1a commit a1adf7b

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88
## [Unreleased]
99

1010

11+
## [1.16.1]
12+
13+
### Fixed
14+
15+
- Permissions in DB migration (caused by refactoring)
16+
1117
## [1.16.0]
1218

1319
### Added
@@ -337,3 +343,4 @@ The first release of reference FAIR Data Point implementation.
337343
[1.14.0]: /../../tree/v1.14.0
338344
[1.15.0]: /../../tree/v1.15.0
339345
[1.16.0]: /../../tree/v1.16.0
346+
[1.16.1]: /../../tree/v1.16.1

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ We support the latest major and minor version with patch versions that fix vulne
66

77
| Version | Supported |
88
|---------| ------------------ |
9-
| 1.16.0 | :white_check_mark: |
9+
| 1.16.1 | :white_check_mark: |
1010
| < 1.16 | :x: |
1111

1212
## Current Recommendations
1313

14-
* Use 1.16.0 with the newest dependencies (and no known vulnerabilities)
14+
* Use 1.16.1 with the newest dependencies (and no known vulnerabilities)
1515

1616
## Reporting a Vulnerability
1717

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>nl.dtls</groupId>
1212
<artifactId>fairdatapoint</artifactId>
13-
<version>1.16.0</version>
13+
<version>1.16.1</version>
1414
<packaging>jar</packaging>
1515

1616
<name>FairDataPoint</name>

src/main/java/nl/dtls/fairdatapoint/database/mongo/migration/production/Migration_0004_ResourceDefinition.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class Migration_0004_ResourceDefinition {
5050
private static final String FIELD_MASK = "mask";
5151
private static final String FIELD_CODE = "code";
5252
private static final String FIELD_CLASS = "_class";
53+
5354
private static final int MASK_W = 2;
5455
private static final int MASK_C = 4;
5556
private static final int MASK_D = 8;
@@ -196,7 +197,7 @@ private Document createMembership(String uuid, String name, boolean owner) {
196197
final BasicBSONList allowedEntities = new BasicBSONList();
197198
allowedEntities.add(KnownUUIDs.RD_CATALOG_UUID);
198199
if (owner) {
199-
permissions.add(new BasicBSONObject().append(FIELD_MASK, MASK_A).append(FIELD_CODE, "W"));
200+
permissions.add(new BasicBSONObject().append(FIELD_MASK, MASK_W).append(FIELD_CODE, "W"));
200201
permissions.add(new BasicBSONObject().append(FIELD_MASK, MASK_D).append(FIELD_CODE, "D"));
201202
permissions.add(new BasicBSONObject().append(FIELD_MASK, MASK_A).append(FIELD_CODE, "A"));
202203
allowedEntities.add(KnownUUIDs.RD_DATASET_UUID);

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ metadataProperties:
5959

6060
openapi:
6161
title: FAIR Data Point API
62-
version: 1.16.0
62+
version: 1.16.1
6363
description: "The reference implementation of the metadata registration service: A service implementing the API specification. It contains an authentication system to allow maintainers to define and update metadata. Read-only access to the data is public."
6464
contact:
6565
name: Luiz Bonino

0 commit comments

Comments
 (0)