You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2022/09/01 20:55:20 UTC

[directory-server] branch master updated: Fixed a bug in the trigger interceptor: we weren't checking for the attribute name while processing a modification, but the values. That led to a parsing error, and a test failuer (although the test was disabled ;-)

This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git


The following commit(s) were added to refs/heads/master by this push:
     new 73a2111188 Fixed a bug in the trigger interceptor: we weren't checking for the attribute name while processing a modification, but the values. That led to a parsing error, and a test failuer (although the test was disabled ;-)
73a2111188 is described below

commit 73a211118863adc70b9424f0b22ce9d9915e47e6
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Thu Sep 1 22:54:54 2022 +0200

    Fixed a bug in the trigger interceptor: we weren't checking for the
    attribute name while processing a modification, but the values. That led
    to a parsing error, and a test failuer (although the test was disabled
    ;-)
---
 .../java/org/apache/directory/server/core/trigger/TriggerSpecCache.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interceptors/trigger/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java b/interceptors/trigger/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java
index e8c453b79a..fac9752759 100644
--- a/interceptors/trigger/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java
+++ b/interceptors/trigger/src/main/java/org/apache/directory/server/core/trigger/TriggerSpecCache.java
@@ -239,7 +239,7 @@ public class TriggerSpecCache
 
         for ( Modification mod : mods )
         {
-            isTriggerSpecModified |= mod.getAttribute().contains( PRESCRIPTIVE_TRIGGER_ATTR );
+            isTriggerSpecModified |= mod.getAttribute().getAttributeType().getNames().contains( PRESCRIPTIVE_TRIGGER_ATTR );
         }
 
         if ( isTriggerSpecModified )