From a38e2362e0e5e29109f93a405d3782148543bf44 Mon Sep 17 00:00:00 2001 From: Juan Manuel Leflet Estrada Date: Tue, 30 Jul 2024 17:28:17 +0200 Subject: [PATCH] Fix single weblogic rule Signed-off-by: Juan Manuel Leflet Estrada --- resources/rulesets.yaml | 2 +- resources/rulesets/eap7/137-weblogic.windup.yaml | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/resources/rulesets.yaml b/resources/rulesets.yaml index b9037e9..be67401 100644 --- a/resources/rulesets.yaml +++ b/resources/rulesets.yaml @@ -43,7 +43,7 @@ items: dependencies: - 10667615-e067-45b4-a925-563a79ea0949 - 1b2a0eef-511c-4c07-a36a-d301b15d8207 - checksum: 07b96755ed1dab1b3ad68ea91eb9c32582d82c977e3b1f502b1dd7e49bec7f94 + checksum: 75ccd0ab478914359cd502bbed87938cf69b61c3bb0b8b8e760a1e24dcd52d87 - uuid: 3c471738-dfcf-46e8-b803-df07c304acc7 name: eap8/eap7 description: This ruleset provides analysis of Java EE applications that need to change certain CDI-related method calls. diff --git a/resources/rulesets/eap7/137-weblogic.windup.yaml b/resources/rulesets/eap7/137-weblogic.windup.yaml index 938ca39..7f77c04 100644 --- a/resources/rulesets/eap7/137-weblogic.windup.yaml +++ b/resources/rulesets/eap7/137-weblogic.windup.yaml @@ -186,12 +186,13 @@ ``` ruleID: weblogic-eap7-08000 when: - java.referenced: - or: - - location: METHOD_CALL - pattern: weblogic.transaction.ClientTxHelper.getTransactionManager(*) - - location: METHOD_CALL - pattern: weblogic.transaction.TxHelper.getTransactionManager(*) + or: + - java.referenced: + location: METHOD_CALL + pattern: weblogic.transaction.ClientTxHelper.getTransactionManager(*) + - java.referenced: + location: METHOD_CALL + pattern: weblogic.transaction.TxHelper.getTransactionManager(*) - category: mandatory customVariables: [] description: WebLogic proprietary Clob JDBC object (OracleThinClob)