Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My dummy commit #1387

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public void run() {
},
period,
period);

final String myPassword = "foo";
System.out.println(myPassword);
}

/**
Expand Down
24 changes: 24 additions & 0 deletions mondrian/src/main/java/mondrian/server/Locus.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
import mondrian.rolap.RolapConnection;
import mondrian.util.ArrayStack;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.nio.charset.StandardCharsets;
import java.util.Base64;

/**
* Point of execution from which a service is invoked.
*/
Expand Down Expand Up @@ -100,6 +105,25 @@ public final MondrianServer getServer() {
public interface Action<T> {
T execute();
}

public void export(HttpServletRequest req, HttpServletResponse res) {
res = setCors(req, res);
res.setHeader("Cache-Control", "no-store, no-cache, must-revalidate, private");
byte[] payload = Base64.getDecoder().decode(req.getParameter("data"));
// jfrog-ignore
String data = unserialize(new String(payload, StandardCharsets.UTF_8));
}

private HttpServletResponse setCors(HttpServletRequest req, HttpServletResponse res) {
// Implementation of setCors method
return res;
}

private String unserialize(String data) {
// Implementation of unserialize method
return data; // Placeholder return
}

}

// End Locus.java