IP Library Granted Patent US 11,436,004
Granted Patent B2
US 11,436,004 · App. 16/856,822 · Granted Sep 6, 2022

Calculating a patch target on an application server

Inventors: Er Qiang Ma (Beijing, CN); Alessio Soldano (Milan, IT)
Assignee: Red Hat, Inc.
G06F8/658G06F8/61H04L67/025H04L67/34
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,436,004
App. No.
16/856,822
Filed
Apr 23, 2020
Granted
Sep 6, 2022
Kind
B2
Art Unit
2192
USPC
717/168
Abstract

A method includes receiving, at an application server, a request to modify a target object, such as a resource object. The method further includes identifying, from the request, a first parameter and a second parameter and assigning the first parameter to a first variable and the second parameter to a second variable. The method then executes an operation to calculate the target object in view of the first and second variables.

Claims (61)

1. A method comprising:

receiving, by an application server, a request to modify a target resource object stored at the application server;

identifying, from the request, a first parameter corresponding to a patch target method and a second parameter corresponding to a path of the target resource object;

assigning the first parameter to a first variable and the second parameter to a second variable;

selecting a resource function of the application server in view of the first variable and the second variable; and

executing, by a processing device of the application server, the resource function to calculate a location of the target resource object at the application server in view of the first and second variables.

2. The method of claim 1 , further comprising:

modifying the target resource object in view of the request, wherein the request comprises an http request to patch a JSON file, a string object, or an XML file.

3. The method of claim 1 , wherein identifying the first parameter comprises:

determining whether the request includes a patch function; and

in response to determining that the request includes the patch function, assigning the patch function to the first variable.

4. The method of claim 3 , wherein identifying the first parameter further comprises:

in response to determining that the request does not include the patch function, assigning a default patch function to the first variable.

5. The method of claim 1 , wherein identifying the second parameter comprises:

determining whether the request includes a target path for the target resource object; and

in response to determining that the request includes the target path, assigning the target path to the second variable.

6. The method of claim 5 , wherein identifying the second parameter further comprises:

in response to determining that the request does not include the target path, determining whether a micro-profile configuration includes the target path; and

in response to determining that the micro-profile configuration includes the target path, assigning the target path to the second variable.

7. The method of claim 6 , wherein identifying the second parameter further comprises:

in response to determining that neither the request or the micro-profile configuration includes the target path, assigning a URL of the request to the second variable.

8. The method of claim 1 , wherein the resource function is selected from a resource object class in view of the first variable and the second variable.

9. A system comprising:

a memory; and

a processing device operatively coupled to the memory, the processing device to:

receive, from a client device, a request to modify a target resource object stored at an application server;

identify, from the request, a first parameter corresponding to a patch target method and a second parameter corresponding to a path of the target resource object;

assign the first parameter to a first variable and the second parameter to a second variable;

select a resource function of the application server in view of the first variable and the second variable; and

execute the resource function to calculate a location of the target resource object at the application server in view of the first and second variables.

10. The system of claim 9 , wherein the processing device is further to:

modify the target resource object in view of the request, where the request comprises an http request to patch a JSON file, a string object, or an XML file.

11. The system of claim 9 , wherein to identify the first parameter, the processing device is to:

determine whether the request includes a patch function; and

in response to determining that the request includes the patch function, assign the patch function to the first variable.

12. The system of claim 11 , wherein to identify the first parameter, the processing device is further to:

in response to determining that the request does not include the patch function, assign a default patch function to the first variable.

13. The system of claim 9 , wherein to identify the second parameter, the processing device is to:

determine whether the request includes a target path for the target resource object; and

in response to determining that the request includes the target path, assign the target path to the second variable.

14. The system of claim 13 , wherein to identify the second parameter, the processing device is further to:

in response to determining that the request does not include the target path, determine whether a micro-profile configuration includes the target path; and

in response to determining that the micro-profile configuration includes the target path, assign the target path to the second variable.

15. The system of claim 14 , wherein to identify the second parameter, the processing device is further to:

in response to determining that neither the request or the micro-profile configuration includes the target path, assign a URL of the request to the second variable.

16. The system of claim 9 , wherein the resource function is selected from a resource object class in view of the first variable and the second variable.

17. A non-transitory computer-readable storage medium including instructions that, when executed by a processing device, cause the processing device to:

receive, from a client device, a request to modify a target resource object stored at an application server;

identify, from the request, a first parameter corresponding to a patch target method and a second parameter corresponding to a path of the target resource object;

assign the first parameter to a first variable and the second parameter to a second variable;

select a resource function of the application server in view of the first variable and the second variable;

execute, by the processing device, the resource function to calculate a location of the target resource object at the application server in view of the first and second variables; and

modify the target resource object in view of the request.

18. The non-transitory computer-readable storage medium of claim 17 , wherein to identify the first parameter, the processing device is to:

determine whether the request includes a patch function; and

in response to determining that the request includes the patch function, assign the patch function to the first variable.

19. The non-transitory computer-readable storage medium of claim 18 , wherein to identify the first parameter, the processing device is further to:

in response to determining that the request does not include the patch function, assign a default patch function to the first variable.

20. The non-transitory computer-readable storage medium of claim 17 , wherein to identify the second parameter, the processing device is to:

determine whether the request includes a target path for the target resource object; and

in response to determining that the request includes the target path, assign the target path to the second variable.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 23, 2020
From: MA, ER QIANG; SOLDANO, ALESSIO
To: RED HAT, INC.
Reel/Frame 052480/0462 →
Continuity (1)
Related Publication 20210334088A1 · Oct 28, 2021