Skip to content
Snippets Groups Projects
Commit 42d2734c authored by Ndèye Anna Ndiaye's avatar Ndèye Anna Ndiaye Committed by Larbi Gharib
Browse files

Bugs on Policies

Change-Id: I3ccdce2ae1026b7b9fd16d0f11531a01f5cb6d4f
parent e8f71af4
No related branches found
No related tags found
No related merge requests found
......@@ -287,11 +287,11 @@ export default function Blueprints() {
<span>No blueprint found</span>
:
blueprints.map(blueprint =>
<GridItem xs={12} sm={12} md={2} key={blueprint.blueprintName}>
<GridItem xs={12} sm={12} md={2} key={blueprint.groupName}>
<Card profile>
<CardBody profile>
<a href="#" onClick={(e) => redirectToBlueprint(e, blueprint.blueprintName)}>
<a href="#" onClick={(e) => redirectToBlueprint(e, blueprint.groupName)}>
<h3 className={classes.cardTitle}>{blueprint.groupName ? blueprint.groupName : 'No blueprint name'}</h3>
<strong>Description:</strong>
......
......@@ -27,7 +27,7 @@ public class PolicyServlet extends HttpServlet {
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
List<Group> policies;
List<Policy> policies;
Policy singlePolicy;
if (!req.getParameter("groupName").equals("*")) {
......@@ -37,7 +37,7 @@ public class PolicyServlet extends HttpServlet {
resp.getOutputStream().write(JsonStream.serialize(dataStore.getPolicyDao().getObjects(statementList).get(0)).getBytes());
resp.setStatus(200);
} else {
policies = dataStore.getGroupDao().getObjects(null);
policies = dataStore.getPolicyDao().getObjects(null);
resp.getOutputStream().write(JsonStream.serialize(policies).getBytes());
resp.setStatus(200);
}
......
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