Skip to content

Commit

Permalink
Merge pull request #377 from FAIRDataTeam/hotfix/1.16.1
Browse files Browse the repository at this point in the history
Hotfix 1.16.1
  • Loading branch information
MarekSuchanek authored Jan 16, 2023
2 parents dca7117 + b64ad1a commit a1adf7b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [1.16.1]

### Fixed

- Permissions in DB migration (caused by refactoring)

## [1.16.0]

### Added
Expand Down Expand Up @@ -337,3 +343,4 @@ The first release of reference FAIR Data Point implementation.
[1.14.0]: /../../tree/v1.14.0
[1.15.0]: /../../tree/v1.15.0
[1.16.0]: /../../tree/v1.16.0
[1.16.1]: /../../tree/v1.16.1
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ We support the latest major and minor version with patch versions that fix vulne

| Version | Supported |
|---------| ------------------ |
| 1.16.0 | :white_check_mark: |
| 1.16.1 | :white_check_mark: |
| < 1.16 | :x: |

## Current Recommendations

* Use 1.16.0 with the newest dependencies (and no known vulnerabilities)
* Use 1.16.1 with the newest dependencies (and no known vulnerabilities)

## Reporting a Vulnerability

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>nl.dtls</groupId>
<artifactId>fairdatapoint</artifactId>
<version>1.16.0</version>
<version>1.16.1</version>
<packaging>jar</packaging>

<name>FairDataPoint</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class Migration_0004_ResourceDefinition {
private static final String FIELD_MASK = "mask";
private static final String FIELD_CODE = "code";
private static final String FIELD_CLASS = "_class";

private static final int MASK_W = 2;
private static final int MASK_C = 4;
private static final int MASK_D = 8;
Expand Down Expand Up @@ -196,7 +197,7 @@ private Document createMembership(String uuid, String name, boolean owner) {
final BasicBSONList allowedEntities = new BasicBSONList();
allowedEntities.add(KnownUUIDs.RD_CATALOG_UUID);
if (owner) {
permissions.add(new BasicBSONObject().append(FIELD_MASK, MASK_A).append(FIELD_CODE, "W"));
permissions.add(new BasicBSONObject().append(FIELD_MASK, MASK_W).append(FIELD_CODE, "W"));
permissions.add(new BasicBSONObject().append(FIELD_MASK, MASK_D).append(FIELD_CODE, "D"));
permissions.add(new BasicBSONObject().append(FIELD_MASK, MASK_A).append(FIELD_CODE, "A"));
allowedEntities.add(KnownUUIDs.RD_DATASET_UUID);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ metadataProperties:

openapi:
title: FAIR Data Point API
version: 1.16.0
version: 1.16.1
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."
contact:
name: Luiz Bonino
Expand Down

0 comments on commit a1adf7b

Please sign in to comment.