"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/remote/modifyobjecthandler.cpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

modifyobjecthandler.cpp  (icinga2-2.11.5):modifyobjecthandler.cpp  (icinga2-2.12.0)
skipping to change at line 68 skipping to change at line 68
HttpUtility::SendJsonError(response, params, 404, HttpUtility::SendJsonError(response, params, 404,
"No objects found.", "No objects found.",
DiagnosticInformation(ex)); DiagnosticInformation(ex));
return true; return true;
} }
Value attrsVal = params->Get("attrs"); Value attrsVal = params->Get("attrs");
if (attrsVal.GetReflectionType() != Dictionary::TypeInstance) { if (attrsVal.GetReflectionType() != Dictionary::TypeInstance) {
HttpUtility::SendJsonError(response, params, 400, HttpUtility::SendJsonError(response, params, 400,
"Invalid type for 'attrs' attribute specified. Dictionary "Invalid type for 'attrs' attribute specified. Dictionary
type is required."); type is required."
"Or is this a POST query and you missed adding a 'X-HTTP-
Method-Override: GET' header?");
return true; return true;
} }
Dictionary::Ptr attrs = attrsVal; Dictionary::Ptr attrs = attrsVal;
bool verbose = false; bool verbose = false;
if (params) if (params)
verbose = HttpUtility::GetLastParameter(params, "verbose"); verbose = HttpUtility::GetLastParameter(params, "verbose");
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)