Ported bug fix made in version 1.4.5

This commit is contained in:
Luca Frosini 2021-03-09 12:16:42 +01:00
parent 93d886ba37
commit 4ece53108f
2 changed files with 19 additions and 0 deletions

View File

@ -10,6 +10,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Switched JSON management to gcube-jackson [#19735] - Switched JSON management to gcube-jackson [#19735]
- Added support to publish an item organizations not matching the current context [#19365] - Added support to publish an item organizations not matching the current context [#19365]
## [v1.4.5]
- Removed 'owner_org' field from result when reading an item #20919
## [v1.4.4] ## [v1.4.4]

View File

@ -569,6 +569,21 @@ public class CKANPackage extends CKAN {
} }
} }
@Override
public String read() {
try {
String ret = super.read();
result = mapper.readTree(ret);
result = cleanResult(result);
return getAsString(result);
} catch(WebApplicationException e) {
throw e;
} catch(Exception e) {
throw new InternalServerErrorException(e);
}
}
// see https://docs.ckan.org/en/latest/api/#ckan.logic.action.create.package_create // see https://docs.ckan.org/en/latest/api/#ckan.logic.action.create.package_create
@Override @Override
public String create(String json) { public String create(String json) {