Chris wrote...
So it looks like the backend service IS being called, but rejecting the request because
of the "UserAgent" object complaining about it.
I would log the User-Agent header from the request in your front-end before the
RequestDispatcher.forward() call, and if possible, also log it
Andy,
On 8/15/23 03:32, Andy Pont wrote:
Chris wrote…
The .forward() should keep all request headers (and many other things)
in-tact. You might want to log some things in plugins/whatever to see
what is being done.
You should be using the *same objects* your servlet got for the
request and
Chris wrote…
The .forward() should keep all request headers (and many other things) in-tact.
You might want to log some things in plugins/whatever to see what is being done.
You should be using the *same objects* your servlet got for the request and response when
calling RequestDispatcher.for
Andy,
On 8/13/23 04:24, Andy Pont wrote:
I wrote...
Progress of sorts! The request is now returning 302 instead of 404!
Looking in the log files for the backend, it has a message that says
“Robot requests must be rejected” and the 302 response is due to a
redirect to a permission denied pa
I wrote...
Progress of sorts! The request is now returning 302 instead of 404!
Looking in the log files for the backend, it has a message that says “Robot
requests must be rejected” and the 302 response is due to a redirect to a
permission denied page.
My understanding was the .forward() me
Mark wrote...
RequestDispatcher operates within a given ServletContext (web application).
You are trying to do a cross-context dispatch - i.e. to another web
application. To do this you will need to:
- enable cross-context dispatch for the /plugins web application
https://tomcat.apache.org/to
RequestDispatcher operates within a given ServletContext (web application).
You are trying to do a cross-context dispatch - i.e. to another web
application. To do this you will need to:
- enable cross-context dispatch for the /plugins web application
https://tomcat.apache.org/tomcat-8.5-doc/
Hi, Andy-
I'd suggest looking at:
ServletContext.getContext
and comparing:
ServletContext.getRequestDispatcher with
ServletRequest.getRequestDispatcher
Hope that helps.
-Terence Bandoian
On 8/11/2023 2:52 AM, Andy Pont wrote:
Hello!
We have a commercial application that runs under Tomcat 8.