Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

To have backward compatibility with Voldemort 0.70, keep storeName op…

…tional in doFetch in Read-only store servlet
  • Loading branch information...
commit a53341a8c16186e1f2b7b1a771a682704a88756c 1 parent 955176c
@rsumbaly rsumbaly authored
View
9 src/java/voldemort/server/http/gui/ReadOnlyStoreManagementServlet.java
@@ -160,7 +160,7 @@ private void doSwap(HttpServletRequest req, HttpServletResponse resp) throws IOE
private void doFetch(HttpServletRequest req, HttpServletResponse resp) throws IOException,
ServletException {
String fetchUrl = getRequired(req, "dir");
- String storeName = getRequired(req, "store");
+ String storeName = getOptional(req, "store");
// fetch the files if necessary
File fetchDir;
@@ -179,6 +179,13 @@ private void doFetch(HttpServletRequest req, HttpServletResponse resp) throws IO
resp.getWriter().write(fetchDir.getAbsolutePath());
}
+ private String getOptional(HttpServletRequest req, String name) {
+ String val = req.getParameter(name);
+ if(val == null)
+ return "";
+ return val;
+ }
+
private void doRollback(HttpServletRequest req) throws ServletException {
String storeName = getRequired(req, "store");
ReadOnlyStorageEngine store = getStore(storeName);
Please sign in to comment.
Something went wrong with that request. Please try again.