Correlating queries issued by applications with their source lines and analyzing applications for problem determination and where used analysis
Abstract
Provided are techniques for invoking with a processor executing on a computer a source code parser to obtain source information that includes a first location of an Application Programming Interface (API) call and parameters of the API call in source code of a client application, where the parameters the API call do not include query text for a query that is to be used to access a database; examining a stack trace to determine a second location of the API call in the stack trace; and deriving the query of the API call and a third location of the query in the source code by identifying the query in the stack trace at the location of the API call in the stack trace.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: obtaining, with a processor executing on a computer, information from source code of a client application that includes a location of an Application Programming Interface (API) call that issues a query and parameters of the API call in the source code, wherein query text for the query is not available until the source code is run; running the source code to obtain a stack trace that includes the location of the API call in the stack trace and the query text for the query issued by the API call; examining the stack trace to determine a match between the location of the API
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (5)
- Goldsmith, S., R. O'Callahan, and A. Aiken, "Relational Queries Over Program Traces", Proceedings of the 20th Annual ACM SIGPLAN Conference on Object-oriented Programming, Systems, Languages, and Applications, 2005 ACM, pp. 385-402.
- IBM Corp., "Developing Applications that Use the PureQuery API", [online], [Retrieved on Jun. 23, 2009]. Retrieved from the Internet at <URL: http://publib.boulder.ibm.com/infocenter/idm/v2r1/topic/com.ibm.datatools.javatool.runtime. doc/topics/cpdqruntop.html>, 4 pp.
- Juillerat, N., "Enforcing Code Security in Database Web Applications Using Libraries and Object Models", Proceedings of the 2007 Symposium on Library-Centric Software Design, 2007 ACM, pp. 31-41.
- Martin, M., B. Livshits, and M.S. Lam, "Finding Application Errors and Security Flaws Using PQL: a Program Query Language", Proceedings of the 20th Annual ACM SIGPLAN Conference on Object-oriented Programming, Systems, Languages, and Applications, 2005 ACM, pp. 365-383.
- The Eclipse Foundation, "Eclipse Home Page", [online], © 2009, [Retrieved on Jun. 23, 2009]. Retrieved from the Internet at , 5 pp.