RE: Two serious issues have been introduced in Tomcat 7 and Tomcat 8...

2015-02-24 Thread Doug Forrest
> I agree the API is bad in the end, you don't really know which context is > being returned. For example if the context you're requesting is not > deployed, you'll get the root context and a random error when using it. I'm confused about why people think this behavior is random. It is not the AP

Re: Two serious issues have been introduced in Tomcat 7 and Tomcat 8...

2015-02-24 Thread Rémy Maucherat
2015-02-23 20:32 GMT+01:00 Konstantin Kolinko : > If ServletContext.getContext(String) is actually supposed to perform > prefix-mapping, then it explains why getContext("/ROOT") worked for > you. > > getContext("/ROOT") worked just because getContext("/foobar") returns > the ROOT context when ther

Re: Two serious issues have been introduced in Tomcat 7 and Tomcat 8...

2015-02-24 Thread Mark Thomas
On 23/02/2015 18:41, Mark Thomas wrote: > On 23/02/2015 18:01, Doug Forrest wrote: >> The issues were introduced by r1645015 in 7.x and r1644992 in 8.x. >> Both issues are related to ApplicationContext.getContext(String >> uri). >> >> Issue 1: >> >> getContext("/ROOT") no longer works. In fact, it

RE: Two serious issues have been introduced in Tomcat 7 and Tomcat 8...

2015-02-23 Thread Doug Forrest
> If ServletContext.getContext(String) is actually supposed to perform > prefix-mapping, then it explains why getContext("/ROOT") worked for > you. > getContext("/ROOT") worked just because getContext("/foobar") returns > the ROOT context when there is no "foobar" application. There is > nothing

Re: Two serious issues have been introduced in Tomcat 7 and Tomcat 8...

2015-02-23 Thread Konstantin Kolinko
2015-02-23 21:01 GMT+03:00 Doug Forrest : > The issues were introduced by r1645015 in 7.x and r1644992 in 8.x. Both > issues are related to ApplicationContext.getContext(String uri). > > Issue 1: > > getContext("/ROOT") no longer works. In fact, it doesn't appear to be > possible to get the ROOT

Re: Two serious issues have been introduced in Tomcat 7 and Tomcat 8...

2015-02-23 Thread Mark Thomas
On 23/02/2015 18:01, Doug Forrest wrote: > The issues were introduced by r1645015 in 7.x and r1644992 in 8.x. > Both issues are related to ApplicationContext.getContext(String > uri). > > Issue 1: > > getContext("/ROOT") no longer works. In fact, it doesn't appear to be > possible to get the ROOT

Two serious issues have been introduced in Tomcat 7 and Tomcat 8...

2015-02-23 Thread Doug Forrest
The issues were introduced by r1645015 in 7.x and r1644992 in 8.x. Both issues are related to ApplicationContext.getContext(String uri). Issue 1: getContext("/ROOT") no longer works. In fact, it doesn't appear to be possible to get the ROOT context using this method any more since the literal u