Revize 04398d38
Přidáno uživatelem Pavel Fidranský před asi 6 roky(ů)
sources/src/main/java/cz/zcu/kiv/offscreen/servlets/api/RemoveDiagram.java | ||
---|---|---|
20 | 20 |
|
21 | 21 |
int loggedUserId = getUserId(request); |
22 | 22 |
|
23 |
String diagramId = request.getParameter("diagram_id");
|
|
23 |
String diagramId = request.getParameter("diagramId");
|
|
24 | 24 |
|
25 | 25 |
if (Strings.isNullOrEmpty(diagramId)) { |
26 | 26 |
response.sendError(HttpServletResponse.SC_BAD_REQUEST); |
sources/src/main/java/cz/zcu/kiv/offscreen/servlets/api/SaveDiagram.java | ||
---|---|---|
4 | 4 |
import cz.zcu.kiv.offscreen.servlets.BaseServlet; |
5 | 5 |
import cz.zcu.kiv.offscreen.user.DB; |
6 | 6 |
import cz.zcu.kiv.offscreen.user.Diagram; |
7 |
import org.apache.commons.lang.StringUtils; |
|
8 | 7 |
|
9 | 8 |
import javax.servlet.http.HttpServletRequest; |
10 | 9 |
import javax.servlet.http.HttpServletResponse; |
... | ... | |
25 | 24 |
|
26 | 25 |
int loggedUserId = getUserId(request); |
27 | 26 |
|
28 |
String diagramId = request.getParameter("diagram_id");
|
|
27 |
String diagramId = request.getParameter("diagramId");
|
|
29 | 28 |
String name = request.getParameter("name"); |
30 |
String graphJson = request.getParameter("graph_json");
|
|
31 |
String isPublic = StringUtils.defaultIfBlank(request.getParameter("public"), "0");
|
|
29 |
String graphJson = request.getParameter("graphJson");
|
|
30 |
String isPublic = request.getParameter("public");
|
|
32 | 31 |
|
33 | 32 |
// input parameters are invalid |
34 | 33 |
if (Strings.isNullOrEmpty(name) || Strings.isNullOrEmpty(graphJson)) { |
Také k dispozici: Unified diff
unified parameter names to use camelCase convention