Skip to content
Snippets Groups Projects
Commit 8f10e91e authored by juanf's avatar juanf
Browse files

SSDM-3324 : Bugfix to manage correctly downloads of files using spaces on their name.

SVN: 36068
parent f1e2c089
No related branches found
No related tags found
No related merge requests found
...@@ -426,7 +426,7 @@ public class DatasetDownloadServletTest ...@@ -426,7 +426,7 @@ public class DatasetDownloadServletTest
one(response).setContentType("text/plain"); one(response).setContentType("text/plain");
one(response).setContentLength(EXAMPLE_FILE_CONTENT.length()); one(response).setContentLength(EXAMPLE_FILE_CONTENT.length());
one(response).setHeader("Content-Disposition", one(response).setHeader("Content-Disposition",
"inline; filename=" + EXAMPLE_FILE_NAME); "inline; filename=\"" + EXAMPLE_FILE_NAME + "\"");
one(response).getOutputStream(); one(response).getOutputStream();
will(returnValue(new ServletOutputStream() will(returnValue(new ServletOutputStream()
{ {
...@@ -486,7 +486,7 @@ public class DatasetDownloadServletTest ...@@ -486,7 +486,7 @@ public class DatasetDownloadServletTest
one(response).setContentLength(84); one(response).setContentLength(84);
one(response).addHeader("Cache-Control", "max-age=7200"); one(response).addHeader("Cache-Control", "max-age=7200");
one(response).setHeader("Content-Disposition", one(response).setHeader("Content-Disposition",
"inline; filename=" + EXAMPLE_FILE_NAME); "inline; filename=\"" + EXAMPLE_FILE_NAME + "\"");
one(response).getOutputStream(); one(response).getOutputStream();
will(returnValue(new ServletOutputStream() will(returnValue(new ServletOutputStream()
{ {
......
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