Patent ID: 9727599
Date: 2017-08-08
CPC Classifications: G06F

Claim:
1. A method for correcting an invalid script in a web application, comprising: determining an invalid reference in an invalid script; determining a storage location in a database corresponding to the invalid reference based on a data relationship mapping, in which the data relationship mapping indicates the correspondence between the reference and a storage location in the database; querying an up-to-date value at the storage location; determining the queried up-to-date value to be the correct value of the invalid reference; searching a response corresponding to the invalid reference using the determined correct value to determine the location of the correct value in the response; and creating a data correlation for the invalid reference according to the determined location and its context and updating an invalid data correlation corresponding to the invalid reference with the created data correlation, wherein the data correlation is determined by: wherein determining a correspondence between the created reference and a storage location in the database according to database statements caused by a request corresponding to the created reference for performing operations in the database and the actual value of the created reference comprises: determining a table related with the created reference in the database according to the database statements by: traversing the table using the actual value of the created reference to determine a matched column.