Skip to content
Snippets Groups Projects
Commit 5ea3444d authored by izabel's avatar izabel
Browse files

[LMS-948] add URL encoding; 'recipient' -> 'recipients'

SVN: 11434
parent 4074fb35
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
package ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.data; package ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.data;
import com.google.gwt.http.client.URL;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.CommonViewContext; import ch.systemsx.cisd.openbis.generic.client.web.client.application.CommonViewContext;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.Dict; import ch.systemsx.cisd.openbis.generic.client.web.client.application.Dict;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.GenericConstants; import ch.systemsx.cisd.openbis.generic.client.web.client.application.GenericConstants;
...@@ -116,7 +118,7 @@ public class DataSetUploadForm extends AbstractRegistrationForm ...@@ -116,7 +118,7 @@ public class DataSetUploadForm extends AbstractRegistrationForm
URLMethodWithParameters url = new URLMethodWithParameters(cifexUrl); URLMethodWithParameters url = new URLMethodWithParameters(cifexUrl);
url.addParameter(BasicConstant.CIFEX_URL_PARAMETER_COMMENT, comment); url.addParameter(BasicConstant.CIFEX_URL_PARAMETER_COMMENT, comment);
url.addParameter(BasicConstant.CIFEX_URL_PARAMETER_RECIPIENT, recipient); url.addParameter(BasicConstant.CIFEX_URL_PARAMETER_RECIPIENT, recipient);
return url.toString(); return URL.encode(url.toString());
} }
} }
...@@ -29,13 +29,14 @@ public class BasicConstant ...@@ -29,13 +29,14 @@ public class BasicConstant
/** Maximum length of a comment for uploading data sets to CIFEX. */ /** Maximum length of a comment for uploading data sets to CIFEX. */
public static final int MAX_LENGTH_OF_CIFEX_COMMENT = 1000; public static final int MAX_LENGTH_OF_CIFEX_COMMENT = 1000;
private BasicConstant()
{
}
/** Cifex URL parameter 'comment' */ /** Cifex URL parameter 'comment' */
public static final String CIFEX_URL_PARAMETER_COMMENT = "comment"; public static final String CIFEX_URL_PARAMETER_COMMENT = "comment";
/** Cifex URL parameter 'recipient' */ /** Cifex URL parameter 'recipient' */
public static final String CIFEX_URL_PARAMETER_RECIPIENT = "recipient"; public static final String CIFEX_URL_PARAMETER_RECIPIENT = "recipients";
private BasicConstant()
{
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment