From cc4573fe2b1f486ff66c30987fb340047923b562 Mon Sep 17 00:00:00 2001 From: Ian-Nara Date: Sat, 13 Dec 2025 18:07:09 -0700 Subject: [PATCH 1/5] ignore validator requests --- .../uid2/optout/vertx/OptOutServiceVerticle.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java b/src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java index d049289..0365c93 100644 --- a/src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java +++ b/src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java @@ -362,6 +362,14 @@ private void handleReplicate(RoutingContext routingContext) { private void handleQueue(RoutingContext routingContext) { HttpServerRequest req = routingContext.request(); + + // skip sqs queueing for validator operators (reference-operator, candidate-operator) + // this avoids tripple processing of the same request + String instanceId = req.getHeader(Audit.UID_INSTANCE_ID_HEADER); + if (isValidatorOperatorRequest(instanceId)) { + return; + } + MultiMap params = req.params(); String identityHash = req.getParam(IDENTITY_HASH); String advertisingId = req.getParam(ADVERTISING_ID); @@ -491,6 +499,13 @@ private boolean isGetOrPost(HttpServerRequest req) { return method == HttpMethod.GET || method == HttpMethod.POST; } + private boolean isValidatorOperatorRequest(String instanceId) { + if (instanceId == null) { + return false; + } + return instanceId.contains("reference-operator") || instanceId.contains("candidate-operator"); + } + private void sendInternalServerError(HttpServerResponse resp, String why) { if (this.isVerbose && why != null) { resp.setStatusCode(500); From 06acd08f303394f1b01bf5b74d13552c14a6a82d Mon Sep 17 00:00:00 2001 From: Release Workflow Date: Sun, 14 Dec 2025 01:09:18 +0000 Subject: [PATCH 2/5] [CI Pipeline] Released Snapshot version: 4.5.1-alpha-136-SNAPSHOT --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 29de00c..deec00c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.uid2 uid2-optout - 4.5.0 + 4.5.1-alpha-136-SNAPSHOT uid2-optout https://github.com/IABTechLab/uid2-optout From 2f02816ea9127d8f2e7fd0913fd75aa717a7171a Mon Sep 17 00:00:00 2001 From: Ian-Nara Date: Sun, 14 Dec 2025 16:05:32 -0700 Subject: [PATCH 3/5] fix typo --- pom.xml | 2 +- src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index deec00c..29de00c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.uid2 uid2-optout - 4.5.1-alpha-136-SNAPSHOT + 4.5.0 uid2-optout https://github.com/IABTechLab/uid2-optout diff --git a/src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java b/src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java index 0365c93..5197ee4 100644 --- a/src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java +++ b/src/main/java/com/uid2/optout/vertx/OptOutServiceVerticle.java @@ -364,7 +364,7 @@ private void handleQueue(RoutingContext routingContext) { HttpServerRequest req = routingContext.request(); // skip sqs queueing for validator operators (reference-operator, candidate-operator) - // this avoids tripple processing of the same request + // this avoids triple processing of the same request String instanceId = req.getHeader(Audit.UID_INSTANCE_ID_HEADER); if (isValidatorOperatorRequest(instanceId)) { return; From 2b76ab43015f2bafc9e1ca8b9235e1a16ac092e5 Mon Sep 17 00:00:00 2001 From: Release Workflow Date: Sun, 14 Dec 2025 23:07:42 +0000 Subject: [PATCH 4/5] [CI Pipeline] Released Snapshot version: 4.5.1-alpha-137-SNAPSHOT --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 29de00c..5c36b0b 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.uid2 uid2-optout - 4.5.0 + 4.5.1-alpha-137-SNAPSHOT uid2-optout https://github.com/IABTechLab/uid2-optout From c21c760a66d56567b787dd6105131507586b1739 Mon Sep 17 00:00:00 2001 From: Ian-Nara Date: Mon, 15 Dec 2025 13:19:48 -0700 Subject: [PATCH 5/5] update pom version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5c36b0b..29de00c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.uid2 uid2-optout - 4.5.1-alpha-137-SNAPSHOT + 4.5.0 uid2-optout https://github.com/IABTechLab/uid2-optout