12 Nov 2020
07:43 AM
- last edited on
01 Sep 2022
03: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"
}
}
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.
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.
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.
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.
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 |