Winstone is a servlet container that was written out of a desire to provide servlet functionality without the bloat that full J2EE compliance introduces.
In source file: `WebAppConfiguration.java`
Has these code:
{{{
if (filterPatternsRequest.length > 0) {
Arrays.sort(filterPatternsRequest, filterPatternsRequest[0]);
}
if (filterPatternsForward.length > 0) {
Arrays.sort(filterPatternsForward, filterPatternsForward[0]);
}
if (filterPatternsInclude.length > 0) {
Arrays.sort(filterPatternsInclude, filterPatternsInclude[0]);
}
if (filterPatternsError.length > 0) {
Arrays.sort(filterPatternsError, filterPatternsError[0]);
}
}}}
But in file `web-app_2_5.xsd`:
Section `<xsd:complexType name="filter-mappingType">` has these words:
{{{
The order in
which filters are invoked is the order in which
filter-mapping declarations that match a request URI for a
servlet appear in the list of filter-mapping elements.
}}}
So I think winstone should not sort filter-mapping,for this reason I maintain a
branch version of winstone, my solution is remove these sort codes.
Original issue reported on code.google.com by jht5...@gmail.com on 8 Oct 2013 at 9:51
Original issue reported on code.google.com by
jht5...@gmail.com
on 8 Oct 2013 at 9:51