Removed owner_org from the read item refs #20919

This commit is contained in:
Luca Frosini 2021-03-09 11:30:12 +01:00
parent bbf1755f72
commit dbefb6c6e2
3 changed files with 20 additions and 1 deletions

View File

@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for gCube Catalogue (gCat) Service
## [v1.4.5-SNAPSHOT]
- Removed 'owner_org' field from result when reading an item #20919
## [v1.4.4]

View File

@ -12,7 +12,7 @@
<groupId>org.gcube.data-publishing</groupId>
<artifactId>gcat</artifactId>
<packaging>war</packaging>
<version>1.4.4</version>
<version>1.4.5-SNAPSHOT</version>
<name>gCube Catalogue (gCat) Service</name>
<description>
This service allows any client to publish on the gCube Catalogue.

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 http://docs.ckan.org/en/latest/api/#ckan.logic.action.create.package_create
@Override
public String create(String json) {