IP Library › Granted Patent US 11,429,688
Granted Patent B2
US 11,429,688 · App. 16/824,614 · Granted Aug 30, 2022

Correcting a URL within a REST API call

Inventors: Tymoteusz Gedliczka (Cracow, PL); Tomasz Kania (Tarnow, PL); Piotr Grzywna (Cracow, PL); Krzysztof Pitula (Tarnow, PL); Maciej Madej (Cracow, PL); Szymon Brandys (Cracow, PL)
Assignee: International Business Machines Corporation
G06F16/9566G06N5/047G06N20/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,429,688
App. No.
16/824,614
Granted
Aug 30, 2022
Kind
B2
Abstract

Technology for making corrections to URL and/or URI requests (herein generically referred to as “UR requests”) based on machine learning of patterns that can be gleaned from previously received UR requests. The patterns are then used to correct new UR requests that are received with errors in the resource location path. In some embodiments, the errors detected and corrected are path errors. In some embodiments the path error is an erroneous inclusion of an extraneous reserved slash (“/”) character, which, when detected, is replaced in the UR string with its corresponding proper code (for example, - -%2F- -).

Claims (64)

1. A computer implemented method (CIM) comprising:

receiving a plurality of historical UR (uniform resource) data sets, with each historical UR data set including information indicative of a UR path string;

determining, by machine logic, a first UR pattern based on at least some UR data sets of the plurality of UR data sets;

receiving a new UR data set, with the new UR data set including information indicative of a new UR path string;

determining, by machine logic, that the UR path string of the new UR data set is close to the first pattern and has an error that prevents the UR path string of the new UR request from fully matching the first pattern; and

correcting, by machine logic, the UR path string of the new UR data set, to fully match the first pattern to obtain a corrected version of the new UR data set;

wherein:

the new URL data set is a request for a REST (representational state transfer) server; and the new URL data set further includes a command.

2. The CIM of claim 1 wherein:

the first pattern includes a plurality of separator characters;

the determination that the UR path string of the new UR data set is close to the first pattern and has an error, includes a determination that the UR path string of the new UR data set is erroneous in that it includes an extraneous instance of the separator character; and

the correction of the UR path string includes replacing the extraneous separator code with UR code for the character corresponding to the extraneous instance of the separator character.

3. The CIM of claim 2 wherein:

the separator character is a slash; and

the UR code for the character corresponding to the extraneous instance of the separator code is a percent encoding sub-string.

4. The CIM of claim 1 wherein the command of the new URL data set is one of the following: GET, PUT or DELETE.

5. The CIM of claim 1 wherein:

the first pattern includes an ordered plurality of parts including a plurality of separator character parts and a plurality of UR attribute string parts; and

at least one UR attribute string of the plurality of UR attribute string parts is a variable string that can vary, at least somewhat, with respect to alphanumeric characters that will meet the UR attribute string.

6. A computer program product (CPP) comprising:

a set of storage device(s); and

computer code stored collectively in the set of storage device(s), with the computer code including data and instructions to cause a processor(s) set to perform at least the following operations:

receiving a plurality of historical UR (uniform resource) data sets, with each historical UR data set including information indicative of a UR path string,

determining, by machine logic, a first UR pattern based on at least some UR data sets of the plurality of UR data sets,

receiving a new UR data set, with the new UR data set including information indicative of a new UR path string,

determining, by machine logic, that the UR path string of the new UR data set is close to the first pattern and has an error that prevents the UR path string of the new UR request from fully matching the first pattern, and

correcting, by machine logic, the UR path string of the new UR data set, to fully match the first pattern to obtain a corrected version of the new UR data set,

wherein:

the new URL data set is a request for a REST (representational state transfer) server, and

the new URL data set further includes a command.

7. The CPP of claim 6 wherein:

the first pattern includes a plurality of separator characters;

the determination that the UR path string of the new UR data set is close to the first pattern and has an error, includes a determination that the UR path string of the new UR data set is erroneous in that it includes an extraneous instance of the separator character; and

the correction of the UR path string includes replacing the extraneous separator code with UR code for the character corresponding to the extraneous instance of the separator character.

8. The CPP of claim 7 wherein:

the separator character is a slash; and

the UR code for the character corresponding to the extraneous instance of the separator code is a percent encoding sub-string.

9. The CPP of claim 6 wherein the command of the new URL data set is one of the following: GET, PUT or DELETE.

10. The CPP of claim 6 wherein:

the first pattern includes an ordered plurality of parts including a plurality of separator character parts and a plurality of UR attribute string parts; and

at least one UR attribute string of the plurality of UR attribute string parts is a variable string that can vary, at least somewhat, with respect to alphanumeric characters that will meet the UR attribute string.

11. A computer system (CS) comprising:

a processor(s) set;

a set of storage device(s); and

computer code stored collectively in the set of storage device(s), with the computer code including data and instructions to cause the processor(s) set to perform at least the following operations:

receiving a plurality of historical UR (uniform resource) data sets, with each historical UR data set including information indicative of a UR path string,

determining, by machine logic, a first UR pattern based on at least some UR data sets of the plurality of UR data sets,

receiving a new UR data set, with the new UR data set including information indicative of a new UR path string,

determining, by machine logic, that the UR path string of the new UR data set is close to the first pattern and has an error that prevents the UR path string of the new UR request from fully matching the first pattern, and

correcting, by machine logic, the UR path string of the new UR data set, to fully match the first pattern to obtain a corrected version of the new UR data set,

wherein:

the new URL data set is a request for a REST (representational state transfer) server, and

the new URL data set further includes a command.

12. The CS of claim 11 wherein:

the first pattern includes a plurality of separator characters;

the determination that the UR path string of the new UR data set is close to the first pattern and has an error, includes a determination that the UR path string of the new UR data set is erroneous in that it includes an extraneous instance of the separator character; and

the correction of the UR path string includes replacing the extraneous separator code with UR code for the character corresponding to the extraneous instance of the separator character.

13. The CS of claim 12 wherein:

the separator character is a slash; and

the UR code for the character corresponding to the extraneous instance of the separator code is a percent encoding sub-string.

14. The CS of claim 11 wherein the command of the new URL data set is one of the following: GET, PUT or DELETE.

15. The CS of claim 11 wherein:

the first pattern includes an ordered plurality of parts including a plurality of separator character parts and a plurality of UR attribute string parts; and

at least one UR attribute string of the plurality of UR attribute string parts is a variable string that can vary, at least somewhat, with respect to alphanumeric characters that will meet the UR attribute string.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 19, 2020
From: GEDLICZKA, TYMOTEUSZ; KANIA, TOMASZ; GRZYWNA, PIOTR; PITULA, KRZYSZTOF; MADEJ, MACIEJ; BRANDYS, SZYMON
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 052172/0534 →
Continuity (1)
Related Publication 20210294869A1 · Sep 23, 2021