Build failed in Jenkins: Olingo » olingo-odata4 #42

2022-02-26 Thread Apache Jenkins Server
See 


Changes:

[Michael Bolz] [OLINGO-1560] Set version to 4.9.0


--
Started by an SCM change
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on builds30 (ubuntu) in workspace 

The recommended git tool is: NONE
No credentials specified
 > git rev-parse --resolve-git-dir 
 >  # 
 > timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/olingo-odata4.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/olingo-odata4.git
 > git --version # timeout=10
 > git --version # 'git version 2.17.1'
 > git fetch --tags --progress -- 
 > https://git-wip-us.apache.org/repos/asf/olingo-odata4.git 
 > +refs/heads/master:refs/remotes/origin/master # timeout=10
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision c28e79077cf97179d0587d019bef7e211f7af149 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f c28e79077cf97179d0587d019bef7e211f7af149 # timeout=10
Commit message: "[OLINGO-1560] Set version to 4.9.0"
 > git rev-list --no-walk 2fbd91d8457b92a8b69f7e7a1bde406973a2eaad # timeout=10
[olingo-odata4] $ /home/jenkins/tools/maven/latest3/bin/mvn clean deploy 
-Papache.deploy,karaf
[INFO] Scanning for projects...
Downloading from Nexus: 
http://repository.apache.org/snapshots/org/apache/felix/maven-bundle-plugin/maven-metadata.xml
Progress (1): 571 B   Downloaded from Nexus: 
http://repository.apache.org/snapshots/org/apache/felix/maven-bundle-plugin/maven-metadata.xml
 (571 B at 785 B/s)
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.olingo:odata-karaf-features:pom:4.9.0
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 57, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.olingo:odata-server-osgi-sample:bundle:4.9.0
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 75, column 15
[WARNING] 'build.plugins.plugin.version' for 
org.apache.felix:maven-bundle-plugin is missing. @ line 93, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Olingo-OData   [pom]
[INFO] odata-lib  [pom]
[INFO] odata-commons-api   [bundle]
[INFO] odata-commons-core  [bundle]
[INFO] odata-client-api[bundle]
[INFO] odata-client-core   [bundle]
[INFO] odata-server-api[bundle]
[INFO] odata-server-core   [bundle]
[INFO] odata-server-core-ext  [jar]
[INFO] odata-server-tecsvc[war]
[INFO] odata-server-test  [jar]
[INFO] odata-ext  [pom]
[INFO] odata-client-proxy [jar]
[INFO] pojogen-maven-plugin  [maven-plugin]
[INFO] odata-client-android   [jar]
[INFO] odata-karaf[pom]
[INFO] odata-karaf-features   [pom]
[INFO] odata-samples  [pom]
[INFO] odata-server-osgi-sample[bundle]
[INFO] odata-karaf-fit[jar]
[INFO] odata-fit  [war]
[INFO] odata-dist [pom]
[INFO] Olingo-OData-Client-for-Android[pom]
[INFO] Olingo-OData-Client-for-Java   [pom]
[INFO] Olingo-OData-Server-for-Java   [pom]
[INFO] Olingo-OData-Server-Extension-for-Java [pom]
[INFO] Olingo-OData-J

[olingo-odata4] tag 4.9.0 created (now c28e790)

2022-02-26 Thread mibo
This is an automated email from the ASF dual-hosted git repository.

mibo pushed a change to tag 4.9.0
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git.


  at c28e790  (commit)
No new revisions were added by this update.


[olingo-odata4] branch master updated: [OLINGO-1560] Set version to 4.9.0

2022-02-26 Thread mibo
This is an automated email from the ASF dual-hosted git repository.

mibo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git


The following commit(s) were added to refs/heads/master by this push:
 new c28e790  [OLINGO-1560] Set version to 4.9.0
c28e790 is described below

commit c28e79077cf97179d0587d019bef7e211f7af149
Author: mibo 
AuthorDate: Sun Feb 27 07:34:32 2022 +0100

[OLINGO-1560] Set version to 4.9.0
---
 dist/android-lib/pom.xml  | 2 +-
 dist/client-lib/pom.xml   | 2 +-
 dist/javadoc/pom.xml  | 2 +-
 dist/pom.xml  | 2 +-
 dist/server-lib-ext/pom.xml   | 2 +-
 dist/server-lib/pom.xml   | 2 +-
 ext/client-android/pom.xml| 2 +-
 ext/client-proxy/pom.xml  | 2 +-
 ext/karaf/karaf-features/pom.xml  | 2 +-
 ext/karaf/karaf-fit/pom.xml   | 2 +-
 .../java/org/apache/olingo/osgi/itests/server/CarServiceTest.java | 2 +-
 ext/karaf/pom.xml | 2 +-
 ext/pojogen-maven-plugin/pom.xml  | 2 +-
 ext/pom.xml   | 2 +-
 fit/pom.xml   | 8 +++-
 lib/client-api/pom.xml| 2 +-
 lib/client-core/pom.xml   | 2 +-
 lib/commons-api/pom.xml   | 2 +-
 lib/commons-core/pom.xml  | 2 +-
 lib/pom.xml   | 2 +-
 lib/server-api/pom.xml| 2 +-
 lib/server-core-ext/pom.xml   | 2 +-
 lib/server-core/pom.xml   | 2 +-
 lib/server-tecsvc/pom.xml | 2 +-
 lib/server-test/pom.xml   | 2 +-
 pom.xml   | 4 ++--
 samples/client/pom.xml| 2 +-
 samples/osgi/server/pom.xml   | 2 +-
 samples/pom.xml   | 2 +-
 samples/server/pom.xml| 2 +-
 samples/tutorials/p0_all/pom.xml  | 4 ++--
 samples/tutorials/p10_media/pom.xml   | 4 ++--
 samples/tutorials/p11_batch/pom.xml   | 4 ++--
 samples/tutorials/p12_deep_insert/pom.xml | 4 ++--
 samples/tutorials/p12_deep_insert_preparation/pom.xml | 4 ++--
 samples/tutorials/p1_read/pom.xml | 4 ++--
 samples/tutorials/p2_readep/pom.xml   | 4 ++--
 samples/tutorials/p3_write/pom.xml| 4 ++--
 samples/tutorials/p4_navigation/pom.xml   | 4 ++--
 samples/tutorials/p5_queryoptions-tcs/pom.xml | 4 ++--
 samples/tutorials/p6_queryoptions-es/pom.xml  | 4 ++--
 samples/tutorials/p7_queryoptions-o/pom.xml   | 4 ++--
 samples/tutorials/p8_queryoptions-f/pom.xml   | 4 ++--
 samples/tutorials/p9_action/pom.xml   | 4 ++--
 samples/tutorials/p9_action_preparation/pom.xml   | 4 ++--
 samples/tutorials/pe_streaming/pom.xml| 4 ++--
 samples/tutorials/pom.xml | 2 +-
 47 files changed, 66 insertions(+), 68 deletions(-)

diff --git a/dist/android-lib/pom.xml b/dist/android-lib/pom.xml
index 71d0977..ecd92b9 100644
--- a/dist/android-lib/pom.xml
+++ b/dist/android-lib/pom.xml
@@ -31,7 +31,7 @@
   
 org.apache.olingo
 odata-dist
-4.9.0-SNAPSHOT
+4.9.0
 ..
   
 
diff --git a/dist/client-lib/pom.xml b/dist/client-lib/pom.xml
index 8f4ab1d..ee9545d 100644
--- a/dist/client-lib/pom.xml
+++ b/dist/client-lib/pom.xml
@@ -31,7 +31,7 @@
   
 org.apache.olingo
 odata-dist
-4.9.0-SNAPSHOT
+4.9.0
 ..
   
 
diff --git a/dist/javadoc/pom.xml b/dist/javadoc/pom.xml
index db42bb3..d77c907 100644
--- a/dist/javadoc/pom.xml
+++ b/dist/javadoc/pom.xml
@@ -31,7 +31,7 @@
   
 org.apache.olingo
 odata-dist
-4.9.0-SNAPSHOT
+4.9.0
 ..
   
 
diff --git a/dist/pom.xml b/dist/pom.xml
index ed3fcc1..907ec29 100644
--- a/dist/pom.xml
+++ b/dist/pom.xml
@@ -31,7 +31,7 @@
   
 org.apache.olingo
 odata-parent
-4.9.

Build failed in Jenkins: Olingo » olingo-odata4-all-profiles #21

2022-02-26 Thread Apache Jenkins Server
See 


Changes:

[Michael Bolz] [OLINGO-1554] Fix uniqueness of Content-ID in batch request

[Michael Bolz] [OLINGO-1413] Comment on thread-safty of ODataHandlerImpl

[Michael Bolz] Set up CodeQL scans

[Michael Bolz] Fixing a typo

[Michael Bolz] [OLINGO-1471] Adding support for multiple interior rings

[Michael Bolz] [OLINGO-1560] Excluded .github from RAT check

[Michael Bolz] [OLINGO-1560] Updated micro version of dependencies


--
[...truncated 1.43 MB...]
[INFO] --- maven-failsafe-plugin:2.22.2:integration-test (integration-test) @ 
odata-samples ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-source-plugin:3.2.1:jar-no-fork (attach-sources) @ 
odata-samples ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.2:verify (integration-test) @ 
odata-samples ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.0:check (checkstyle) @ odata-samples ---
[INFO] Starting audit...
Audit done.
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ odata-samples 
---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/olingo/odata-samples/4.9.0-SNAPSHOT/odata-samples-4.9.0-SNAPSHOT.pom
[INFO] 
[INFO] --- apache-rat-plugin:0.13:check (rat-check) @ odata-samples ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 66 implicit excludes (use -debug for more details).
[INFO] 26 explicit excludes (use -debug for more details).
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[INFO] 
[INFO] -< org.apache.olingo:odata-server-osgi-sample >-
[INFO] Building odata-server-osgi-sample 4.9.0-SNAPSHOT [19/46]
[INFO] ---[ bundle ]---
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ 
odata-server-osgi-sample ---
[INFO] Deleting 

[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce 
(enforce-output-timestamp-property) @ odata-server-osgi-sample ---
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-source (add-source) @ 
odata-server-osgi-sample ---
[INFO] Source directory: 

 added.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ 
odata-server-osgi-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ 
odata-server-osgi-sample ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to 

[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ 
odata-server-osgi-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
odata-server-osgi-sample ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-bundle-plugin:5.1.3:bundle (default-bundle) @ 
odata-server-osgi-sample ---
[WARNING] Bundle 
org.apache.olingo:odata-server-osgi-sample:bundle:4.9.0-SNAPSHOT : Unused 
Import-Package instructions: [org.apache.olingo.netty.server.api*] 
[INFO] 
[INFO] --- maven-site-plugin:3.9.1:attach-descriptor (attach-descriptor) @ 
odata-server-osgi-sample ---
[INFO] Skipping

Build failed in Jenkins: Olingo » olingo-odata4 #41

2022-02-26 Thread Apache Jenkins Server
See 


Changes:

[Michael Bolz] [OLINGO-1560] Updated micro version of dependencies


--
[...truncated 1.22 MB...]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ odata-samples ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ odata-samples 
---
[INFO] 
[INFO] --- maven-site-plugin:3.9.1:attach-descriptor (attach-descriptor) @ 
odata-samples ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.2:integration-test (integration-test) @ 
odata-samples ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-source-plugin:3.2.1:jar-no-fork (attach-sources) @ 
odata-samples ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.2:verify (integration-test) @ 
odata-samples ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.0:check (checkstyle) @ odata-samples ---
[INFO] Starting audit...
Audit done.
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ odata-samples 
---
[INFO] Installing 
 
to 
/home/jenkins/.m2/repository/org/apache/olingo/odata-samples/4.9.0-SNAPSHOT/odata-samples-4.9.0-SNAPSHOT.pom
[INFO] 
[INFO] --- apache-rat-plugin:0.13:check (rat-check) @ odata-samples ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 64 implicit excludes (use -debug for more details).
[INFO] 26 explicit excludes (use -debug for more details).
[INFO] 179 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 179 licenses.
[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ odata-samples ---
[INFO] Skipping artifact deployment
[INFO] 
[INFO] -< org.apache.olingo:odata-server-osgi-sample >-
[INFO] Building odata-server-osgi-sample 4.9.0-SNAPSHOT [19/28]
[INFO] ---[ bundle ]---
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ 
odata-server-osgi-sample ---
[INFO] Deleting 

[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce 
(enforce-output-timestamp-property) @ odata-server-osgi-sample ---
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-source (add-source) @ 
odata-server-osgi-sample ---
[INFO] Source directory: 

 added.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ 
odata-server-osgi-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ 
odata-server-osgi-sample ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to 

[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ 
odata-server-osgi-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
odata-server-osgi-sample ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-bundle-plugin:5.1.4:bundle (default-bundle) @ 
odata-server-osgi-sample ---
[WARNING] Bundle 
org.apache.olingo:odata-server-osgi-sample:bundle:4.9.0-SNAPSHOT : Unused 
Import-Package instructions: [org.apache.olingo.netty.server.api*] 
[INFO] Building bundle: 


[olingo-odata4] branch master updated: [OLINGO-1560] Updated micro version of dependencies

2022-02-26 Thread mibo
This is an automated email from the ASF dual-hosted git repository.

mibo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git


The following commit(s) were added to refs/heads/master by this push:
 new 2fbd91d  [OLINGO-1560] Updated micro version of dependencies
2fbd91d is described below

commit 2fbd91d8457b92a8b69f7e7a1bde406973a2eaad
Author: mibo 
AuthorDate: Sat Feb 26 12:39:18 2022 +0100

[OLINGO-1560] Updated micro version of dependencies
---
 .../AcceptHeaderAcceptCharsetHeaderITCase.java | 82 --
 .../fit/tecsvc/http/BasicBoundActionsITCase.java   |  5 +-
 .../olingo/fit/tecsvc/http/BasicHttpITCase.java| 23 +++---
 .../olingo/fit/tecsvc/http/BasicStreamITCase.java  | 25 +++
 .../tecsvc/http/DerivedAndMixedTypeTestITCase.java | 23 +++---
 .../fit/tecsvc/http/EntityReferenceITCase.java |  5 +-
 .../olingo/fit/tecsvc/http/InOperatorITCase.java   |  7 +-
 .../tecsvc/http/ODataVersionConformanceITCase.java | 17 ++---
 .../http/PreferHeaderForGetAndDeleteITCase.java| 33 -
 .../http/SelectOnComplexPropertiesITCase.java  | 11 +--
 .../response/batch/ODataBatchResponseManager.java  | 22 +++---
 pom.xml| 19 ++---
 12 files changed, 142 insertions(+), 130 deletions(-)

diff --git 
a/fit/src/test/java/org/apache/olingo/fit/tecsvc/http/AcceptHeaderAcceptCharsetHeaderITCase.java
 
b/fit/src/test/java/org/apache/olingo/fit/tecsvc/http/AcceptHeaderAcceptCharsetHeaderITCase.java
index e7b971e..8ada63c 100644
--- 
a/fit/src/test/java/org/apache/olingo/fit/tecsvc/http/AcceptHeaderAcceptCharsetHeaderITCase.java
+++ 
b/fit/src/test/java/org/apache/olingo/fit/tecsvc/http/AcceptHeaderAcceptCharsetHeaderITCase.java
@@ -18,13 +18,6 @@
  */
 package org.apache.olingo.fit.tecsvc.http;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-
-import java.net.HttpURLConnection;
-import java.net.URL;
-
 import org.apache.commons.io.IOUtils;
 import org.apache.olingo.client.api.ODataClient;
 import org.apache.olingo.commons.api.format.ContentType;
@@ -33,8 +26,18 @@ import org.apache.olingo.commons.api.http.HttpMethod;
 import org.apache.olingo.commons.api.http.HttpStatusCode;
 import org.apache.olingo.fit.AbstractBaseTestITCase;
 import org.apache.olingo.fit.tecsvc.TecSvcConst;
+import org.junit.Assert;
 import org.junit.Test;
 
+import java.io.IOException;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.nio.charset.Charset;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
 public class AcceptHeaderAcceptCharsetHeaderITCase extends 
AbstractBaseTestITCase {
 
   private static final String SERVICE_URI = TecSvcConst.BASE_URI + "/";
@@ -50,7 +53,7 @@ public class AcceptHeaderAcceptCharsetHeaderITCase extends 
AbstractBaseTestITCas
 
 assertEquals(HttpStatusCode.OK.getStatusCode(), 
connection.getResponseCode());
 
-final String content = IOUtils.toString(connection.getInputStream());
+final String content = IOUtils.toString(connection.getInputStream(), 
Charset.defaultCharset());
 assertNotNull(content);
   }
   
@@ -65,7 +68,7 @@ public class AcceptHeaderAcceptCharsetHeaderITCase extends 
AbstractBaseTestITCas
 
 assertEquals(HttpStatusCode.BAD_REQUEST.getStatusCode(), 
connection.getResponseCode());
 
-final String content = IOUtils.toString(connection.getErrorStream());
+final String content = IOUtils.toString(connection.getErrorStream(), 
Charset.defaultCharset());
 assertTrue(content.contains("The content-type range ' abc' is not 
supported as "
 + "value of the Accept header."));
   }
@@ -81,7 +84,7 @@ public class AcceptHeaderAcceptCharsetHeaderITCase extends 
AbstractBaseTestITCas
 
 assertEquals(HttpStatusCode.NOT_ACCEPTABLE.getStatusCode(), 
connection.getResponseCode());
 
-final String content = IOUtils.toString(connection.getErrorStream());
+final String content = IOUtils.toString(connection.getErrorStream(), 
Charset.defaultCharset());
 assertTrue(content.contains("The content-type range 'application/xyz' is "
 + "not supported as value of the Accept header."));
   }
@@ -106,7 +109,7 @@ public class AcceptHeaderAcceptCharsetHeaderITCase extends 
AbstractBaseTestITCas
 assertEquals("minimal", contentType.getParameter("odata.metadata"));
 assertEquals("utf-8", contentType.getParameter("charset"));
 
-final String content = IOUtils.toString(connection.getInputStream());
+final String content = IOUtils.toString(connection.getInputStream(), 
Charset.defaultCharset());
 assertNotNull(content);
   }
   
@@ -121,7 +124,7 @@ public class AcceptHeaderAcceptCharsetHeaderITCase extends 
AbstractBaseTestITCas
 
 assertEquals(HttpStatusCode.NOT_ACCEPTABLE.getStatusCode(), 
connection.getResponseCod

Build failed in Jenkins: Olingo » olingo-odata4 #40

2022-02-26 Thread Apache Jenkins Server
See 


Changes:

[Michael Bolz] [OLINGO-1471] Adding support for multiple interior rings

[Michael Bolz] [OLINGO-1560] Excluded .github from RAT check


--
[...truncated 1.18 MB...]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ odata-samples ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ odata-samples 
---
[INFO] 
[INFO] --- maven-site-plugin:3.9.1:attach-descriptor (attach-descriptor) @ 
odata-samples ---
[INFO] No site descriptor found: nothing to attach.
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.2:integration-test (integration-test) @ 
odata-samples ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-source-plugin:3.2.1:jar-no-fork (attach-sources) @ 
odata-samples ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.2:verify (integration-test) @ 
odata-samples ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.0:check (checkstyle) @ odata-samples ---
[INFO] Starting audit...
Audit done.
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ odata-samples 
---
[INFO] Installing 
 
to 
/home/jenkins/.m2/repository/org/apache/olingo/odata-samples/4.9.0-SNAPSHOT/odata-samples-4.9.0-SNAPSHOT.pom
[INFO] 
[INFO] --- apache-rat-plugin:0.13:check (rat-check) @ odata-samples ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 64 implicit excludes (use -debug for more details).
[INFO] 26 explicit excludes (use -debug for more details).
[INFO] 179 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 179 licenses.
[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ odata-samples ---
[INFO] Skipping artifact deployment
[INFO] 
[INFO] -< org.apache.olingo:odata-server-osgi-sample >-
[INFO] Building odata-server-osgi-sample 4.9.0-SNAPSHOT [19/28]
[INFO] ---[ bundle ]---
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ 
odata-server-osgi-sample ---
[INFO] Deleting 

[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce 
(enforce-output-timestamp-property) @ odata-server-osgi-sample ---
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-source (add-source) @ 
odata-server-osgi-sample ---
[INFO] Source directory: 

 added.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ 
odata-server-osgi-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ 
odata-server-osgi-sample ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to 

[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ 
odata-server-osgi-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ 
odata-server-osgi-sample ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ 
odata-server-osgi-sample ---
[INFO] 
[INFO] --- maven-bundle-plugin:5.1.4:bundle (default-bundle) @ 
odata-server-osgi-sample ---
[WARNING] Bundle 
org.apache.olingo:odata-server-osgi-sample:bundle:4.9.0-SNAPSHOT : Unused 
Import-Package instructions: [org.apache.olingo.netty.server.api*] 
[INFO] Building bun

[olingo-odata4] branch master updated: [OLINGO-1560] Excluded .github from RAT check

2022-02-26 Thread mibo
This is an automated email from the ASF dual-hosted git repository.

mibo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git


The following commit(s) were added to refs/heads/master by this push:
 new 7d4ad31  [OLINGO-1560] Excluded .github from RAT check
7d4ad31 is described below

commit 7d4ad31b2057d2b6ce2f23fba829c0c1d207ea61
Author: mibo 
AuthorDate: Sat Feb 26 11:29:31 2022 +0100

[OLINGO-1560] Excluded .github from RAT check
---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index 727f669..21268a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -535,6 +535,7 @@
 **/server-ref/**
 **/dependency-reduced-pom.xml
 **/.settings/**
+**/.github/**
**/SECURITY.md
   
 


[olingo-odata4] branch master updated: [OLINGO-1471] Adding support for multiple interior rings

2022-02-26 Thread mibo
This is an automated email from the ASF dual-hosted git repository.

mibo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git


The following commit(s) were added to refs/heads/master by this push:
 new 64b1a44  [OLINGO-1471] Adding support for multiple interior rings
64b1a44 is described below

commit 64b1a449de6271ff1b74f4927599ccfda553e0fc
Author: shawkins 
AuthorDate: Wed Jul 22 11:47:56 2020 -0400

[OLINGO-1471] Adding support for multiple interior rings
---
 .../core/deserializer/json/ODataJsonDeserializer.java   | 13 +++--
 .../deserializer/json/ODataJsonDeserializerEntityTest.java  | 13 -
 2 files changed, 15 insertions(+), 11 deletions(-)

diff --git 
a/lib/server-core/src/main/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializer.java
 
b/lib/server-core/src/main/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializer.java
index ea3cdf4..08f9263 100644
--- 
a/lib/server-core/src/main/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializer.java
+++ 
b/lib/server-core/src/main/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializer.java
@@ -971,13 +971,14 @@ public class ODataJsonDeserializer implements 
ODataDeserializer {
 
   private Polygon readGeoPolygon(final String name, final Geospatial.Dimension 
dimension, JsonNode node, SRID srid)
   throws DeserializerException, EdmPrimitiveTypeException {
-// GeoJSON would allow for more than one interior polygon (hole).
-// But there is no place in the data object to store this information so 
for now we throw an error.
 // There could be a more strict verification that the lines describe 
boundaries and have the correct winding order.
-if (node.isArray() && (node.size() == 1 || node.size() == 2)) {
-  return new Polygon(dimension, srid,
-  node.size() > 1 ? readGeoPointValues(name, dimension, 4, true, 
node.get(1)) : null,
-  readGeoPointValues(name, dimension, 4, true, node.get(0)));
+if (node.isArray() && (node.size() >= 1)) {
+  List interiors = new ArrayList<>();
+  for (int i = 1; i < node.size(); i++) {
+interiors.add(new LineString(dimension, srid, readGeoPointValues(name, 
dimension, 4, true, node.get(i;
+  }
+  return new Polygon(dimension, srid, interiors,
+  new LineString(dimension, srid, readGeoPointValues(name, dimension, 
4, true, node.get(0;
 }
 throw new DeserializerException("Invalid polygon values '" + node + "' in 
property: " + name,
 DeserializerException.MessageKeys.INVALID_VALUE_FOR_PROPERTY, name);
diff --git 
a/lib/server-test/src/test/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializerEntityTest.java
 
b/lib/server-test/src/test/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializerEntityTest.java
index 9de9b10..a6f380a 100644
--- 
a/lib/server-test/src/test/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializerEntityTest.java
+++ 
b/lib/server-test/src/test/java/org/apache/olingo/server/core/deserializer/json/ODataJsonDeserializerEntityTest.java
@@ -1046,6 +1046,14 @@ public class ODataJsonDeserializerEntityTest extends 
AbstractODataDeserializerTe
 entityType);
 polygon = (Polygon) entity.getProperties().get(0).getValue();
 assertEquals(0, polygon.getNumberOfInteriorRings());
+
+entity = deserialize("{\"" + entityType.getPropertyNames().get(0) + "\":{"
++ 
"\"type\":\"Polygon\",\"coordinates\":[[[0,0],[3,0],[3,3],[0,3],[0,0]],"
++ "[[1,1],[1,2],[2,2],[2,1],[1,1]],"
++ "[[1,1],[1,2],[2,2],[2,1],[1,1]]]}}",
+entityType);
+polygon = (Polygon) entity.getProperties().get(0).getValue();
+assertEquals(2, polygon.getNumberOfInteriorRings());
 
 expectException("{\"" + entityType.getPropertyNames().get(0) + "\":{"
 + 
"\"type\":\"Polygon\",\"coordinates\":{\"ext\":[[0,0],[3,0],[0,3],[0,0]]}}}", 
entityType,
@@ -1056,11 +1064,6 @@ public class ODataJsonDeserializerEntityTest extends 
AbstractODataDeserializerTe
 expectException("{\"" + entityType.getPropertyNames().get(0) + "\":{"
 + 
"\"type\":\"Polygon\",\"coordinates\":[[[0,0],[3,0],[3,3],[0,3],[42,87]]]}}", 
entityType,
 ContentType.JSON, 
DeserializerException.MessageKeys.INVALID_VALUE_FOR_PROPERTY);
-expectException("{\"" + entityType.getPropertyNames().get(0) + "\":{"
-+ 
"\"type\":\"Polygon\",\"coordinates\":[[[0,0],[3,0],[3,3],[0,3],[0,0]],"
-+ "[[1,1],[1,2],[2,2],[2,1],[1,1]],"
-+ "[[1,1],[1,2],[2,2],[2,1],[1,1]]]}}", entityType,
-ContentType.JSON, 
DeserializerException.MessageKeys.INVALID_VALUE_FOR_PROPERTY);
   }
 
   @Test


Build failed in Jenkins: Olingo » olingo-odata4 #39

2022-02-26 Thread Apache Jenkins Server
See 


Changes:

[Michael Bolz] Set up CodeQL scans

[Michael Bolz] Fixing a typo


--
Started by an SCM change
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on builds30 (ubuntu) in workspace 

The recommended git tool is: NONE
No credentials specified
 > git rev-parse --resolve-git-dir 
 >  # 
 > timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/olingo-odata4.git # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/olingo-odata4.git
 > git --version # timeout=10
 > git --version # 'git version 2.17.1'
 > git fetch --tags --progress -- 
 > https://git-wip-us.apache.org/repos/asf/olingo-odata4.git 
 > +refs/heads/master:refs/remotes/origin/master # timeout=10
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 5ff6482ff0c874326bc6782f0049c133f84d0fc7 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 5ff6482ff0c874326bc6782f0049c133f84d0fc7 # timeout=10
Commit message: "Fixing a typo"
 > git rev-list --no-walk 9be30316b101ba38d8a8dc0a0f4ccfacc42fa91a # timeout=10
[olingo-odata4] $ /home/jenkins/tools/maven/latest3/bin/mvn clean deploy 
-Papache.deploy,karaf
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.olingo:odata-karaf-features:pom:4.9.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 57, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.olingo:odata-server-osgi-sample:bundle:4.9.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 75, column 15
[WARNING] 'build.plugins.plugin.version' for 
org.apache.felix:maven-bundle-plugin is missing. @ line 93, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
[INFO] 
[INFO] Reactor Build Order:
[INFO] 
[INFO] Olingo-OData   [pom]
[INFO] odata-lib  [pom]
[INFO] odata-commons-api   [bundle]
[INFO] odata-commons-core  [bundle]
[INFO] odata-client-api[bundle]
[INFO] odata-client-core   [bundle]
[INFO] odata-server-api[bundle]
[INFO] odata-server-core   [bundle]
[INFO] odata-server-core-ext  [jar]
[INFO] odata-server-tecsvc[war]
[INFO] odata-server-test  [jar]
[INFO] odata-ext  [pom]
[INFO] odata-client-proxy [jar]
[INFO] pojogen-maven-plugin  [maven-plugin]
[INFO] odata-client-android   [jar]
[INFO] odata-karaf[pom]
[INFO] odata-karaf-features   [pom]
[INFO] odata-samples  [pom]
[INFO] odata-server-osgi-sample[bundle]
[INFO] odata-karaf-fit[jar]
[INFO] odata-fit  [war]
[INFO] odata-dist [pom]
[INFO] Olingo-OData-Client-for-Android[pom]
[INFO] Olingo-OData-Client-for-Java   [pom]
[INFO] Olingo-OData-Server-for-Java   [pom]
[INFO] Olingo-OData-Server-Extension-for-Java [pom]
[INFO] Olingo-OData-JavaDoc   [pom]
[INFO] odata-server-sample[war]
[INFO] 
[INFO] ---< org.apache.olingo:odata-parent >---
[INFO] Building Olingo-OData 4.9.0-SNAPSHOT