diff --git a/CHANGELOG.md b/CHANGELOG.md index 1383ca6..a1e3898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,25 +10,32 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm **New Features** [#21643] Integrated with the content-moderator-system facilities +## [v1.0.3] - 2022-01-21 + +**Fixes** +- [#22691] Share Link on private items does not work + ## [v1.0.2] - 2021-06-03 **Fixes** -[#21560] Bug fixing property "visibility" Restricted/Public +- [#21560] Bug fixing property "visibility" Restricted/Public ## [v1.0.1] - 2021-05-11 **Fixes** -[#21387] Harmonize the jackson version to v.2.8.11 -Moved to maven-portal-bom.3.6.2 +- [#21387] Harmonize the jackson version to v.2.8.11 +- Moved to maven-portal-bom.3.6.2 ## [v1.0.0] - 2021-02-17 **Bug Fixes** -[#21259] remove the method that validates the URL +- [#21259] remove the method that validates the URL **New Features** -[#21153] Upgrade the maven-portal-bom to 3.6.1 version -[#20828] Revisited title size and format -[#19378] First Release +- [#21153] Upgrade the maven-portal-bom to 3.6.1 version +- [#20828] Revisited title size and format +- [#19378] First Release + + diff --git a/src/main/java/org/gcube/datacatalogue/utillibrary/server/DataCatalogueImpl.java b/src/main/java/org/gcube/datacatalogue/utillibrary/server/DataCatalogueImpl.java index 00a2028..9322f0a 100644 --- a/src/main/java/org/gcube/datacatalogue/utillibrary/server/DataCatalogueImpl.java +++ b/src/main/java/org/gcube/datacatalogue/utillibrary/server/DataCatalogueImpl.java @@ -790,6 +790,7 @@ public class DataCatalogueImpl implements DataCatalogue { // in order to avoid errors, the username is always converted String ckanUsername = CatalogueUtilMethods.fromUsernameToCKanUsername(username); + LOG.debug("username: "+username + " converted to ckanUsername: "+ckanUsername); // check in the hashmap first if (apiKeysMap.containsKey(ckanUsername)) { @@ -803,7 +804,7 @@ public class DataCatalogueImpl implements DataCatalogue { try { - String apiToReturn = dbCaller.getApiKeyFromUsername(username, State.ACTIVE.name().toLowerCase()); + String apiToReturn = dbCaller.getApiKeyFromUsername(ckanUsername, State.ACTIVE.name().toLowerCase()); // save into the hashmap if (apiToReturn != null)