From 20ebe86b4cf24153b85c05d190257af5bd8f2ef1 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Wed, 31 Dec 2025 14:44:10 +0530 Subject: [PATCH 1/3] Update pom.xml dependencies for security fixes and enable tests in the build process --- pom.xml | 35 +++++++++++++++++++ .../com/contentstack/sdk/TestEntryModel.java | 1 + 2 files changed, 36 insertions(+) diff --git a/pom.xml b/pom.xml index f3317c31..14bf2575 100644 --- a/pom.xml +++ b/pom.xml @@ -172,6 +172,13 @@ json-simple ${json-simple-version} compile + + + + junit + junit + + @@ -215,6 +222,34 @@ kotlin-stdlib 2.1.0 + + + org.apache.commons + commons-lang3 + 3.18.0 + + + + org.springframework + spring-core + 6.2.11 + + + org.springframework + spring-beans + 6.2.11 + + + org.springframework + spring-web + 6.2.11 + + + + junit + junit + 4.13.2 + diff --git a/src/test/java/com/contentstack/sdk/TestEntryModel.java b/src/test/java/com/contentstack/sdk/TestEntryModel.java index 0da5c9fb..cbf9fbe2 100644 --- a/src/test/java/com/contentstack/sdk/TestEntryModel.java +++ b/src/test/java/com/contentstack/sdk/TestEntryModel.java @@ -254,6 +254,7 @@ void testConstructorWithPublishDetails() { JSONObject publishDetails = new JSONObject(); publishDetails.put("environment", "production"); publishDetails.put("time", "2024-01-01T00:00:00.000Z"); + // file deepcode ignore NoHardcodedCredentials/test: publishDetails.put("user", "user123"); JSONObject json = new JSONObject(); From 8a27208bf7e8c0fc9629dc1fc50333311caafd5e Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Wed, 31 Dec 2025 15:39:21 +0530 Subject: [PATCH 2/3] Update pom.xml to upgrade dependencies: rxjava to 3.1.11, retrofit to 3.0.0, jackson-databind to 2.19.2, and annotations to 26.0.2 for improved functionality and security. --- pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 14bf2575..0ed4c3ea 100644 --- a/pom.xml +++ b/pom.xml @@ -20,8 +20,8 @@ 3.3.1 3.4.1 3.0.0 - 3.1.10 - 2.11.0 + 3.1.11 + 3.0.0 5.1.0 0.8.5 1.18.36 @@ -184,7 +184,7 @@ com.fasterxml.jackson.core jackson-databind - 2.18.2 + 2.19.2 com.slack.api @@ -194,7 +194,7 @@ org.jetbrains annotations - 24.0.1 + 26.0.2 com.squareup.okhttp3 From 9191447c054cdd18fd66e8219f3bc48db6625f04 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Wed, 31 Dec 2025 20:39:35 +0530 Subject: [PATCH 3/3] Update LICENSE year to 2026 for copyright compliance --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index d78b6bc8..c2a603d8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2012 - 2025 Contentstack +Copyright (c) 2012 - 2026 Contentstack Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal