Encoder class removed (url will have get parameter in clear)
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@129176 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4146f6ef77
commit
651efee64a
|
@ -1,14 +0,0 @@
|
||||||
package org.gcube.portlets.widgets.ckandatapublisherwidget.client;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* simply encode base64 strings
|
|
||||||
*/
|
|
||||||
public class Encoder {
|
|
||||||
public static native String encode(String toEncode) /*-{
|
|
||||||
return btoa(toEncode);
|
|
||||||
}-*/;
|
|
||||||
|
|
||||||
public static native String decode(String toDecode) /*-{
|
|
||||||
return atob(toDecode);
|
|
||||||
}-*/;
|
|
||||||
}
|
|
|
@ -10,7 +10,6 @@ import java.util.Map.Entry;
|
||||||
import org.gcube.portlets.user.gcubewidgets.client.elements.Span;
|
import org.gcube.portlets.user.gcubewidgets.client.elements.Span;
|
||||||
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.CKanPublisherService;
|
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.CKanPublisherService;
|
||||||
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.CKanPublisherServiceAsync;
|
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.CKanPublisherServiceAsync;
|
||||||
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.Encoder;
|
|
||||||
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.events.DeleteCustomFieldEvent;
|
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.events.DeleteCustomFieldEvent;
|
||||||
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.events.DeleteCustomFieldEventHandler;
|
import org.gcube.portlets.widgets.ckandatapublisherwidget.client.events.DeleteCustomFieldEventHandler;
|
||||||
import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.DatasetMetadataBean;
|
import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.DatasetMetadataBean;
|
||||||
|
@ -562,7 +561,7 @@ public class CreateDatasetForm extends Composite{
|
||||||
return;
|
return;
|
||||||
|
|
||||||
String finalPart = datasetUrl.substring(datasetIndex);
|
String finalPart = datasetUrl.substring(datasetIndex);
|
||||||
String finalPath = currentPath + "?" + Encoder.encode("goDataset") + "=" + Encoder.encode(finalPart);
|
String finalPath = currentPath + "?" + "goDataset" + "=" + finalPart;
|
||||||
Window.Location.assign(finalPath);
|
Window.Location.assign(finalPath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue