Commit Graph

9650 Commits

Author SHA1 Message Date
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 3a6879d3e8 expanded tabs in indents 2014-07-23 16:49:05 +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 d2e36bcc10 439809 mvn jetty:jspc cannot find taglibs in dependency jars 2014-07-23 10:41:56 +10: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
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 c72649e150 435653 encode async dispatched requestURI 2014-07-19 18:55:02 +10:00
Greg Wilkins b38a978eac 439067 Improved graceful stop timeout handling 2014-07-19 00:46:55 +10:00
Jan Bartel d580c3279b Make LoginService tests use single database and drop and recreate tables 2014-07-18 17:02:41 +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
Joakim Erdfelt c4c8426069 439507 - Possible timing side-channel when comparing MD5-Credentials
+ Using correct digestMismatch logic
+ Fixing test cases:
  + No longer reuses / shares directories
  + Is now Windows build/test compatible
  + No longer deleteOnExit() the test data
    (let maven clean and/or test init do that)
  + Empty directories are now verified
  + Using server.getURI() instead of URL string manipulation
2014-07-17 17:55:22 -07:00
Joakim Erdfelt e39adb337f 439672 support using Apache commons daemon for managing Jetty
Signed-off-by: marko asplund <marko.asplund@gmail.com>
2014-07-17 08:37:50 -07:00
Simone Bordet a7e87c5eed Updated NPN and ALPN to JDK 7u65 and 8u11. 2014-07-17 11:48:19 +02:00
Jan Bartel 405fd05a6e 439369 Deprecate CrossContextPseudoSession 2014-07-17 18:36:35 +10:00
Jan Bartel 3975d1170a 439753 ConstraintSecurityHandler has dead code for processing constraints 2014-07-17 18:23:14 +10:00
Greg Wilkins a89419fd3f 434536 Improved Customizer javadoc 2014-07-17 16:09:42 +10:00
Greg Wilkins a2a333ba53 435653 encode async dispatched requestURI 2014-07-17 15:51:22 +10:00
Greg Wilkins 2d52280179 436987 limited range of default acceptors and selectors 2014-07-17 14:29:58 +10:00
Greg Wilkins b13be9cfa6 438327 Remove hard coded Allow from OPTIONS * 2014-07-17 13:40:21 +10:00
Greg Wilkins 6bc08000c7 439066 javadoc setStopAtShutdown 2014-07-17 13:29:54 +10:00
Greg Wilkins 94ac37f8c2 439067 Javadoc for graceful server stop 2014-07-17 13:29:54 +10:00
Jan Bartel 182436301b 439438 DataSourceLoginService does not refresh passwords when changed in database 2014-07-17 12:54:35 +10:00
Greg Wilkins 12b522d796 439507 Avoid timing leak in MD5 compare
Also-by: Benny Baumann<BenBE@cacert.org>
2014-07-17 12:42:59 +10:00
Greg Wilkins 3a5e67ce9e Making ShutdownThread actually stop 2014-07-17 10:50:54 +10:00
Greg Wilkins 591eedcb59 [FindBugs] Include explicit typing whereever possible
+ No cleanup regarding unchecked types (yet)
2014-07-17 10:47:49 +10:00
Greg Wilkins 0c66f3a68e [FindBugs] Ensure resources are closed/freed properly
Removing dumb connector.close during server.getURI()
2014-07-17 10:00:26 +10:00
Greg Wilkins ec310dca90 Fixes to Hash Sessions for 'Stream Closed' errors 2014-07-17 09:45:12 +10:00
Greg Wilkins ce63ab2290 Ensure everything is finalized properly, especially that the lock is unlocked
The issue here was that due to the method call there was no guarantee that the unlock was reached in case of an exception.
Restructuring the code like this provides this guarantee
2014-07-17 08:51:45 +10:00
Greg Wilkins c19a14a4a2 [FindBugs] Ensure proper lazy-initialization even if this costs some performance 2014-07-17 08:35:40 +10:00
Joakim Erdfelt cecb8d6d04 Minor typo fix 2014-07-17 08:31:08 +10:00
Greg Wilkins 937ef10718 [FindBugs] outer if statement alreayd catches max_cached_files 2014-07-17 08:31:08 +10:00
Joakim Erdfelt 5be27516a4 [FindBugs] Remove unnecessary template specialization 2014-07-17 08:31:08 +10:00
Jan Bartel 1dcb7dd986 439194 Do not configure fake server for jetty:run-forked 2014-07-17 08:28:38 +10:00
Joakim Erdfelt 4bf7e9e440 [FindBugs] remove unused imports 2014-07-17 08:17:42 +10:00