Automatically correcting invalid scripts in web applications

US10713237B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10713237-B2
Application numberUS-201715623544-A
CountryUS
Kind codeB2
Filing dateJun 15, 2017
Priority dateOct 30, 2013
Publication dateJul 14, 2020
Grant dateJul 14, 2020

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

According to an aspect, a method for correcting an invalid script in a web application includes determining an invalid reference in an invalid script. A storage location is determined in a database corresponding to the invalid reference based on a data relationship mapping, wherein the data relationship mapping indicates the correspondence between the reference and a storage location in the database. An up-to-date value at the storage location is queried and he queried up-to-date value is determined to be the correct value of the invalid reference.

First claim

Opening claim text (preview).

What is claimed is: 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. 2. The method according to claim 1 , wherein the data correlation is determined by: in response to creating a reference, determining a correspondence between the created reference and a storage location in the database; and generating the data relationship mapping based on the determined correspondence. 3. The method according to claim 2 , wherein determining a correspondence between the created reference and a storage location in the database comprises: 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, wherein the actual value of the created reference is included in a response corresponding to the created reference. 4. The method according to claim 3 , 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; and traversing the table using the actual value of the created reference to determine a matched column. 5. An apparatus for correcting an invalid script in a web application comprising: a memory having computer readable instructions; and a processor for executing the computer readable instructions, the computer readable instructions including: 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. 6. The apparatus according to claim 5 , wherein the data correlation is determined by: in response to creating a reference, determining a correspondence between the created reference and a storage location in the database; and generating the data relationship mapping based on the determined correspondence. 7. The apparatus according to claim 6 , wherein determining a correspondence between the created reference and a storage location in the database comprises: 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, wherein the actual value of the created reference is included in a response corresponding to the created reference. 8. The apparatus according to claim 7 , 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; and traversing the table using the actual value of the created reference to determine a matched column. 9. A computer program product for correcting an invalid script in a web application, the computer program product comprising computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a computer to cause the computer to perform a method 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, wherein 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; 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. 10. The computer program product according to claim 9 , wherein the data correlation is determined by: in response to creating a reference, determining a correspondence between the created reference and a storage location in the database; and generating the data relationship mapping based on the determined correspondence. 11. The computer program product according to claim 9 , wherein determining a correspondence between the created reference and a storage location in the database comprises: 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, wherein the actual value of the created reference is included in a response corresponding to the created reference. 12. The computer program product according to claim 11 , 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; and traversing the table using the actual value of the created reference to determine a matched column.

Assignees

Inventors

Classifications

  • Indexing; Web crawling techniques · CPC title

  • Tablespace storage structures; Management thereof · CPC title

  • Ensuring data consistency and integrity · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10713237B2 cover?
According to an aspect, a method for correcting an invalid script in a web application includes determining an invalid reference in an invalid script. A storage location is determined in a database corresponding to the invalid reference based on a data relationship mapping, wherein the data relationship mapping indicates the correspondence between the reference and a storage location in the dat…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F16/2365. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jul 14 2020 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 5 related publications on this page (citations in our corpus or others sharing the same primary CPC).