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

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f28a9ef2c Bump org.apache.pdfbox:pdfbox from 3.0.2 to 3.0.3 (#813)
8f28a9ef2c is described below

commit 8f28a9ef2c9362df2ea0fc337575b23987d901ce
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Sat Aug 10 09:39:17 2024 +0200

    Bump org.apache.pdfbox:pdfbox from 3.0.2 to 3.0.3 (#813)
    
    * Bump org.apache.pdfbox:pdfbox from 3.0.2 to 3.0.3
    
    Bumps org.apache.pdfbox:pdfbox from 3.0.2 to 3.0.3.
    
    ---
    updated-dependencies:
    - dependency-name: org.apache.pdfbox:pdfbox
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * Fixing previous Elasticsearch upgrade
    
    ---------
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Francesco Chicchiriccò <[email protected]>
---
 .../elasticsearch/dao/ElasticsearchAuditEventDAO.java            | 9 +++++----
 pom.xml                                                          | 2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git 
a/ext/elasticsearch/persistence/src/main/java/org/apache/syncope/core/persistence/elasticsearch/dao/ElasticsearchAuditEventDAO.java
 
b/ext/elasticsearch/persistence/src/main/java/org/apache/syncope/core/persistence/elasticsearch/dao/ElasticsearchAuditEventDAO.java
index 7aae45a866..43404adceb 100644
--- 
a/ext/elasticsearch/persistence/src/main/java/org/apache/syncope/core/persistence/elasticsearch/dao/ElasticsearchAuditEventDAO.java
+++ 
b/ext/elasticsearch/persistence/src/main/java/org/apache/syncope/core/persistence/elasticsearch/dao/ElasticsearchAuditEventDAO.java
@@ -30,6 +30,7 @@ import 
co.elastic.clients.elasticsearch._types.query_dsl.TextQueryType;
 import co.elastic.clients.elasticsearch.core.CountRequest;
 import co.elastic.clients.elasticsearch.core.SearchRequest;
 import co.elastic.clients.elasticsearch.core.search.Hit;
+import co.elastic.clients.json.JsonData;
 import com.fasterxml.jackson.databind.node.ObjectNode;
 import java.io.IOException;
 import java.time.OffsetDateTime;
@@ -110,16 +111,16 @@ public class ElasticsearchAuditEventDAO implements 
AuditEventDAO {
                 build());
 
         if (before != null) {
-            queries.add(new Query.Builder().range(RangeQuery.of(r -> 
r.number(n -> n.
+            queries.add(new Query.Builder().range(RangeQuery.of(r -> 
r.untyped(n -> n.
                     field("when").
-                    
lte((Double.valueOf(before.toInstant().toEpochMilli())))))).
+                    lte(JsonData.of(before.toInstant().toEpochMilli()))))).
                     build());
         }
 
         if (after != null) {
-            queries.add(new Query.Builder().range(RangeQuery.of(r -> 
r.number(n -> n.
+            queries.add(new Query.Builder().range(RangeQuery.of(r -> 
r.untyped(n -> n.
                     field("when").
-                    gte((Double.valueOf(after.toInstant().toEpochMilli())))))).
+                    gte(JsonData.of(after.toInstant().toEpochMilli()))))).
                     build());
         }
 
diff --git a/pom.xml b/pom.xml
index 5a44f392af..60fb2a4736 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1130,7 +1130,7 @@ under the License.
       <dependency>
         <groupId>org.apache.pdfbox</groupId>
         <artifactId>pdfbox</artifactId>
-        <version>3.0.2</version>
+        <version>3.0.3</version>
         <exclusions>
           <exclusion>
             <groupId>commons-logging</groupId>

Reply via email to