9535 Commits

Author SHA1 Message Date
Greg Wilkins
30123607c6 Major refactor of metadata and HttpURI
This refactor strives to remove duplication between the Metadata class and the HttpURI class.

Both classes have been made mutable (as they partially were anyway so best not to pretend).

HttpURI now holds the decomposed strings rather than a single string with indexes. This allows it to be rebuilt after changing just parts of the URI. It is now a lot more similar to the
JVM URI class and we could consider replacing it (after checking peformance).

Next step is to refactor the Request class to prevent it duplicating these fields.
2014-07-24 15:49:52 +10:00
Joakim Erdfelt
cb42ef2167 [maven-release-plugin] prepare for next development iteration 2014-07-23 11:18:01 -07:00
Joakim Erdfelt
dc62cb5ac7 [maven-release-plugin] prepare release jetty-9.2.2.v20140723 jetty-9.2.2.v20140723 2014-07-23 11:17:55 -07:00
Joakim Erdfelt
223ad1e519 Fixing groupId 2014-07-23 10:51:46 -07:00
Joakim Erdfelt
faf0775b50 Fixing quickstart dependency loop 2014-07-23 10:50:00 -07:00
Joakim Erdfelt
17a9fb2a3d Fixing build
+ Quick start example is now in /examples/quickstart/ to avoid
  dependency loop
+ Forgotten tests are now versioned correctly at 9.3.0
2014-07-23 10:47:19 -07:00
Simone Bordet
5ee49578e9 Better wait times for tests: 555s -> 5s. 2014-07-23 18:47:49 +02:00
Joakim Erdfelt
f63ec00028 Bumping up release plugin version 2014-07-23 09:33:10 -07:00
Joakim Erdfelt
e7aa5edd37 Updating VERSION.txt top section 2014-07-23 08:50:31 -07:00
Joakim Erdfelt
07830b6f76 Merge branch 'master' into release-9 2014-07-23 08:49:22 -07:00
Simone Bordet
67e788bc58 Replaced usage of Continuation with AsyncContext. 2014-07-23 14:56:31 +02:00
Simone Bordet
5956b9e013 411323 - DosFilter/QoSFilter should use AsyncContext rather than Continuations. 2014-07-23 14:07:14 +02:00
Simone Bordet
103cdbf6ef Guarded calls to LOG.debug() with if (LOG.isDebugEnabled()) to reduce allocation of varargs Object[]. 2014-07-23 11:35:47 +02:00
Greg Wilkins
2f41275b0f fixed merge syntax errors 2014-07-23 16:57:36 +10:00
Greg Wilkins
192e8e8ed1 expanded tabs in indents 2014-07-23 16:54:05 +10:00
Greg Wilkins
fa3d7d0f7e Merge remote-tracking branch 'origin/master' into jetty-http2
Conflicts:
	jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncContextDispatchWithQueryStrings.java
2014-07-23 16:53:13 +10:00
Greg Wilkins
3a6879d3e8 expanded tabs in indents 2014-07-23 16:49:05 +10:00
Greg Wilkins
ecb3ab7e5b Merge remote-tracking branch 'origin/master' into jetty-http2
Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/HttpConnection.java
2014-07-23 16:38:15 +10:00
Greg Wilkins
e199b671bb 440020 Abort bad proxy responses with sendError(-1) 2014-07-23 16:31:19 +10:00
Greg Wilkins
564ffca5dc 440114 ContextHandlerCollection does not skip context wrappers 2014-07-23 15:23:35 +10:00
Greg Wilkins
31359b1775 ignore failing tests 2014-07-23 15:23:35 +10:00
Jan Bartel
07edbea6fe 439369 Remove unused class CrossContextPsuedoSession 2014-07-23 11:26:18 +10:00
Jan Bartel
d2e36bcc10 439809 mvn jetty:jspc cannot find taglibs in dependency jars 2014-07-23 10:41:56 +10:00
Greg Wilkins
d6f841bb87 fixed refactor uri issue 2014-07-23 09:03:52 +10:00
Simone Bordet
467773dbdf Merged branch 'master' into 'jetty-http2'. 2014-07-22 21:14:46 +02:00
Joakim Erdfelt
8ec4e56681 Fixing compile error 2014-07-22 11:57:52 -07:00
Simone Bordet
dd914db3cf Reorganized GZIP tests. 2014-07-22 20:55:18 +02:00
Simone Bordet
4daba1ba79 Restored IteratingCallback APIs (in particular the completed()
method) to keep compatibility over micro versions of Jetty.

Removed getState() - can't return a private class from a protected
method, plus it was only used in a toString() with the wrong
formatting string, that was already printing the state.

Removed also final modifiers to keep compatibility.
2014-07-22 19:32:13 +02:00
Simone Bordet
987800c419 440122 - Remove usages of ForkInvoker. 2014-07-22 16:36:15 +02:00
Simone Bordet
b6ca7b3fa5 411323 - DosFilter/QoSFilter should use AsyncContext rather than Continuations. 2014-07-22 16:03:11 +02:00
Joakim Erdfelt
4f88f2fce2 Fixing build
+ Quick start example is now in /examples/quickstart/ to avoid
  dependency loop
+ Forgotten tests are now versioned correctly at 9.3.0
2014-07-21 15:51:44 -07:00
Simone Bordet
1678f93ce9 439788 - CORS filter headers gone between 9.2.0.M0 and 9.2.1 .v20140609 for ProxyServlet requests.
Removed the offending code that was added only to avoid duplicate
Date headers, but sending of those headers is configurable from
HttpConfiguration.
2014-07-21 23:22:28 +02:00
Simone Bordet
52172fb3c4 440038 - Content decoding may fail.
Properly looping around the decoding step to ensure that the encoded
content is fully consumed.
2014-07-21 19:21:44 +02:00
Simone Bordet
cae4204150 440020 - ProxyServlet does not handle correctly failure after committed response to client.
Fixed by introducing a request attribute "org.eclipse.jetty.server
.Response.failure" used by HttpChannel to immediately close the
connection when it sees it.
2014-07-21 16:48:21 +02:00
Simone Bordet
816b85ea4d 439895 - No event callback should be invoked after the "failure" callback.
Fixed HttpSender and HttpReceiver to use a non-blocking collaborative
mechanism to notify callbacks.
Only the "failed" callback can run concurrently with other callbacks.
No other callback can run after the "complete" callback: a failure
concurrent with another callback will notify the "failed" callback,
finish the running callback and only then invoke the "complete" callback.
2014-07-21 16:48:21 +02:00
Greg Wilkins
7f62f2600b refactored URI handling 2014-07-20 10:23:47 +10:00
Greg Wilkins
35ca372e30 Merge remote-tracking branch 'origin/master' into jetty-http2 2014-07-19 18:56:15 +10:00
Greg Wilkins
c72649e150 435653 encode async dispatched requestURI 2014-07-19 18:55:02 +10:00
Greg Wilkins
fb2a67c0f9 Merge remote-tracking branch 'origin/master' into jetty-http2 2014-07-19 00:49:37 +10:00
Greg Wilkins
b38a978eac 439067 Improved graceful stop timeout handling 2014-07-19 00:46:55 +10:00
Greg Wilkins
a639359a7b do not index content-length 2014-07-18 17:23:44 +10:00
Jan Bartel
d580c3279b Make LoginService tests use single database and drop and recreate tables 2014-07-18 17:02:41 +10:00
Greg Wilkins
d4e7c0a279 update encoding strategy for no ref-set 2014-07-18 15:59:41 +10:00
Greg Wilkins
89a816843f removed refset from hpack 2014-07-18 15:59:41 +10:00
Greg Wilkins
a537fefd6b Merge remote-tracking branch 'origin/master' into jetty-http2 2014-07-18 15:28:54 +10:00
Joakim Erdfelt
e9a77b6ac7 Work with derby internal caching of "derby.system.home" system property.
+ Turns out, changing "derby.system.home" is unreliable.
+ Using 'directory' based jdbc urls for derby to avoid finding content
  in the classloader too.
+ Use a common derby "System Home" for all tests.
+ Segregate all database creation into own, test-specific, database.
2014-07-17 21:57:57 -07:00
Joakim Erdfelt
a09d05ee9d Better cleanup of LoginService tests 2014-07-17 20:55:58 -07:00
Joakim Erdfelt
dcee2bd5c4 Adding dstest manual creation, not letting derby create it 2014-07-17 20:50:30 -07:00
Greg Wilkins
30fcce1cdc 434536 Improved Customizer javadoc 2014-07-18 12:18:29 +10:00
Greg Wilkins
5c7f3e7c0d 432815 Fixed selector stop race 2014-07-18 12:05:32 +10:00