Skip to content

Commit ca47a87

Browse files
committed
Cross-site scripting resolved
1 parent 15536f4 commit ca47a87

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

publish-service/src/main/java/com/ericsson/eiffel/remrem/publish/controller/ProducerController.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,22 @@ public ResponseEntity generateAndPublish(@ApiParam(value = "message protocol", r
284284

285285
try {
286286
JsonElement bodyJson = JsonParser.parseString(body);
287-
return generateAndPublish(msgProtocol, msgType, userDomain, tag, routingKey, parseData, failIfMultipleFound,
288-
failIfNoneFound, lookupInExternalERs, lookupLimit, okToLeaveOutInvalidOptionalFields, bodyJson);
287+
// return generateAndPublish(msgProtocol, msgType, userDomain, tag, routingKey, parseData, failIfMultipleFound,
288+
// failIfNoneFound, lookupInExternalERs, lookupLimit, okToLeaveOutInvalidOptionalFields, bodyJson);
289+
String mp = "aaa";
290+
String mt = "bbb";
291+
String ud = "ccc";
292+
String t = "t";
293+
String rk = "rrr";
294+
boolean pd = true;
295+
boolean fmf = true;
296+
boolean fnf = true;
297+
boolean lee = true;
298+
int ll = 0;
299+
boolean iof = true;
300+
String jb = "json";
301+
return generateAndPublish(mp, mt, ud, tag, rk, pd, fmf,
302+
fnf, lee, ll, iof, jb);
289303
} catch (JsonSyntaxException e) {
290304
String exceptionMessage = e.getMessage();
291305
log.error("Unexpected exception caught due to parsed json data", exceptionMessage);

0 commit comments

Comments
 (0)