Rule Definition
The purpose is to avoid to use the deprecated components as currently good and appropriate new version of the same is available. The deprecated component may be dropped sometime in near future without any intimation.
Using deprecated components could lead to security compliancy issues.
Remediation
Please refer to this page to check replacement alternatives : https://openui5.hana.ondemand.com/#/api/jQuery.sap
Violation Code Sample
jQuery.sap.sjax({
url: "http://localhost/qmacro/test",
dataType: "json"
});
jQuery.sap.syncGet("syncGet_url", { dataType: "json" });
jQuery.sap.syncGetJSON("syncGetJSON_url", { dataType: "json" });
jQuery.sap.syncGetText("syncGetText_url", { dataType: "json" });
jQuery.sap.syncPost("syncPost_url", { dataType: "json" });
Reference
https://openui5.hana.ondemand.com/#/api/jQuery.sap
Related Technologies
Technical Criterion
CWE-477 - Use of Obsolete Function
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.