minor fixes for url generation

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@139733 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-06 18:04:02 +00:00
parent d409a4dd10
commit b2c05a2641
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
package org.gcube.data_catalogue.grsf_publish_ws.services;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
@ -242,7 +241,7 @@ public class GrsfPublisherFisheryService {
responseBean.setId(id);
status = Status.CREATED;
responseBean.setError(null);
responseBean.setProductUrl(catalogue.getPortletUrl() + "?" + URLEncoder.encode("path=/dataset/" + futureName, "UTF-8"));
responseBean.setProductUrl(catalogue.getUrlFromDatasetIdOrName(id));
responseBean.setKbUuid(record.getUuid());
if(!groups.isEmpty()){

View File

@ -1,6 +1,5 @@
package org.gcube.data_catalogue.grsf_publish_ws.services;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
@ -237,7 +236,7 @@ public class GrsfPublisherStockService {
logger.info("Product created! Id is " + id);
responseBean.setId(id);
status = Status.CREATED;
responseBean.setProductUrl(catalogue.getPortletUrl() + "?" + URLEncoder.encode("path=/dataset/" + futureName, "UTF-8"));
responseBean.setProductUrl(catalogue.getUrlFromDatasetIdOrName(id));
responseBean.setKbUuid(record.getUuid());
if(!groups.isEmpty()){