Merge branch 'jetty-9.4.x' into jetty-9.4.x-3978-http2_vulnerabilities
This commit is contained in:
commit
764fcd63a1
51
VERSION.txt
51
VERSION.txt
|
@ -1,11 +1,56 @@
|
|||
jetty-9.4.20-SNAPSHOT
|
||||
jetty-9.4.21-SNAPSHOT
|
||||
|
||||
jetty-9.4.20.v20190813 - 13 August 2019
|
||||
+ 300 Implement Deflater / Inflater Object Pool
|
||||
+ 2061 WebSocket hangs in blockingWrite
|
||||
+ 3601 HTTP2 stall on reset streams
|
||||
+ 3648 javax.websocket client container incorrectly creates Server
|
||||
SslContextFactory
|
||||
+ 3698 Missing WebSocket ServerContainer after server restart
|
||||
+ 3700 stackoverflow in WebAppClassLoaderUrlStreamTest
|
||||
+ 3708 Swap various java.lang.String replace() methods for better performant
|
||||
ones
|
||||
+ 3731 Add testing of CDI behaviors
|
||||
+ 3736 NPE from WebAppClassLoader during CDI
|
||||
+ 3746 ClassCastException in WriteFlusher.java - IdleState cannot be cast to
|
||||
FailedState
|
||||
+ 3749 Memory leak while processing AsyncListener annotations
|
||||
+ 3755 ServerWithAnnotations doesn't do anything
|
||||
+ 3758 Avoid sending empty trailer frames for http/2 requests
|
||||
+ 3782 X-Forwarded-Port overrides X-Forwarded-For
|
||||
+ 3786 ALPN support for Java 14
|
||||
+ 3798 ClasspathPattern match method throws NPE. URI can be null
|
||||
+ 3799 Programmatically added listeners from
|
||||
ServletContextListener.contextInitialzed() are not called
|
||||
+ 3804 Weld/CDI XML backwards compat
|
||||
+ 3805 XmlConfiguration odd behavior for numbers
|
||||
+ 3806 The error page handler didn't process correctly in proxy
|
||||
+ 3815 PropertyFileLoginModule adds user principle as a role
|
||||
+ 3822 trustAll will not work on some servers
|
||||
+ 3829 Avoid sending empty trailer frames for http/2 responses
|
||||
+ 3835 WebSocketSession are not being stopped properly
|
||||
+ 3840 Byte-range request performance problems with large files
|
||||
+ 3856 Different behaviour with maxFormContentSize=0 if Content-Length header
|
||||
is present/missing
|
||||
+ 3876 WebSocketPartialListener is only called for initial frames, not for
|
||||
continuation frames
|
||||
+ 3884 @WebSocket without @OnWebSocketMessage handler fails when receiving a
|
||||
continuation frame
|
||||
+ 3888 BufferUtil.toBuffer(Resource resource,boolean direct) does not like
|
||||
large (4G+) Resources
|
||||
+ 3906 Fix for #3840 breaks Path encapsulation in PathResource
|
||||
+ 3929 Deadlock between new HTTP2Connection() and Server.stop()
|
||||
+ 3940 Double initialization of Log
|
||||
+ 3957 CustomRequestLog bad usage of MethodHandles.lookup()
|
||||
+ 3960 Fix HttpConfiguration copy constructor
|
||||
+ 3969 X-Forwarded-Port header customization isn't possible
|
||||
|
||||
jetty-9.4.19.v20190610 - 10 June 2019
|
||||
+ 2909 Remove B64Code
|
||||
+ 3332 jetty-maven-plugin - transitive dependencies not loaded from
|
||||
"target/classes"
|
||||
+ 3498 WebSocket Session.suspend() now suspends incoming frames instead
|
||||
of reads
|
||||
+ 3498 WebSocket Session.suspend() now suspends incoming frames instead of
|
||||
reads
|
||||
+ 3534 Use System nanoTime, not currentTimeMillis for IdleTimeout
|
||||
+ 3550 Server becomes unresponsive after sitting idle from a load spike
|
||||
+ 3562 InetAccessHandler should be able to apply to a certain port or
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>apache-jsp</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>apache-jstl</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>build-resources</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>Jetty :: Build Resources</name>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>example-async-rest</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>example-async-rest</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.examples</groupId>
|
||||
<artifactId>examples-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.examples</groupId>
|
||||
<artifactId>examples-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-alpn-client</artifactId>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-alpn-server</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-alpn-parent</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-annotations</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-ant</artifactId>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
|
@ -53,331 +53,331 @@
|
|||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>apache-jsp</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>apache-jstl</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-client</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-java-client</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-java-server</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-openjdk8-client</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-openjdk8-server</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-conscrypt-client</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-conscrypt-server</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-alpn-server</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-annotations</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-ant</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-client</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-continuation</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-deploy</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-distribution</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<type>zip</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-distribution</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<type>tar.gz</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.fcgi</groupId>
|
||||
<artifactId>fcgi-client</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.fcgi</groupId>
|
||||
<artifactId>fcgi-server</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.gcloud</groupId>
|
||||
<artifactId>jetty-gcloud-session-manager</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-home</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<type>zip</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-home</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<type>tar.gz</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-http</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-client</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-common</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-hpack</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-http-client-transport</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-server</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-http-spi</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>infinispan-common</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>infinispan-remote-query</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>infinispan-embedded-query</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-hazelcast</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-io</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-jaas</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-jaspi</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-jmx</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-jndi</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.memcached</groupId>
|
||||
<artifactId>jetty-memcached-sessions</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-nosql</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-boot</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-boot-jsp</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-boot-warurl</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-httpservice</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-plus</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-proxy</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-quickstart</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-rewrite</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-security</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-server</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlet</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlets</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-spring</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-unixsocket</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-util</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-util-ajax</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-webapp</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>javax-websocket-client-impl</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>javax-websocket-server-impl</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>websocket-api</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>websocket-client</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>websocket-common</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>websocket-server</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>websocket-servlet</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-xml</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-continuation</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-deploy</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-distribution</artifactId>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>jetty-documentation</artifactId>
|
||||
<name>Jetty :: Documentation</name>
|
||||
|
|
|
@ -28,6 +28,9 @@ If you would like to report a security issue please follow these link:#security-
|
|||
|=======================================================================
|
||||
|yyyy/mm/dd |ID |Exploitable |Severity |Affects |Fixed Version |Comment
|
||||
|
||||
|2019/08/13 |CVE-2019-9515 |Med |Med |< = 9.4.20 |9.4.21
|
||||
|https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9515[Some HTTP/2 implementations are vulnerable to a settings flood, potentially leading to a denial of service when an attacker sent a stream of SETTINGS frames to the peer.]
|
||||
|
||||
|2019/04/11 |CVE-2019-10247 |Med |Med |< = 9.4.16 |9.2.28, 9.3.27, 9.4.17
|
||||
|https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-10247[If no webapp was mounted to the root namespace and a 404 was encountered, an HTML page would be generated displaying the fully qualified base resource location for each context.]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.fcgi</groupId>
|
||||
<artifactId>fcgi-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.fcgi</groupId>
|
||||
<artifactId>fcgi-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.gcloud</groupId>
|
||||
<artifactId>gcloud-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-home</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-http-spi</artifactId>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-http</artifactId>
|
||||
|
|
|
@ -167,6 +167,7 @@ ustar=application/x-ustar
|
|||
vcd=application/x-cdlink
|
||||
vrml=model/vrml
|
||||
vxml=application/voicexml+xml
|
||||
wasm=application/wasm
|
||||
wav=audio/x-wav
|
||||
wbmp=image/vnd.wap.wbmp
|
||||
wml=text/vnd.wap.wml
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.http2</groupId>
|
||||
<artifactId>http2-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>infinispan-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>infinispan-common</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>infinispan-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>infinispan-embedded-query</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>infinispan-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>infinispan-embedded</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>infinispan-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>infinispan-remote-query</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>infinispan-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>infinispan-remote</artifactId>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-io</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-jaas</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-jmx</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-jndi</artifactId>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-jspc-maven-plugin</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-maven-plugin</artifactId>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.memcached</groupId>
|
||||
<artifactId>memcached-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-nosql</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-osgi-alpn</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-osgi-boot-jsp</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-osgi-boot</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-httpservice</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>test-jetty-osgi-context</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>test-jetty-osgi-server</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.osgi</groupId>
|
||||
<artifactId>jetty-osgi-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-plus</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-proxy</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-rewrite</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-runner</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-security</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-server</artifactId>
|
||||
|
|
|
@ -759,8 +759,8 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
|||
if (idleTO >= 0 && getIdleTimeout() != _oldIdleTimeout)
|
||||
setIdleTimeout(_oldIdleTimeout);
|
||||
|
||||
_request.onCompleted();
|
||||
notifyComplete(_request);
|
||||
|
||||
_transport.onCompleted();
|
||||
}
|
||||
|
||||
|
|
|
@ -222,6 +222,7 @@ public class Request implements HttpServletRequest
|
|||
private long _timeStamp;
|
||||
private MultiParts _multiParts; //if the request is a multi-part mime
|
||||
private AsyncContextState _async;
|
||||
private List<HttpSession> _sessions; //list of sessions used during lifetime of request
|
||||
|
||||
public Request(HttpChannel channel, HttpInput input)
|
||||
{
|
||||
|
@ -368,6 +369,39 @@ public class Request implements HttpServletRequest
|
|||
if (listener instanceof AsyncListener)
|
||||
throw new IllegalArgumentException(listener.getClass().toString());
|
||||
}
|
||||
|
||||
/**
|
||||
* Remember a session that this request has just entered.
|
||||
*
|
||||
* @param s the session
|
||||
*/
|
||||
public void enterSession(HttpSession s)
|
||||
{
|
||||
if (s == null)
|
||||
return;
|
||||
|
||||
if (_sessions == null)
|
||||
_sessions = new ArrayList<>();
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Request {} entering session={}", this, s);
|
||||
_sessions.add(s);
|
||||
}
|
||||
|
||||
/**
|
||||
* Complete this request's access to a session.
|
||||
*
|
||||
* @param s the session
|
||||
*/
|
||||
private void leaveSession(HttpSession s)
|
||||
{
|
||||
if (s == null)
|
||||
return;
|
||||
|
||||
Session session = (Session)s;
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Request {} leaving session {}", this, session);
|
||||
session.getSessionHandler().complete(session);
|
||||
}
|
||||
|
||||
private MultiMap<String> getParameters()
|
||||
{
|
||||
|
@ -1467,6 +1501,46 @@ public class Request implements HttpServletRequest
|
|||
return session.getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the request is fully finished being handled.
|
||||
* For every session in any context that the session has
|
||||
* accessed, ensure that the session is completed.
|
||||
*/
|
||||
public void onCompleted()
|
||||
{
|
||||
if (_sessions != null && _sessions.size() > 0)
|
||||
{
|
||||
for (HttpSession s:_sessions)
|
||||
leaveSession(s);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Find a session that this request has already entered for the
|
||||
* given SessionHandler
|
||||
*
|
||||
* @param sessionHandler the SessionHandler (ie context) to check
|
||||
* @return
|
||||
*/
|
||||
public HttpSession getSession(SessionHandler sessionHandler)
|
||||
{
|
||||
if (_sessions == null || _sessions.size() == 0 || sessionHandler == null)
|
||||
return null;
|
||||
|
||||
HttpSession session = null;
|
||||
|
||||
for (HttpSession s:_sessions)
|
||||
{
|
||||
Session ss = Session.class.cast(s);
|
||||
if (sessionHandler == ss.getSessionHandler())
|
||||
{
|
||||
session = s;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return session;
|
||||
}
|
||||
|
||||
/*
|
||||
* @see javax.servlet.http.HttpServletRequest#getSession()
|
||||
*/
|
||||
|
@ -1789,6 +1863,7 @@ public class Request implements HttpServletRequest
|
|||
_inputState = INPUT_NONE;
|
||||
_multiParts = null;
|
||||
_remote = null;
|
||||
_sessions = null;
|
||||
_input.recycle();
|
||||
}
|
||||
|
||||
|
|
|
@ -111,12 +111,13 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
public abstract Session newSession(HttpServletRequest request, SessionData data);
|
||||
|
||||
/**
|
||||
* Get the session matching the key
|
||||
* Get the session matching the key from the cache. Does not load
|
||||
* the session.
|
||||
*
|
||||
* @param id session id
|
||||
* @return the Session object matching the id
|
||||
*/
|
||||
public abstract Session doGet(String id);
|
||||
protected abstract Session doGet(String id);
|
||||
|
||||
/**
|
||||
* Put the session into the map if it wasn't already there
|
||||
|
@ -125,7 +126,7 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
* @param session the session object
|
||||
* @return null if the session wasn't already in the map, or the existing entry otherwise
|
||||
*/
|
||||
public abstract Session doPutIfAbsent(String id, Session session);
|
||||
protected abstract Session doPutIfAbsent(String id, Session session);
|
||||
|
||||
/**
|
||||
* Replace the mapping from id to oldValue with newValue
|
||||
|
@ -135,7 +136,7 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
* @param newValue the new value
|
||||
* @return true if replacement was done
|
||||
*/
|
||||
public abstract boolean doReplace(String id, Session oldValue, Session newValue);
|
||||
protected abstract boolean doReplace(String id, Session oldValue, Session newValue);
|
||||
|
||||
/**
|
||||
* Remove the session with this identity from the store
|
||||
|
@ -300,12 +301,28 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
*
|
||||
* If the session object is not in this session store, try getting
|
||||
* the data for it from a SessionDataStore associated with the
|
||||
* session manager.
|
||||
* session manager. The usage count of the session is incremented.
|
||||
*
|
||||
* @see org.eclipse.jetty.server.session.SessionCache#get(java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public Session get(String id) throws Exception
|
||||
{
|
||||
return getAndEnter(id, true);
|
||||
}
|
||||
|
||||
/** Get a session object.
|
||||
*
|
||||
* If the session object is not in this session store, try getting
|
||||
* the data for it from a SessionDataStore associated with the
|
||||
* session manager.
|
||||
*
|
||||
* @param id The session to retrieve
|
||||
* @param enter if true, the usage count of the session will be incremented
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
protected Session getAndEnter(String id, boolean enter) throws Exception
|
||||
{
|
||||
Session session = null;
|
||||
Exception ex = null;
|
||||
|
@ -320,7 +337,7 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
if (session == null)
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Session {} not found locally, attempting to load", id);
|
||||
LOG.debug("Session {} not found locally in {}, attempting to load", id, this);
|
||||
|
||||
//didn't get a session, try and create one and put in a placeholder for it
|
||||
PlaceHolderSession phs = new PlaceHolderSession(_handler, new SessionData(id, null, null, 0, 0, 0, 0));
|
||||
|
@ -357,6 +374,8 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
{
|
||||
//successfully swapped in the session
|
||||
session.setResident(true);
|
||||
if (enter)
|
||||
session.use();
|
||||
phsLock.close();
|
||||
break;
|
||||
}
|
||||
|
@ -383,7 +402,10 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
session = null;
|
||||
continue;
|
||||
}
|
||||
//I will use this session too
|
||||
session = s;
|
||||
if (enter)
|
||||
session.use();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -401,6 +423,8 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
}
|
||||
|
||||
//got the session
|
||||
if (enter)
|
||||
session.use();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -447,7 +471,47 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
}
|
||||
|
||||
/**
|
||||
* Put the Session object back into the session store.
|
||||
* Add an entirely new session (created by the application calling Request.getSession(true))
|
||||
* to the cache. The usage count of the fresh session is incremented.
|
||||
*
|
||||
* @param id the id
|
||||
* @param session
|
||||
*/
|
||||
@Override
|
||||
public void add(String id, Session session) throws Exception
|
||||
{
|
||||
if (id == null || session == null)
|
||||
throw new IllegalArgumentException("Add key=" + id + " session=" + (session == null ? "null" : session.getId()));
|
||||
|
||||
try (Lock lock = session.lock())
|
||||
{
|
||||
if (session.getSessionHandler() == null)
|
||||
throw new IllegalStateException("Session " + id + " is not managed");
|
||||
|
||||
if (!session.isValid())
|
||||
throw new IllegalStateException("Session " + id + " is not valid");
|
||||
|
||||
if (doPutIfAbsent(id, session) == null)
|
||||
{
|
||||
session.setResident(true); //its in the cache
|
||||
session.use(); //the request is using it
|
||||
}
|
||||
else
|
||||
throw new IllegalStateException("Session " + id + " already in cache");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
@Override
|
||||
public void put(String id, Session session) throws Exception
|
||||
{
|
||||
release(id, session);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finish using the Session object.
|
||||
*
|
||||
* This should be called when a request exists the session. Only when the last
|
||||
* simultaneous request exists the session will any action be taken.
|
||||
|
@ -459,10 +523,10 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
* If the evictionPolicy == SessionCache.EVICT_ON_SESSION_EXIT then after we have saved
|
||||
* the session, we evict it from the cache.
|
||||
*
|
||||
* @see org.eclipse.jetty.server.session.SessionCache#put(java.lang.String, org.eclipse.jetty.server.session.Session)
|
||||
* @see org.eclipse.jetty.server.session.SessionCache#release(java.lang.String, org.eclipse.jetty.server.session.Session)
|
||||
*/
|
||||
@Override
|
||||
public void put(String id, Session session) throws Exception
|
||||
public void release(String id, Session session) throws Exception
|
||||
{
|
||||
if (id == null || session == null)
|
||||
throw new IllegalArgumentException("Put key=" + id + " session=" + (session == null ? "null" : session.getId()));
|
||||
|
@ -472,9 +536,11 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
if (session.getSessionHandler() == null)
|
||||
throw new IllegalStateException("Session " + id + " is not managed");
|
||||
|
||||
if (!session.isValid())
|
||||
if (session.isInvalid())
|
||||
return;
|
||||
|
||||
session.complete();
|
||||
|
||||
//don't do anything with the session until the last request for it has finished
|
||||
if ((session.getRequests() <= 0))
|
||||
{
|
||||
|
@ -586,7 +652,7 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
public Session delete(String id) throws Exception
|
||||
{
|
||||
//get the session, if its not in memory, this will load it
|
||||
Session session = get(id);
|
||||
Session session = getAndEnter(id, false);
|
||||
|
||||
//Always delete it from the backing data store
|
||||
if (_sessionDataStore != null)
|
||||
|
@ -657,7 +723,8 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
LOG.debug("Checking for idle {}", session.getId());
|
||||
try (Lock s = session.lock())
|
||||
{
|
||||
if (getEvictionPolicy() > 0 && session.isIdleLongerThan(getEvictionPolicy()) && session.isValid() && session.isResident() && session.getRequests() <= 0)
|
||||
if (getEvictionPolicy() > 0 && session.isIdleLongerThan(getEvictionPolicy())
|
||||
&& session.isValid() && session.isResident() && session.getRequests() <= 0)
|
||||
{
|
||||
//Be careful with saveOnInactiveEviction - you may be able to re-animate a session that was
|
||||
//being managed on another node and has expired.
|
||||
|
@ -696,7 +763,7 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
if (StringUtil.isBlank(newId))
|
||||
throw new IllegalArgumentException("New session id is null");
|
||||
|
||||
Session session = get(oldId);
|
||||
Session session = getAndEnter(oldId, true);
|
||||
renewSessionId(session, newId, newExtendedId);
|
||||
|
||||
return session;
|
||||
|
@ -787,6 +854,7 @@ public abstract class AbstractSessionCache extends ContainerLifeCycle implements
|
|||
public String toString()
|
||||
{
|
||||
return String.format("%s@%x[evict=%d,removeUnloadable=%b,saveOnCreate=%b,saveOnInactiveEvict=%b]",
|
||||
this.getClass().getName(), this.hashCode(), _evictionPolicy, _removeUnloadableSessions, _saveOnCreate, _saveOnInactiveEviction);
|
||||
this.getClass().getName(), this.hashCode(), _evictionPolicy,
|
||||
_removeUnloadableSessions, _saveOnCreate, _saveOnInactiveEviction);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,6 +84,7 @@ public class Session implements SessionHandler.SessionIf
|
|||
protected final SessionHandler _handler; // the manager of the session
|
||||
|
||||
protected String _extendedId; // the _id plus the worker name
|
||||
|
||||
protected long _requests;
|
||||
|
||||
protected boolean _idChanged;
|
||||
|
@ -127,7 +128,8 @@ public class Session implements SessionHandler.SessionIf
|
|||
{
|
||||
//grab the lock and check what happened to the session: if it didn't get evicted and
|
||||
//it hasn't expired, we need to reset the timer
|
||||
if (Session.this.isResident() && Session.this.getRequests() <= 0 && Session.this.isValid() && !Session.this.isExpiredAt(now))
|
||||
if (Session.this.isResident() && Session.this.getRequests() <= 0 && Session.this.isValid() &&
|
||||
!Session.this.isExpiredAt(now))
|
||||
{
|
||||
//session wasn't expired or evicted, we need to reset the timer
|
||||
SessionInactivityTimer.this.schedule(Session.this.calculateInactivityTimeout(now));
|
||||
|
@ -195,8 +197,6 @@ public class Session implements SessionHandler.SessionIf
|
|||
_sessionData = data;
|
||||
_newSession = true;
|
||||
_sessionData.setDirty(true);
|
||||
_requests = 1; // access will not be called on this new session, but we
|
||||
// are obviously in a request
|
||||
_sessionInactivityTimer = new SessionInactivityTimer();
|
||||
}
|
||||
|
||||
|
@ -239,11 +239,24 @@ public class Session implements SessionHandler.SessionIf
|
|||
}
|
||||
}
|
||||
|
||||
protected void use()
|
||||
{
|
||||
try (Lock lock = _lock.lock())
|
||||
{
|
||||
_requests++;
|
||||
|
||||
// temporarily stop the idle timer
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Session {} in use, stopping timer, active requests={}", getId(), _requests);
|
||||
_sessionInactivityTimer.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean access(long time)
|
||||
{
|
||||
try (Lock lock = _lock.lock())
|
||||
{
|
||||
if (!isValid())
|
||||
if (!isValid() || !isResident())
|
||||
return false;
|
||||
_newSession = false;
|
||||
long lastAccessed = _sessionData.getAccessed();
|
||||
|
@ -255,13 +268,6 @@ public class Session implements SessionHandler.SessionIf
|
|||
invalidate();
|
||||
return false;
|
||||
}
|
||||
_requests++;
|
||||
|
||||
// temporarily stop the idle timer
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Session {} accessed, stopping timer, active requests={}", getId(), _requests);
|
||||
_sessionInactivityTimer.cancel();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -374,7 +380,7 @@ public class Session implements SessionHandler.SessionIf
|
|||
public void didActivate()
|
||||
{
|
||||
HttpSessionEvent event = new HttpSessionEvent(this);
|
||||
for (Iterator<String> iter = _sessionData.getKeys().iterator(); iter.hasNext(); )
|
||||
for (Iterator<String> iter = _sessionData.getKeys().iterator(); iter.hasNext();)
|
||||
{
|
||||
Object value = _sessionData.getAttribute(iter.next());
|
||||
if (value instanceof HttpSessionActivationListener)
|
||||
|
@ -391,7 +397,7 @@ public class Session implements SessionHandler.SessionIf
|
|||
public void willPassivate()
|
||||
{
|
||||
HttpSessionEvent event = new HttpSessionEvent(this);
|
||||
for (Iterator<String> iter = _sessionData.getKeys().iterator(); iter.hasNext(); )
|
||||
for (Iterator<String> iter = _sessionData.getKeys().iterator(); iter.hasNext();)
|
||||
{
|
||||
Object value = _sessionData.getAttribute(iter.next());
|
||||
if (value instanceof HttpSessionActivationListener)
|
||||
|
@ -410,6 +416,14 @@ public class Session implements SessionHandler.SessionIf
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isInvalid()
|
||||
{
|
||||
try (Lock lock = _lock.lock())
|
||||
{
|
||||
return _state == State.INVALID || _state == State.INVALIDATING;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isChanging()
|
||||
{
|
||||
checkLocked();
|
||||
|
@ -574,7 +588,8 @@ public class Session implements SessionHandler.SessionIf
|
|||
time = (remaining > 0 ? (Math.min(maxInactive, TimeUnit.SECONDS.toMillis(evictionPolicy))) : 0);
|
||||
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Session {} timer set to lesser of maxInactive={} and inactivityEvict={}", getId(), maxInactive, evictionPolicy);
|
||||
LOG.debug("Session {} timer set to lesser of maxInactive={} and inactivityEvict={}", getId(),
|
||||
maxInactive, evictionPolicy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -965,6 +980,8 @@ public class Session implements SessionHandler.SessionIf
|
|||
{
|
||||
try
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Session {} waiting for id change to complete", _sessionData.getId());
|
||||
_stateChangeCompleted.await();
|
||||
}
|
||||
catch (InterruptedException e)
|
||||
|
|
|
@ -118,6 +118,16 @@ public interface SessionCache extends LifeCycle
|
|||
{
|
||||
return renewSessionId(oldId, newId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new Session, with a never-before-used id,
|
||||
* to the cache.
|
||||
*
|
||||
* @param id
|
||||
* @param session
|
||||
* @throws Exception
|
||||
*/
|
||||
void add(String id, Session session) throws Exception;
|
||||
|
||||
/**
|
||||
* Get an existing Session. If necessary, the cache will load the data for
|
||||
|
@ -138,9 +148,24 @@ public interface SessionCache extends LifeCycle
|
|||
* @param id the session id
|
||||
* @param session the current session object
|
||||
* @throws Exception if any error occurred
|
||||
* @deprecated @see release
|
||||
*/
|
||||
void put(String id, Session session) throws Exception;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Finish using a Session. This is called by the SessionHandler
|
||||
* once a request is finished with a Session. SessionCache
|
||||
* implementations may want to delay writing out Session contents
|
||||
* until the last request exits a Session.
|
||||
*
|
||||
* @param id the session id
|
||||
* @param session the current session object
|
||||
* @throws Exception if any error occurred
|
||||
*/
|
||||
void release(String id, Session session) throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
* Check to see if a Session is in the cache. Does NOT consult
|
||||
* the SessionDataStore.
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
package org.eclipse.jetty.server.session;
|
||||
|
||||
import static java.lang.Math.round;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
@ -29,8 +31,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import javax.servlet.AsyncEvent;
|
||||
import javax.servlet.AsyncListener;
|
||||
|
||||
import javax.servlet.DispatcherType;
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.SessionCookieConfig;
|
||||
|
@ -64,8 +65,6 @@ import org.eclipse.jetty.util.thread.Locker.Lock;
|
|||
import org.eclipse.jetty.util.thread.ScheduledExecutorScheduler;
|
||||
import org.eclipse.jetty.util.thread.Scheduler;
|
||||
|
||||
import static java.lang.Math.round;
|
||||
|
||||
/**
|
||||
* SessionHandler.
|
||||
*/
|
||||
|
@ -74,7 +73,8 @@ public class SessionHandler extends ScopedHandler
|
|||
{
|
||||
static final Logger LOG = Log.getLogger("org.eclipse.jetty.server.session");
|
||||
|
||||
public static final EnumSet<SessionTrackingMode> DEFAULT_TRACKING = EnumSet.of(SessionTrackingMode.COOKIE, SessionTrackingMode.URL);
|
||||
public static final EnumSet<SessionTrackingMode> DEFAULT_TRACKING = EnumSet.of(SessionTrackingMode.COOKIE,
|
||||
SessionTrackingMode.URL);
|
||||
|
||||
/**
|
||||
* Session cookie name.
|
||||
|
@ -127,7 +127,8 @@ public class SessionHandler extends ScopedHandler
|
|||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final Class<? extends EventListener>[] SESSION_LISTENER_TYPES =
|
||||
new Class[]{
|
||||
new Class[]
|
||||
{
|
||||
HttpSessionAttributeListener.class,
|
||||
HttpSessionIdListener.class,
|
||||
HttpSessionListener.class
|
||||
|
@ -140,54 +141,6 @@ public class SessionHandler extends ScopedHandler
|
|||
*/
|
||||
public static final java.math.BigDecimal MAX_INACTIVE_MINUTES = new java.math.BigDecimal(Integer.MAX_VALUE / 60);
|
||||
|
||||
/**
|
||||
* SessionAsyncListener
|
||||
*
|
||||
* Used to ensure that a request for which async has been started
|
||||
* has its session completed as the request exits the context.
|
||||
*/
|
||||
public class SessionAsyncListener implements AsyncListener
|
||||
{
|
||||
@Override
|
||||
public void onComplete(AsyncEvent event) throws IOException
|
||||
{
|
||||
// An async request has completed, so we can complete the session,
|
||||
// but we must locate the session instance for this context
|
||||
Request request = Request.getBaseRequest(event.getAsyncContext().getRequest());
|
||||
HttpSession session = request.getSession(false);
|
||||
String id;
|
||||
if (session != null)
|
||||
id = session.getId();
|
||||
else
|
||||
{
|
||||
id = (String)request.getAttribute(DefaultSessionIdManager.__NEW_SESSION_ID);
|
||||
if (id == null)
|
||||
id = request.getRequestedSessionId();
|
||||
}
|
||||
|
||||
if (id != null)
|
||||
complete(getSession(id));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTimeout(AsyncEvent event) throws IOException
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(AsyncEvent event) throws IOException
|
||||
{
|
||||
complete(Request.getBaseRequest(event.getAsyncContext().getRequest()).getSession(false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStartAsync(AsyncEvent event) throws IOException
|
||||
{
|
||||
event.getAsyncContext().addListener(this);
|
||||
}
|
||||
}
|
||||
|
||||
static final HttpSessionContext __nullSessionContext = new HttpSessionContext()
|
||||
{
|
||||
@Override
|
||||
|
@ -243,7 +196,6 @@ public class SessionHandler extends ScopedHandler
|
|||
|
||||
protected Scheduler _scheduler;
|
||||
protected boolean _ownScheduler = false;
|
||||
protected final SessionAsyncListener _sessionAsyncListener = new SessionAsyncListener();
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
@ -285,9 +237,8 @@ public class SessionHandler extends ScopedHandler
|
|||
// Do we need to refresh the cookie?
|
||||
if (isUsingCookies() &&
|
||||
(s.isIdChanged() ||
|
||||
(getSessionCookieConfig().getMaxAge() > 0 && getRefreshCookieAge() > 0 && ((now - s.getCookieSetTime()) / 1000 > getRefreshCookieAge()))
|
||||
)
|
||||
)
|
||||
(getSessionCookieConfig().getMaxAge() > 0 && getRefreshCookieAge() > 0
|
||||
&& ((now - s.getCookieSetTime())/1000 > getRefreshCookieAge()))))
|
||||
{
|
||||
HttpCookie cookie = getSessionCookie(session, _context == null ? "/" : (_context.getContextPath()), secure);
|
||||
s.cookieSet();
|
||||
|
@ -413,11 +364,9 @@ public class SessionHandler extends ScopedHandler
|
|||
return;
|
||||
|
||||
Session s = ((SessionIf)session).getSession();
|
||||
|
||||
try
|
||||
{
|
||||
s.complete();
|
||||
_sessionCache.put(s.getId(), s);
|
||||
_sessionCache.release(s.getId(), s);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -428,22 +377,7 @@ public class SessionHandler extends ScopedHandler
|
|||
@Deprecated
|
||||
public void complete(Session session, Request baseRequest)
|
||||
{
|
||||
ensureCompletion(baseRequest);
|
||||
}
|
||||
|
||||
private void ensureCompletion(Request baseRequest)
|
||||
{
|
||||
if (baseRequest.isAsyncStarted())
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Adding AsyncListener for {}", baseRequest);
|
||||
if (!baseRequest.getHttpChannelState().hasListener(_sessionAsyncListener))
|
||||
baseRequest.getAsyncContext().addListener(_sessionAsyncListener);
|
||||
}
|
||||
else
|
||||
{
|
||||
complete(baseRequest.getSession(false));
|
||||
}
|
||||
//not used
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -581,11 +515,11 @@ public class SessionHandler extends ScopedHandler
|
|||
* @param extendedId the session id
|
||||
* @return the <code>HttpSession</code> with the corresponding id or null if no session with the given id exists
|
||||
*/
|
||||
public HttpSession getHttpSession(String extendedId)
|
||||
protected HttpSession getHttpSession(String extendedId)
|
||||
{
|
||||
String id = getSessionIdManager().getId(extendedId);
|
||||
|
||||
Session session = getSession(id);
|
||||
|
||||
if (session != null && !session.getExtendedId().equals(extendedId))
|
||||
session.setIdChanged(true);
|
||||
return session;
|
||||
|
@ -813,7 +747,8 @@ public class SessionHandler extends ScopedHandler
|
|||
|
||||
try
|
||||
{
|
||||
_sessionCache.put(id, session);
|
||||
_sessionCache.add(id, session);
|
||||
Request.getBaseRequest(request).enterSession(session);
|
||||
_sessionsCreatedStats.increment();
|
||||
|
||||
if (request != null && request.isSecure())
|
||||
|
@ -912,7 +847,8 @@ public class SessionHandler extends ScopedHandler
|
|||
public void setSessionIdPathParameterName(String param)
|
||||
{
|
||||
_sessionIdPathParameterName = (param == null || "none".equals(param)) ? null : param;
|
||||
_sessionIdPathParameterNamePrefix = (param == null || "none".equals(param)) ? null : (";" + _sessionIdPathParameterName + "=");
|
||||
_sessionIdPathParameterNamePrefix = (param == null || "none".equals(param)) ?
|
||||
null : (";" + _sessionIdPathParameterName + "=");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -929,7 +865,7 @@ public class SessionHandler extends ScopedHandler
|
|||
* @param id The session ID stripped of any worker name.
|
||||
* @return A Session or null if none exists.
|
||||
*/
|
||||
public Session getSession(String id)
|
||||
protected Session getSession(String id)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -953,7 +889,6 @@ public class SessionHandler extends ScopedHandler
|
|||
}
|
||||
|
||||
session.setExtendedId(_sessionIdManager.getExtendedId(id, null));
|
||||
//session.getSessionData().setLastNode(_sessionIdManager.getWorkerName()); //TODO write through the change of node?
|
||||
}
|
||||
return session;
|
||||
}
|
||||
|
@ -1159,9 +1094,11 @@ public class SessionHandler extends ScopedHandler
|
|||
*/
|
||||
public void renewSessionId(String oldId, String oldExtendedId, String newId, String newExtendedId)
|
||||
{
|
||||
Session session = null;
|
||||
try
|
||||
{
|
||||
Session session = _sessionCache.renewSessionId(oldId, newId, oldExtendedId, newExtendedId); //swap the id over
|
||||
//the use count for the session will be incremented in renewSessionId
|
||||
session = _sessionCache.renewSessionId(oldId, newId, oldExtendedId, newExtendedId); //swap the id over
|
||||
if (session == null)
|
||||
{
|
||||
//session doesn't exist on this context
|
||||
|
@ -1175,6 +1112,20 @@ public class SessionHandler extends ScopedHandler
|
|||
{
|
||||
LOG.warn(e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (session != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
_sessionCache.release(newId, session);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOG.warn(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1337,7 +1288,8 @@ public class SessionHandler extends ScopedHandler
|
|||
//most efficient if it can be done as a bulk operation to eg reduce
|
||||
//roundtrips to the persistent store. Only do this if the HouseKeeper that
|
||||
//does the scavenging is configured to actually scavenge
|
||||
if (_sessionIdManager.getSessionHouseKeeper() != null && _sessionIdManager.getSessionHouseKeeper().getIntervalSec() > 0)
|
||||
if (_sessionIdManager.getSessionHouseKeeper() != null
|
||||
&& _sessionIdManager.getSessionHouseKeeper().getIntervalSec() > 0)
|
||||
{
|
||||
_candidateSessionIdsForExpiry.add(session.getId());
|
||||
if (LOG.isDebugEnabled())
|
||||
|
@ -1509,7 +1461,8 @@ public class SessionHandler extends ScopedHandler
|
|||
* @see org.eclipse.jetty.server.Handler#handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, int)
|
||||
*/
|
||||
@Override
|
||||
public void doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
|
||||
public void doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
|
||||
throws IOException, ServletException
|
||||
{
|
||||
SessionHandler oldSessionHandler = null;
|
||||
HttpSession oldSession = null;
|
||||
|
@ -1518,27 +1471,57 @@ public class SessionHandler extends ScopedHandler
|
|||
try
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("SessionHandler.doScope");
|
||||
LOG.debug("Entering scope {}, dispatch={} asyncstarted={}", this, baseRequest.getDispatcherType(), baseRequest
|
||||
.isAsyncStarted());
|
||||
|
||||
oldSessionHandler = baseRequest.getSessionHandler();
|
||||
oldSession = baseRequest.getSession(false);
|
||||
|
||||
if (oldSessionHandler != this)
|
||||
switch (baseRequest.getDispatcherType())
|
||||
{
|
||||
// new session context
|
||||
baseRequest.setSessionHandler(this);
|
||||
baseRequest.setSession(null);
|
||||
checkRequestedSessionId(baseRequest, request);
|
||||
}
|
||||
case REQUEST:
|
||||
{
|
||||
//there are no previous sessionhandlers or sessions for dispatch=REQUEST
|
||||
//look for a session for this context
|
||||
baseRequest.setSession(null);
|
||||
checkRequestedSessionId(baseRequest, request);
|
||||
existingSession = baseRequest.getSession(false);
|
||||
baseRequest.setSessionHandler(this);
|
||||
baseRequest.setSession(existingSession); //can be null
|
||||
break;
|
||||
}
|
||||
case ASYNC:
|
||||
case ERROR:
|
||||
case FORWARD:
|
||||
case INCLUDE:
|
||||
{
|
||||
//remember previous sessionhandler and session
|
||||
oldSessionHandler = baseRequest.getSessionHandler();
|
||||
oldSession = baseRequest.getSession(false);
|
||||
|
||||
// access any existing session for this context
|
||||
existingSession = baseRequest.getSession(false);
|
||||
//find any existing session for this request that has already been accessed
|
||||
existingSession = baseRequest.getSession(this);
|
||||
if (existingSession == null)
|
||||
{
|
||||
//session for this context has not been visited previously,
|
||||
//try getting it
|
||||
baseRequest.setSession(null);
|
||||
checkRequestedSessionId(baseRequest, request);
|
||||
existingSession = baseRequest.getSession(false);
|
||||
}
|
||||
|
||||
baseRequest.setSession(existingSession);
|
||||
baseRequest.setSessionHandler(this);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if ((existingSession != null) && (oldSessionHandler != this))
|
||||
{
|
||||
HttpCookie cookie = access(existingSession, request.isSecure());
|
||||
// Handle changed ID or max-age refresh, but only if this is not a redispatched request
|
||||
if ((cookie != null) && (request.getDispatcherType() == DispatcherType.ASYNC || request.getDispatcherType() == DispatcherType.REQUEST))
|
||||
if ((cookie != null)
|
||||
&& (request.getDispatcherType() == DispatcherType.ASYNC
|
||||
|| request.getDispatcherType() == DispatcherType.REQUEST))
|
||||
baseRequest.getResponse().replaceCookie(cookie);
|
||||
}
|
||||
|
||||
|
@ -1554,13 +1537,10 @@ public class SessionHandler extends ScopedHandler
|
|||
}
|
||||
finally
|
||||
{
|
||||
//if there is a session that was created during handling this context, then complete it
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("FinalSession={}, old_session_handler={}, this={}, calling complete={}", baseRequest.getSession(false), oldSessionHandler, this, (oldSessionHandler != this));
|
||||
|
||||
// If we are leaving the scope of this session handler, ensure the session is completed
|
||||
if (oldSessionHandler != this)
|
||||
ensureCompletion(baseRequest);
|
||||
LOG.debug("Leaving scope {} dispatch={}, async={}, session={}, oldsession={}, oldsessionhandler={}",
|
||||
this, baseRequest.getDispatcherType(), baseRequest.isAsyncStarted(), baseRequest.getSession(false),
|
||||
oldSession, oldSessionHandler);
|
||||
|
||||
// revert the session handler to the previous, unless it was null, in which case remember it as
|
||||
// the first session handler encountered.
|
||||
|
@ -1576,7 +1556,8 @@ public class SessionHandler extends ScopedHandler
|
|||
* @see org.eclipse.jetty.server.Handler#handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, int)
|
||||
*/
|
||||
@Override
|
||||
public void doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
|
||||
public void doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
|
||||
throws IOException, ServletException
|
||||
{
|
||||
nextHandle(target, baseRequest, request, response);
|
||||
}
|
||||
|
@ -1596,7 +1577,10 @@ public class SessionHandler extends ScopedHandler
|
|||
HttpSession session = getHttpSession(requestedSessionId);
|
||||
|
||||
if (session != null && isValid(session))
|
||||
{
|
||||
baseRequest.enterSession(session); //enter session for first time
|
||||
baseRequest.setSession(session);
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (!DispatcherType.REQUEST.equals(baseRequest.getDispatcherType()))
|
||||
|
@ -1605,7 +1589,7 @@ public class SessionHandler extends ScopedHandler
|
|||
boolean requestedSessionIdFromCookie = false;
|
||||
HttpSession session = null;
|
||||
|
||||
// Look for session id cookie
|
||||
//first try getting id from a cookie
|
||||
if (isUsingCookies())
|
||||
{
|
||||
Cookie[] cookies = request.getCookies();
|
||||
|
@ -1618,31 +1602,21 @@ public class SessionHandler extends ScopedHandler
|
|||
{
|
||||
requestedSessionId = cookies[i].getValue();
|
||||
requestedSessionIdFromCookie = true;
|
||||
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Got Session ID {} from cookie", requestedSessionId);
|
||||
|
||||
LOG.debug("Got Session ID {} from cookie {}", requestedSessionId, sessionCookie);
|
||||
if (requestedSessionId != null)
|
||||
{
|
||||
session = getHttpSession(requestedSessionId);
|
||||
if (session != null && isValid(session))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG.warn("null session id from cookie");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isUsingURLs() && (requestedSessionId == null || session == null))
|
||||
//try getting id from a url
|
||||
if (isUsingURLs() && (requestedSessionId == null))
|
||||
{
|
||||
String uri = request.getRequestURI();
|
||||
|
||||
String prefix = getSessionIdPathParameterNamePrefix();
|
||||
if (prefix != null)
|
||||
{
|
||||
|
@ -1661,7 +1635,6 @@ public class SessionHandler extends ScopedHandler
|
|||
|
||||
requestedSessionId = uri.substring(s, i);
|
||||
requestedSessionIdFromCookie = false;
|
||||
session = getHttpSession(requestedSessionId);
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Got Session ID {} from URL", requestedSessionId);
|
||||
}
|
||||
|
@ -1670,8 +1643,16 @@ public class SessionHandler extends ScopedHandler
|
|||
|
||||
baseRequest.setRequestedSessionId(requestedSessionId);
|
||||
baseRequest.setRequestedSessionIdFromCookie(requestedSessionId != null && requestedSessionIdFromCookie);
|
||||
if (session != null && isValid(session))
|
||||
baseRequest.setSession(session);
|
||||
|
||||
if (requestedSessionId != null)
|
||||
{
|
||||
session = getHttpSession(requestedSessionId);
|
||||
if (session != null && isValid(session))
|
||||
{
|
||||
baseRequest.enterSession(session); //request enters this session for first time
|
||||
baseRequest.setSession(session);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-servlet</artifactId>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-servlets</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-spring</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-start</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-unixsocket</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-util-ajax</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-util</artifactId>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-project</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>jetty-webapp</artifactId>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>websocket-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>websocket-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<parent>
|
||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
||||
<artifactId>websocket-parent</artifactId>
|
||||
<version>9.4.20-SNAPSHOT</version>
|
||||
<version>9.4.21-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
|
|
@ -46,6 +46,7 @@ import org.eclipse.jetty.websocket.servlet.WebSocketServlet;
|
|||
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
|
@ -120,6 +121,7 @@ public class WebSocketConnectionStatsTest
|
|||
return buffer.position() - pos;
|
||||
}
|
||||
|
||||
@Disabled("Flaky test see issue #3982")
|
||||
@Test
|
||||
public void echoStatsTest() throws Exception
|
||||
{
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue