Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eclipse-ee4j/jersey
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.39
Choose a base ref
...
head repository: eclipse-ee4j/jersey
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.39.1
Choose a head ref
  • 9 commits
  • 431 files changed
  • 6 contributors

Commits on Feb 16, 2023

  1. 2.40-SNAPSHOT

    jersey-bot committed Feb 16, 2023
    Copy the full SHA
    340fa60 View commit details

Commits on Feb 23, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e028535 View commit details

Commits on Mar 6, 2023

  1. Copy the full SHA
    18903fd View commit details

Commits on Mar 22, 2023

  1. Add jdk client buffering test (#5280)

    * Add jdk client buffering test
    
    Signed-off-by: jansupol <jan.supol@oracle.com>
    jansupol authored Mar 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e40b9ac View commit details
  2. Updated archetypes and created a test to keep archetype versions up-t…

    …o-date
    
    Signed-off-by: jansupol <jan.supol@oracle.com>
    jansupol committed Mar 22, 2023
    Copy the full SHA
    957a483 View commit details
  3. Support 3rd party instantiators working with @context only

    Signed-off-by: jansupol <jan.supol@oracle.com>
    jansupol committed Mar 22, 2023
    Copy the full SHA
    6bd50c8 View commit details

Commits on Mar 23, 2023

  1. Get media type fix (#5282)

    * Fixed caching of content_type
    
    Signed-off-by: jansupol <jan.supol@oracle.com>
    jansupol authored Mar 23, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4964825 View commit details
  2. Hostname verifier for the Jetty connector

    Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
    senivam committed Mar 23, 2023
    Copy the full SHA
    0914c71 View commit details
  3. 2.39.1

    jersey-bot committed Mar 23, 2023
    Copy the full SHA
    74bf322 View commit details
Showing 431 changed files with 786 additions and 531 deletions.
2 changes: 1 addition & 1 deletion archetypes/jersey-example-java8-webapp/pom.xml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
<parent>
<groupId>org.glassfish.jersey.archetypes</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-example-java8-webapp</artifactId>
2 changes: 1 addition & 1 deletion archetypes/jersey-heroku-webapp/pom.xml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
<parent>
<groupId>org.glassfish.jersey.archetypes</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>
<packaging>maven-archetype</packaging>

Original file line number Diff line number Diff line change
@@ -100,12 +100,19 @@
<war>\${project.build.directory}/\${project.build.finalName}.war</war>
</configuration>
</plugin>
<plugin>
<!-- Surefire support for JUnit-5 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.mvn.plugin.version}</version>
</plugin>
</plugins>
</build>

<properties>
<jersey.version>${project.version}</jersey.version>
<jetty.version>9.4.49.v20220914</jetty.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jetty.version>9.4.28.v20200408</jetty.version>
<surefire.mvn.plugin.version>3.0.0-M7</surefire.mvn.plugin.version>
</properties>
</project>
2 changes: 1 addition & 1 deletion archetypes/jersey-quickstart-grizzly2/pom.xml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
<parent>
<groupId>org.glassfish.jersey.archetypes</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>
<artifactId>jersey-quickstart-grizzly2</artifactId>
<packaging>maven-archetype</packaging>
Original file line number Diff line number Diff line change
@@ -72,12 +72,19 @@
<mainClass>\${package}.Main</mainClass>
</configuration>
</plugin>
<plugin>
<!-- Surefire support for JUnit-5 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.mvn.plugin.version}</version>
</plugin>
</plugins>
</build>

<properties>
<jersey.version>${project.version}</jersey.version>
<junit-jupiter.version>5.9.1</junit-jupiter.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<surefire.mvn.plugin.version>3.0.0-M7</surefire.mvn.plugin.version>
</properties>
</project>
2 changes: 1 addition & 1 deletion archetypes/jersey-quickstart-webapp/pom.xml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
<parent>
<groupId>org.glassfish.jersey.archetypes</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>maven-archetype</packaging>
2 changes: 1 addition & 1 deletion archetypes/pom.xml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
<parent>
<groupId>org.glassfish.jersey</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<groupId>org.glassfish.jersey.archetypes</groupId>
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@

<groupId>org.glassfish.jersey</groupId>
<artifactId>jersey-bom</artifactId>
<version>2.39</version>
<version>2.39.1</version>
<packaging>pom</packaging>
<name>jersey-bom</name>

2 changes: 1 addition & 1 deletion bundles/apidocs/pom.xml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
<parent>
<groupId>org.glassfish.jersey.bundles</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>apidocs</artifactId>
2 changes: 1 addition & 1 deletion bundles/examples/pom.xml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
<parent>
<groupId>org.glassfish.jersey.bundles</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-examples</artifactId>
2 changes: 1 addition & 1 deletion bundles/jaxrs-ri/pom.xml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
<parent>
<groupId>org.glassfish.jersey.bundles</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jaxrs-ri</artifactId>
2 changes: 1 addition & 1 deletion bundles/pom.xml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
<parent>
<groupId>org.glassfish.jersey</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<groupId>org.glassfish.jersey.bundles</groupId>
2 changes: 1 addition & 1 deletion connectors/apache-connector/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.connectors</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-apache-connector</artifactId>
2 changes: 1 addition & 1 deletion connectors/apache5-connector/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.connectors</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-apache5-connector</artifactId>
2 changes: 1 addition & 1 deletion connectors/grizzly-connector/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.connectors</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-grizzly-connector</artifactId>
2 changes: 1 addition & 1 deletion connectors/helidon-connector/pom.xml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
<parent>
<artifactId>project</artifactId>
<groupId>org.glassfish.jersey.connectors</groupId>
<version>2.39</version>
<version>2.39.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

2 changes: 1 addition & 1 deletion connectors/jdk-connector/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.connectors</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-jdk-connector</artifactId>
2 changes: 1 addition & 1 deletion connectors/jetty-connector/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.connectors</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-jetty-connector</artifactId>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -154,16 +154,20 @@ class JettyConnector implements Connector {
}
if (httpClient == null) {
final SSLContext sslContext = jaxrsClient.getSslContext();
final SslContextFactory sslContextFactory = new SslContextFactory();
final SslContextFactory.Client sslContextFactory = new SslContextFactory.Client(false);
sslContextFactory.setSslContext(sslContext);
httpClient = new HttpClient(sslContextFactory);
}
this.client = httpClient;

Boolean enableHostnameVerification = (Boolean) config.getProperties()
.get(JettyClientProperties.ENABLE_SSL_HOSTNAME_VERIFICATION);
if (enableHostnameVerification != null && enableHostnameVerification) {
client.getSslContextFactory().setEndpointIdentificationAlgorithm("https");
if (enableHostnameVerification != null) {
final String verificationAlgorithm = enableHostnameVerification ? "HTTPS" : null;
client.getSslContextFactory().setEndpointIdentificationAlgorithm(verificationAlgorithm);
}
if (jaxrsClient.getHostnameVerifier() != null) {
client.getSslContextFactory().setHostnameVerifier(jaxrsClient.getHostnameVerifier());
}

final Object connectTimeout = config.getProperties().get(ClientProperties.CONNECT_TIMEOUT);
2 changes: 1 addition & 1 deletion connectors/netty-connector/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.connectors</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-netty-connector</artifactId>
2 changes: 1 addition & 1 deletion connectors/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<groupId>org.glassfish.jersey.connectors</groupId>
2 changes: 1 addition & 1 deletion containers/glassfish/jersey-gf-ejb/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers.glassfish</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-gf-ejb</artifactId>
2 changes: 1 addition & 1 deletion containers/glassfish/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<groupId>org.glassfish.jersey.containers.glassfish</groupId>
2 changes: 1 addition & 1 deletion containers/grizzly2-http/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-grizzly2-http</artifactId>
2 changes: 1 addition & 1 deletion containers/grizzly2-servlet/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-grizzly2-servlet</artifactId>
2 changes: 1 addition & 1 deletion containers/jdk-http/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-jdk-http</artifactId>
2 changes: 1 addition & 1 deletion containers/jersey-servlet-core/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-servlet-core</artifactId>
2 changes: 1 addition & 1 deletion containers/jersey-servlet/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-servlet</artifactId>
2 changes: 1 addition & 1 deletion containers/jetty-http/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<artifactId>project</artifactId>
<groupId>org.glassfish.jersey.containers</groupId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-jetty-http</artifactId>
2 changes: 1 addition & 1 deletion containers/jetty-servlet/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-jetty-servlet</artifactId>
2 changes: 1 addition & 1 deletion containers/netty-http/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-netty-http</artifactId>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -105,7 +105,7 @@ public synchronized OutputStream writeResponseStatusAndHeaders(long contentLengt

if (contentLength == -1) {
HttpUtil.setTransferEncodingChunked(response, true);
} else {
} else if (req.method() != HttpMethod.HEAD || !response.headers().contains(HttpHeaderNames.CONTENT_LENGTH)) {
response.headers().set(HttpHeaderNames.CONTENT_LENGTH, contentLength);
}

2 changes: 1 addition & 1 deletion containers/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<groupId>org.glassfish.jersey.containers</groupId>
2 changes: 1 addition & 1 deletion containers/simple-http/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<artifactId>jersey-container-simple-http</artifactId>
2 changes: 1 addition & 1 deletion core-client/pom.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
<parent>
<groupId>org.glassfish.jersey</groupId>
<artifactId>project</artifactId>
<version>2.39</version>
<version>2.39.1</version>
</parent>

<groupId>org.glassfish.jersey.core</groupId>
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@
import javax.ws.rs.ConstrainedTo;
import javax.ws.rs.RuntimeType;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyReader;
@@ -47,8 +48,8 @@ class ChunkedInputReader implements MessageBodyReader<ChunkedInput> {
private final Provider<PropertiesDelegate> propertiesDelegateProvider;

@Inject
public ChunkedInputReader(Provider<MessageBodyWorkers> messageBodyWorkers,
Provider<PropertiesDelegate> propertiesDelegateProvider) {
public ChunkedInputReader(@Context Provider<MessageBodyWorkers> messageBodyWorkers,
@Context Provider<PropertiesDelegate> propertiesDelegateProvider) {
this.messageBodyWorkers = messageBodyWorkers;
this.propertiesDelegateProvider = propertiesDelegateProvider;
}
Loading