Commit Graph

11779 Commits

Author SHA1 Message Date
Greg Wilkins bbb7f2188c Merge branch 'jetty-9.3.x' into issue-472 2016-04-05 12:24:25 +10:00
Greg Wilkins b087e6db28 Issue #467 Compact // rule
Improved the rewrite classes and modules to make it easier to compact // withing a URL.
This can now be done with --module=rewrite,rewrite-compactpath
2016-04-05 12:13:29 +10:00
Greg Wilkins 557ca69f59 Merge branch 'jetty-9.3.x' into issue-472 2016-04-05 10:00:09 +10:00
Greg Wilkins 424f0c1e04 Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x 2016-04-05 09:57:28 +10:00
Simone Bordet 5c147288ef Fixes #481 - Event response.success notified without waiting for content callback for HTTP/2 transport.
Fixed by notifying the response.success event only when the callback
is succeeded.
2016-04-04 15:40:25 +02:00
Simone Bordet c1997b40a5 Updated ALPN to OpenJDK 8u77. 2016-04-04 15:38:53 +02:00
Simone Bordet 3e6bc4d17a Updated ALPN version for JDK 8u77. 2016-04-04 10:58:09 +02:00
Simone Bordet 3fb06cca21 Issue #476 - HttpClient should not send absolute-form target with non HttpProxy.
Fixed test case.
2016-04-01 22:04:15 +02:00
Simone Bordet 4f68d44a50 Fixes #477 - HTTP/2 client transport must not send absolute-form :path pseudo-header.
Reducing the target to a path if it is in absolute-form.
2016-04-01 19:16:52 +02:00
Simone Bordet aac9f70243 Fixes #476 - HttpClient should not send absolute-form target with non HttpProxy.
Now only sending absolute-form in case of HttpProxy.
2016-04-01 17:46:22 +02:00
Simone Bordet ce04cadb79 Fixes #233 - Add message to idle TimeoutException. 2016-04-01 14:44:26 +02:00
Simone Bordet 4aa512e468 Issue #184 - Empty Realm for BasicAuthentication.
Fixed by allowing empty realms.
2016-04-01 14:29:11 +02:00
Simone Bordet c8fea46e8f Issue #450 - Client AuthenticationProtocolHandler sends request failures to response failure listener.
Fixed by properly forwarding response success in case only the
request failed.
2016-04-01 12:46:12 +02:00
Simone Bordet a97d29f54b Removed usages of deprecated Callback.Adapter. 2016-04-01 12:46:12 +02:00
Greg Wilkins 91bef55924 Issue #472 Use LongAdder for statistics
Signed-off-by: Greg Wilkins <gregw@webtide.com>
2016-04-01 17:22:45 +11:00
Jan Bartel 77a6514063 Issue #469 Update to Apache Jasper 8.0.33 2016-03-31 18:43:50 +11:00
Jan Bartel 60bccc178e Issue #469 update to apache jasper 8.0.33 2016-03-31 18:41:03 +11:00
Greg Wilkins 08b528e960 Issue #470 AsyncContextState NPE if called after reset
Added a NOT_ASYNC state to the enum to avoid the null value.
2016-03-31 18:23:18 +11:00
Simone Bordet 86f3947378 Issue #454 - DoSFilter does not send an error status code when closing a connection, because of timeout.
Introduced onRequestTimeout() to deprecate closeConnection() since
the method was wrongly named.
Now onRequestTimeout() performs a sendError(503) to signal that the
request timed out, rather than responding with 200 OK.

Cleaned up tests.
2016-03-30 19:08:32 +02:00
Greg Wilkins c768828703 Issue #458 Improve Quality list handling
Added QuotedCSV and QuotedQualityCSV that are up to date with RFC7230
2016-03-30 19:07:11 +11:00
Joakim Erdfelt 80eefb5257 Improving WebSocketAdapter test reliability 2016-03-25 13:25:08 -07:00
Simone Bordet 9116f792fd Merge pull request #457 from stephanemartin/jetty-9.3.x
[Jetty-Client] fix: don't add host automaticaly on http2 request.
2016-03-25 18:31:58 +01:00
Stéphane Martin 1c8b0869fd [Jetty-Client] fix: don't add host automaticaly on http2 request.
All google server answers bad request when Host field is filled with h2 protocol.

Change-Id: I9e16f8c9f56bc26df0b0a933cee0b3a3d6c31921
Signed-off-by: Stéphane Martin <stephane.martin@neotys.com>
2016-03-25 17:45:53 +01:00
Joakim Erdfelt 5d882d12ab Fixing AttributeNormalizerTest to use real 'user.home'
+ Removing many debug lines
+ Resolving System.getProperty("user.home") to real system path
  before using it in the test case
2016-03-24 11:04:13 -07:00
Joakim Erdfelt 81c8708c52 Attempting to ascertain what's going on with AttributeNormalizer on CI 2016-03-24 10:13:39 -07:00
Joakim Erdfelt 3628e105e9 Fixing QuickStart / AttributeNormalizer test failures
+ Adding more noise to test cases to help determine what's going on in
  CI builds for test-quickstart
2016-03-23 21:28:27 -07:00
Greg Wilkins d341b0e1d6 Merge branch 'jetty-9.3.x' into jetty-9.3.x-issue-448 2016-03-24 11:38:46 +11:00
Greg Wilkins 8b228073e3 Issue #448 - RFC2616 Compliance Mode should track and report RFC7230 violations
Efficiency improvements
2016-03-24 11:37:39 +11:00
Jan Bartel ede4c3a711 Issue #435 adjust debug log message 2016-03-24 10:55:52 +11:00
Jan Bartel 1c07172635 Issue #453 Change logging of setting session maxInactiveInterval to DEBUG from WARN 2016-03-24 10:03:39 +11:00
Greg Wilkins 4ae077f2b6 Issue #448 - RFC2616 Compliance Mode should track and report RFC7230 violations
Improved compliance level reporting
Improved method names to make code read better
2016-03-23 14:42:05 +11:00
Greg Wilkins 7f96db72c4 Issue #448 - RFC2616 Compliance Mode should track and report RFC7230 violations
Empty value is not a compliance issue
removed debug
moved violation handling to end of header rather than end of message
2016-03-23 13:13:16 +11:00
Greg Wilkins d132356e86 Merge pull request #440 from eclipse/bugs/438
Issue #438 - File and Path Resources with control characters should be rejected
2016-03-23 12:41:55 +11:00
Joakim Erdfelt f2216ad108 Issue #437 - Avoid NPE on receiving empty message though MessageHandler.Partial
Minor updates to use features elsewhere in Jetty.
2016-03-22 12:51:04 -07:00
Joakim Erdfelt 995eba0f66 Merge pull request #442 from pbaranchikov/websocket-partial-npe
Issue #437 Avoid NPE on receiving empty message though MessageHandler.Partial
2016-03-22 12:47:03 -07:00
Joakim Erdfelt 7be58f9730 Issue #448 - RFC2616 Compliance Mode should track and report RFC7230 violations
+ added Optional behavior to record violations in a Request attribute
+ added servlet testcase showing this violation recording abillity
+ currently the recorded violation doesn't report the correct compliance mode that it violates
+ there is still a problem with a quoted empty string value from Issue #451
2016-03-22 12:20:19 -07:00
Joakim Erdfelt 0e2472b8e1 Issue #451 - RFC2616 Compliance mode should support empty headers
Updating test cases to show empty quoted header quirk
2016-03-22 11:20:50 -07:00
Pavel Baranchikov beccc5ee80 Fix #437 Avoid NPE on receiving empty message though MessageHandler.Partial
Signed-off-by: Pavel Baranchikov <p.a.baranchikov@gmail.com>
2016-03-22 16:33:38 +03:00
Greg Wilkins 9352d91d48 Issue #448 Log Compliance violations
Added a ComplianceHandler to HttpParsere to log compliance violations for #448
Am cautious that this may have a performance impact.
2016-03-22 13:58:50 +11:00
Joakim Erdfelt 36f559b483 Issue #446 - jetty-quickstart path normalization uses improper paths on Windows
Using URI syntax everywhere in AttributeNormalizer
2016-03-21 15:40:42 -07:00
Joakim Erdfelt 4822bea0b1 Issue #438 - File and Path Resources with control characters should be rejected
+ Removing regex
+ Adding StringUtil.indexOfControlChars()

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2016-03-18 11:51:32 -07:00
Joakim Erdfelt 4f777a060f Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-03-18 10:42:40 -07:00
Joakim Erdfelt 14052742d0 Adding some git query scripts for information gathering 2016-03-18 10:42:17 -07:00
Simone Bordet 0e0edbb6db Fixes #441 (Simplify direct HTTP/2 over TLS HttpClient usage)
Added useALPN property to HttpClientTransportOverHTTP2 to disable
usage of ALPN and therefore allow direct HTTP/2 over TLS.
2016-03-18 10:49:03 +01:00
Joakim Erdfelt 05691e1646 Issue #438 - File and Path Resources with control characters should be rejected
+ Adding testcases
+ Cleaning up unit tests, adding more
+ Fixing one testcase related to FileResource.addPath()
+ Adding validation of filesystem paths

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2016-03-17 16:13:07 -07:00
Greg Wilkins df9de50f96 Issue #434 RequestTest stack traces
Added reset to ShutdownMonitor
2016-03-17 10:34:53 +11:00
Simone Bordet 18aeca6567 Fixes #242 (Expose HTTP/2 LastStream error) 2016-03-16 22:14:09 +01:00
Greg Wilkins 5da034db66 Issue #431
HttClientTest cleanup
2016-03-17 06:26:20 +11:00
Joakim Erdfelt ca5bedb97f Improving VERSION.txt language 2016-03-16 10:20:41 -07:00
Joakim Erdfelt 13fde643ed Merge branch 'release-9.3.8' into jetty-9.3.x 2016-03-16 10:03:29 -07:00