12 Nov 2020 03:43 PM - last edited on 01 Sep 2022 11:27 AM by MaciejNeumann
I have tried to merge the services which are belongs to one process group, same context root and same application id but different web server name. I tried to valueOverride for server but rule doesn't get affected. Please suggest below is the rule
{
"type": "FULL_WEB_REQUEST",
"managementZones": [],
"name": "SOA-XXXX_Merge",
"description": "Merge the SOA -XXXX service",
"enabled": true,
"conditions": [
{
"attributeType": "CONTEXT_ROOT",
"compareOperations": [
{
"type": "EQUALS",
"negate": false,
"ignoreCase": false,
"values": [
"/soa-infra/services/default/XXXX"
]
}
]
}
],
"applicationId": null,
"contextRoot": null,
"serverName": {
"valueOverride": "ABCD_WebServer"
}
}
Solved! Go to Solution.
12 Nov 2020 04:44 PM
It looks valid. Are you sure you are comparing to a good value in your condition and you have a good type (FULL_WEB_REQUEST)?
Just a reminder - it is applied only for new requests from the time the API detection rule has been applied.
17 Nov 2020 08:50 AM
Thanks for your help,
Actual problem is, someone already created the rule to change the contextroot from it's original value. So rule created is not matching the value provided for contextroot, as the original value is something else.
I have increased the order and updated the original contextroot value and it did worked.
12 Nov 2020 05:21 PM
I am comparing the Context_Root value as exactly showing in metadata of service. Also kept under observation for couple of days which turns some more request to receive.
12 Nov 2020 05:51 PM
DId you try to replace EQUALS to STRING_EQUALS ? I did not notice it at the first sight. Context root is a string, so I guess STRING_EQUALS should the right compare operation to choose.
13 Nov 2020 09:17 AM
I tried to change STRING_EQUALS but it is automatically changing value to EQUALS. Even i tried to create new rule but same once I submit request then value is auto changed to EQUALS.
13 Nov 2020 11:46 AM
Below is service type and technology, where i am trying this rule. Hope it supports
Service type | Web request service |
Service main technology | Oracle WebLogic |