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:
parent
d409a4dd10
commit
b2c05a2641
|
@ -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()){
|
||||
|
|
|
@ -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()){
|
||||
|
|
Loading…
Reference in New Issue