> 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
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
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
> 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
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
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
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