eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
690 stars 352 forks source link

Supplied Jetty version (9.1.1.v20140108) doesn't set Date header. #3223

Open jerseyrobot opened 9 years ago

jerseyrobot commented 9 years ago

Using the supplied jetty (9.1.1.v20140108) no Date header are returned in responses. Solution is to update Jetty version. This override makes Date header work again:

<jetty.version>9.2.13.v20150730</jetty.version>

And

<dependency>
            <groupId>org.glassfish.jersey.containers</groupId>
            <artifactId>jersey-container-jetty-servlet</artifactId>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.containers</groupId>
            <artifactId>jersey-container-jetty-http</artifactId>
            <exclusions>
<exclusion>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-server</artifactId>
</exclusion>
<exclusion>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-webapp</artifactId>
</exclusion>
<exclusion>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-util</artifactId>
</exclusion>
<exclusion>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-continuation</artifactId>
</exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
            <version>${jetty.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-webapp</artifactId>
            <version>${jetty.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-util</artifactId>
            <version>${jetty.version}</version>
        </dependency>

Affected Versions

[2.21]

jerseyrobot commented 6 years ago
jerseyrobot commented 9 years ago

@glassfishrobot Commented Reported by fholmqvist

jerseyrobot commented 9 years ago

@glassfishrobot Commented @AdamLindenthal said: Hi and thanks for opening this. As there are reported issues with async processing with Jetty versions 9.1.4 and above, I've linked the issues together and will move this one to backlog at least unless the async problems are resolved.

After this happens, I assume, we will upgrade to more recent version (probably 9.2.13 - the latest one with jdk7 support), so I hope this issue will be resolved while fixing the other.

Regards, Adam

jerseyrobot commented 9 years ago

@glassfishrobot Commented Issue-Links: depends on JERSEY-2949 relates to JERSEY-2940

jerseyrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JERSEY-2951