Skip to content

Commit

Permalink
Fix management API not validating query configuration
Browse files Browse the repository at this point in the history
Fix management API not validating query configuration.Fixes: #3291
  • Loading branch information
DedunuKarunarathne committed Mar 28, 2024
1 parent 9bf3174 commit a00d6bc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ private static void serializeResult(Result result, OMElement queryEl, OMFactory
resEl.addAttribute(DBSFields.OUTPUT_TYPE, DBSFields.RDF, null);
resEl.addAttribute(DBSFields.RDF_BASE_URI, result.getRDFBaseURI(), null);
} else {
resEl.addAttribute(DBSFields.ELEMENT, result.getElementName(), null);
String elementName = result.getElementName();
if (elementName != null) {
resEl.addAttribute(DBSFields.ELEMENT, elementName, null);
}
String rowName = result.getRowName();
if (rowName != null) {
resEl.addAttribute(DBSFields.ROW_NAME, rowName, null);
Expand Down

0 comments on commit a00d6bc

Please sign in to comment.