Greg Wilkins
98970f973c
Fixed #1579 forgiving of bad quality CSV
2017-05-30 10:19:14 +02:00
Greg Wilkins
cb84946467
Fixed #1579 forgiving of bad quality CSV
2017-05-30 10:14:12 +02:00
Greg Wilkins
b0edf18ad9
Issues #1538 #1435
...
Get base content type directly rather than through Type which maybe null
2017-05-08 15:31:00 +02:00
Simone Bordet
c285d6f8bb
Fixes #612 - Support HTTP Trailer.
...
Added support on both the server and the client, for HTTP/1 and HTTP/2.
2017-04-03 22:25:50 +02:00
Greg Wilkins
2fafa1de0f
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-03-30 14:13:07 +11:00
Joakim Erdfelt
dff8fb6b90
Issue parameter decoding ( #1330 )
...
* Issue #1327 - Removing non-standard (Microsoft only) %uXXXX support
* Issue #1322 - Removing attempts at "solving" bad behavior in UrlEncoded
+ No longer captures NumberFormatException and Utf8Exception and
NotUtf8Exception for purposes of "recovering" from a bad encoding.
+ Introduces UrlEncode.decodeHexChar() and .decodeHexByte() to make
reporting of bad encoding more clear.
* Issue #1316 - throw a BadMessageException on bad parameter parsing
+ If BadMessageException is uncaught by the webapp, this will result
in an error 400 response message.
+ If an application decides to catch the BadMessageException, they can
choose to ignore the exception and do their own error reporting.
+ This piggybacks on Issue #1327 and Issue #1322
2017-03-30 14:00:39 +11:00
jhaeyaert
be1ddf61df
feat(mimetypes): Added mimetypes for font files .eot, .woff, .woff2 ( #1420 )
...
* feat(mimetypes): Added mimetypes for font files .eot, .woff, .woff2
* feat(mimetypes): Added mimetypes for font files .eot, .woff, .woff2
2017-03-30 12:37:57 +11:00
Jan Bartel
89e51aadbe
Issue #1433
2017-03-29 12:15:06 +11:00
Joakim Erdfelt
398e5b3462
Minor verbiage change in exception messages
2017-03-16 11:52:48 -07:00
Joakim Erdfelt
ccf72d6752
Issue #1403 - moving CookieCompliance to jetty-http module
2017-03-16 11:28:43 -07:00
Joakim Erdfelt
ed9f7ddd4c
Issue #1402 - Moving RFC asserts to jetty-http Syntax class
2017-03-16 11:25:21 -07:00
Greg Wilkins
0a2da4822d
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-03-06 14:20:23 +11:00
Greg Wilkins
5d6a1e3025
Issue #1351 Ignore missing quality
2017-02-25 12:37:50 +09:00
Greg Wilkins
b4e4e65994
Issue #612
...
TODO in Response for using HttpGenerator trailer mechanism
2017-02-10 08:46:46 +11:00
Joakim Erdfelt
b72854f02b
Removing System.out
2017-02-06 10:18:26 -07:00
Joakim Erdfelt
cdc58b4008
Fixing InsufficientBytes test cases
...
+ Because of issues #1045 and #1185 insufficient bytes on a response results in a closed connection
2017-02-06 10:18:26 -07:00
Joakim Erdfelt
0a1eee1c28
Fixing surefire breaking HttpManyWayToCommitTest
...
+ Reverting change to HttpTester.parseResponse(Input)
+ Providing new HttpTester.parsePartialResponse(Input)
+ InsufficientBytes tests no longer assert content strings with invalid
characters (this was breaks the surefire report xml)
2017-02-06 10:18:26 -07:00
Joakim Erdfelt
fbbd5f4777
HttpTester.parseResponse(Input) returns on TE/Chunked now
2017-02-06 10:18:26 -07:00
Joakim Erdfelt
6509bc584b
Removing System.out
2017-02-03 10:34:30 -07:00
Joakim Erdfelt
2bd1029d1b
Fixing InsufficientBytes test cases
...
+ Because of issues #1045 and #1185 insufficient bytes on a response results in a closed connection
2017-02-03 10:29:27 -07:00
Joakim Erdfelt
472a40806e
Fixing surefire breaking HttpManyWayToCommitTest
...
+ Reverting change to HttpTester.parseResponse(Input)
+ Providing new HttpTester.parsePartialResponse(Input)
+ InsufficientBytes tests no longer assert content strings with invalid
characters (this was breaks the surefire report xml)
2017-02-03 06:25:23 -07:00
Joakim Erdfelt
247d273e94
HttpTester.parseResponse(Input) returns on TE/Chunked now
2017-02-03 04:53:03 -07:00
Joakim Erdfelt
5e57b9562f
Merge branch 'jetty-9.3.x' into jetty-9.4.x
2017-02-02 16:14:10 -07:00
Joakim Erdfelt
0254854299
Merge branch 'jetty-9.3.x' of github.com:eclipse/jetty.project into jetty-9.3.x
2017-02-02 15:54:27 -07:00
Joakim Erdfelt
9a8f22d5dd
Testing Updates
...
+ Upgrading to jetty-test-helper 4.0
+ Removing use of org.eclipse.jetty.toolchain.test.SimpleRequest
+ Removing use of org.eclipse.jetty.toolchain.test.http.SimpleHttpParser
+ Removing use of org.eclipse.jetty.toolchain.test.http.SimpleHttpResponse
+ Updating long since deprecated (and now removed) known quirky methods
in jetty-test-helper and the test classes.
2017-02-02 15:51:38 -07:00
Greg Wilkins
80386028c1
Trailers for generated requests
2017-02-02 13:27:12 +11:00
Simone Bordet
7923032582
Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
2017-02-02 00:24:51 +01:00
Greg Wilkins
461c6082ae
Issue #1296 - Introduce HTTP parser "content complete" event.
2017-02-01 23:54:36 +01:00
Simone Bordet
7e7459d825
Fixes #612 - Support HTTP Trailer.
...
Implemented support in the generic HttpChannel and Request classes.
Linked HTTP/1.1 and HTTP/2 trailers to call HttpChannel, so that trailers
are now available in Servlet APIs by casting to Jetty's Request class.
The semantic is that trailers will only be available _after_ reading
the request content.
2017-01-30 15:17:59 +01:00
Simone Bordet
4f7c53b9b1
Introduced additional call to parsedTrailer() and added tests.
2017-01-30 15:17:59 +01:00
Greg Wilkins
e45f76e946
Issue #612 Http Trailers
...
Added support for parsing Http Trailers.
Currently ignored in HttpParser.HttpHandler
2017-01-30 15:17:59 +01:00
Greg Wilkins
7df6904a73
implements #1291 chunk hints
2017-01-27 16:04:32 +11:00
Jan Bartel
0b45f377bf
Issue #1290
2017-01-27 15:42:52 +11:00
Simone Bordet
c7c183c370
Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
2017-01-20 15:42:39 +01:00
Simone Bordet
acab5ef18e
Merged branch 'jetty-9.2.x' into 'jetty-9.3.x'.
2017-01-20 15:42:12 +01:00
Simone Bordet
9653d74cae
Issue #1229 - ClassLoader constraint issue when using NativeWebSocketConfiguration with WEB-INF/lib/jetty-http.jar present.
...
Guarded against NPE.
2017-01-20 15:41:41 +01:00
Simone Bordet
ee17396cee
Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
2017-01-20 12:27:29 +01:00
Simone Bordet
9ae93c19ca
Merged branch 'jetty-9.2.x' into 'jetty-9.3.x'.
2017-01-20 12:20:21 +01:00
Simone Bordet
51f68dc57e
Issue #1229 - ClassLoader constraint issue when using NativeWebSocketConfiguration with WEB-INF/lib/jetty-http.jar present.
...
Introduced String-based APIs to specify mappings, to avoid the
classloader issue.
2017-01-20 11:34:29 +01:00
Simone Bordet
0c8273f2ca
Happy New Year 2017.
2017-01-19 19:26:41 +01:00
Simone Bordet
07838b057f
Happy New Year 2017.
2017-01-19 18:54:03 +01:00
Simone Bordet
347c48d657
Revert "resolve merge and update license headers"
...
This reverts commit 53b31b03dd
, reversing
changes made to 4565c186d7
.
2017-01-19 18:26:43 +01:00
Jesse McConnell
53b31b03dd
resolve merge and update license headers
2017-01-19 09:33:16 -06:00
Jesse McConnell
ce3e6dafec
update license headers to 2017
2017-01-19 09:30:00 -06:00
Greg Wilkins
c6e910cf12
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-01-18 14:39:20 +11:00
Greg Wilkins
a4dd1672da
Fixes #1269 extensible assumed mimetypes
2017-01-18 13:42:42 +11:00
Greg Wilkins
611e79945c
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-01-11 18:10:50 +11:00
Greg Wilkins
6da563f43e
Revert "Issue #612 Http Trailers"
...
This reverts commit 5011f071ff
.
2017-01-11 17:59:00 +11:00
Greg Wilkins
36dcf47f18
Issue #1234 onBadMessage
...
Added a boolean to determine if headerComplete has been called, and if so then earlyEOF is called
2017-01-11 17:36:04 +11:00
Greg Wilkins
5011f071ff
Issue #612 Http Trailers
...
Added support for parsing Http Trailers.
Currently ignored in HttpParser.HttpHandler
2017-01-11 14:44:43 +11:00
Greg Wilkins
30844deedf
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-01-10 18:01:03 +11:00
Greg Wilkins
d2b8980243
Issue #612
...
Added support to parse and ignore HTTP/1.1 chunking trailers.
Handle an early EOF within the trailer gracefully rather than with earlyEOF.
2017-01-10 16:19:40 +11:00
Olivier Lamy
9bc4cd32fc
backport of fixes for #592 ( #1208 )
...
Signed-off-by: olivier lamy <olamy@webtide.com>
2017-01-01 20:33:51 +11:00
Joakim Erdfelt
44596a7714
Merge branch 'jetty-9.3.x' into jetty-9.4.x
2016-12-16 08:38:01 -07:00
Joakim Erdfelt
bd104d59f9
Issue #1114 - persisting NativeWebSocketConfiguration mappings
...
+ Mappings are persisted if added to the NativeWebSocketConfiguration
before that configuration is started. Otherwise they are cleared
out on configuration.stop() lifecycle (like before)
2016-12-14 15:31:23 -07:00
Joakim Erdfelt
281b18c0fc
Adding test of onUpgradeFrom buffer split
2016-12-01 13:07:08 -07:00
Simone Bordet
59786f1f65
Code cleanup.
2016-11-25 08:56:56 +01:00
Joakim Erdfelt
6a4ea05584
Merge branch 'jetty-9.3.x' into jetty-9.4.x
2016-11-14 15:01:02 -07:00
Joakim Erdfelt
5833f7e135
Issue #1098 - Correcting Content-Type parsing mistake with multiple ';' characters
2016-11-14 14:59:59 -07:00
Simone Bordet
e78c117c01
Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
2016-11-14 22:30:08 +01:00
Joakim Erdfelt
708104ccaf
Issue #1098 adding unit tests for bug report.
2016-11-14 14:08:11 -07:00
Greg Wilkins
5395cfd021
Issue#1066 Simplify HttpGeneration
...
HTTP requests cannot be close limited
2016-11-04 08:29:49 +11:00
Greg Wilkins
c6436c34ad
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-11-03 16:56:21 +11:00
Greg Wilkins
6781a949b1
Issue#1066 Simplify HttpGeneration
...
Reduce the transformations needed on header fields, so they can be more often
set directly and no need to split and recombine.
The Content-Length field is added IF it is needed for framing or if it was explicitly set
The Transfer-Encoding: chunk field is used only as a hint that there is content.
Connection fields are used as is, but are checked for close and keep-alive
2016-11-03 16:55:33 +11:00
Greg Wilkins
3dc2637d21
Issue #1063 Accept empty host
2016-11-03 15:06:32 +11:00
Greg Wilkins
53853df3bb
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-10-26 11:20:50 +11:00
Greg Wilkins
81e2bfd0c7
Improve HttpField preencoding #1031
2016-10-26 11:19:47 +11:00
Simone Bordet
b741b454af
Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
2016-10-25 15:45:56 +02:00
Simone Bordet
33eb768d69
Fixes #1029 - Restore Request.setHttpVersion().
...
Also cleaned up the asymmetry in MetaData between the setter
(setHttpVersion()) and the getter (getVersion()).
2016-10-25 15:45:29 +02:00
Jan Bartel
34f0015aa9
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-10-21 16:37:13 +11:00
Jan Bartel
638045764e
Issue #1018
2016-10-21 16:32:45 +11:00
Greg Wilkins
8f522dcb2c
fixed bad merge
2016-10-17 12:23:19 +11:00
Greg Wilkins
81d98407a4
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-10-17 12:01:45 +11:00
Simone Bordet
f2061cbe60
Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
2016-10-06 16:33:58 +02:00
Simone Bordet
85f50da053
Code cleanups.
2016-10-05 09:15:33 +02:00
Greg Wilkins
98bb582d45
Jetty 9.4.x http interceptor #382
...
* Issue #382 Request compression
Added identity HttpInput.Interceptor
Moved GZIPContentDecoder to jetty-http
Reworking interceptor and GZIPContentDecoder to avoid data copies
Completed and tested GZIPContentDecoder
Implemented GzipHttpInputInterceptor
updated GzipHandler.java
updated gzip module
use common GZIP decoder
Gzip Bomb
handle read() after empty interception
2016-10-05 13:49:20 +11:00
Simone Bordet
e21ad09e3a
Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
2016-09-05 23:09:12 +02:00
Simone Bordet
89b20b4692
Merged branch 'jetty-9.3.x-845'.
2016-09-05 21:36:04 +02:00
Greg Wilkins
a01cdf6417
fixed coding standards
2016-09-02 16:07:02 +10:00
Greg Wilkins
3b9db6bcd4
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-09-02 15:54:50 +10:00
Greg Wilkins
8edc5f73a2
fixed javadoc
2016-09-02 15:53:28 +10:00
Greg Wilkins
25574d2843
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-09-02 14:57:44 +10:00
Greg Wilkins
1f7c5a5b20
Issue #898
...
Added addCSV method to HttpFields to more efficiently add values to a CSV field without duplicates.
Improved usage of QuotedCSV and removed older parsing
Used new method in GazipHttpOutPutInterceptor to avoid duplicate Vary fields
2016-09-02 14:57:13 +10:00
Greg Wilkins
5ab9846ac5
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-08-31 20:32:54 +10:00
Greg Wilkins
f856107301
Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x
2016-08-31 19:05:57 +10:00
Greg Wilkins
0155ae761c
Issue #880 Improve IPv6 support
...
For #880 added the HostPort class, which was used to fix #878 , #879 , #884 and #886
2016-08-31 16:46:11 +10:00
Greg Wilkins
3d93d39b39
Issue #845 data rate limits
...
Initial thoughts
2016-08-16 16:24:14 +10:00
Greg Wilkins
d45ebcb2bf
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-08-11 19:14:34 +10:00
Greg Wilkins
b45af1a3c9
Issue #185 Implement RFC 7239
...
Also handle legacy Https headers for #834
2016-08-11 18:56:51 +10:00
Jan Bartel
eab4d92032
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-08-10 12:13:22 +10:00
Jan Bartel
a9653e2f49
Issue #797
...
Use MimeTypes.class.getClassLoader to load properties.
2016-08-10 12:07:29 +10:00
Jan Bartel
8f058d2b09
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-08-03 18:56:36 +10:00
Jan Bartel
4b920622d5
Issue #797
2016-08-03 18:33:53 +10:00
Greg Wilkins
53a1b8f995
OSGI MimeTypes resource #797
...
Pass MimeTypes.class as the classloader source.
No unit test to confirm the fix.
2016-08-02 12:48:50 +10:00
Greg Wilkins
06a40e919a
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-07-29 18:03:27 +10:00
Greg Wilkins
e0a1a1988f
Response.reset does not clear session cookie #789
2016-07-29 16:45:09 +10:00
Joakim Erdfelt
87c8e1c019
Merge branch 'jetty-9.3.x' into jetty-9.4.x
2016-07-25 17:02:51 -07:00
Greg Wilkins
e53ea55f48
Issue #752 SETTINGS_MAX_HEADER_LIST_SIZE
...
Defined missing status codes (removed old/wrong javadoc)
Changed use of 413 to 431
Received SETTINGS_MAX_HEADER_LIST_SIZE is set on hpack encoded and warning generated only for large responses.
2016-07-23 12:17:50 +10:00
Greg Wilkins
0a7903485a
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2016-07-20 17:01:21 +10:00
Greg Wilkins
7e16731b9d
fix #592
2016-07-20 16:59:28 +10:00