Merged from release branch
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@181278 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fd0d1586cf
commit
0986131e1d
|
@ -1,6 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE xml>
|
||||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.data-publishing.gcat.1-3-0" date="${buildDate}">
|
||||
<Change>Removed the requirement of providing the id of an item in update #16740</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.data-publishing.gcat.1-2-0" date="${buildDate}">
|
||||
<Change>Separated REST class for Profile management from the logic which effectively manage profile on IS</Change>
|
||||
<Change>Tags are now properly created/added according to profile definition #16182</Change>
|
||||
|
|
|
@ -418,9 +418,9 @@ public class CKANPackage extends CKAN {
|
|||
public String update(String json) {
|
||||
try {
|
||||
JsonNode jsonNode = validateJson(json);
|
||||
this.itemID = jsonNode.get(ID_KEY).asText();
|
||||
|
||||
read();
|
||||
this.itemID = result.get(ID_KEY).asText();
|
||||
|
||||
Map<String, CKANResource> originalResources = new HashMap<>();
|
||||
ArrayNode originalResourcesarrayNode = (ArrayNode) result.get(RESOURCES_KEY);
|
||||
|
|
|
@ -289,7 +289,13 @@ public class CKANResource extends CKAN {
|
|||
}
|
||||
|
||||
protected boolean isStorageFile(URL url) {
|
||||
URL urlToCheck = getFinalURL(url);
|
||||
URL urlToCheck = url;
|
||||
try {
|
||||
urlToCheck = getFinalURL(url);
|
||||
}catch (Exception e) {
|
||||
// TODO Evaluate if we want to validate the URL. If th URL does not exists the service
|
||||
// could decide refuse the Resource Creation
|
||||
}
|
||||
if(urlToCheck.getHost().compareTo(URI_RESOLVER_STORAGE_HUB_HOST) == 0) {
|
||||
if(urlToCheck.getPath().startsWith(URI_RESOLVER_STORAGE_HUB_PATH)) {
|
||||
persistedURL = urlToCheck;
|
||||
|
|
Loading…
Reference in New Issue