Re: Unable to get local issuer certificate

2023-09-18 Thread Andy Pont
Thomas wrote… This means, the calling program can't verify the certificate. Check whether all the intermediates are delivered by tomcat. Furthermore, the calling program must know the root-certificate of your webserver certificate. If I look at a random website using 'openssl s_client -showce

Unable to get local issuer certificate

2023-09-18 Thread Andy Pont
Hello, I am receiving the above error when a GitLab webhook tries to call my servlet. The full text of the error states: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate). If I try to access any of the servlets running in the sam

Re: Forwarding request to a different servlet

2023-08-16 Thread Andy Pont
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

Re: Forwarding request to a different servlet

2023-08-15 Thread Andy Pont
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

Re: Forwarding request to a different servlet

2023-08-13 Thread Andy Pont
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

Re: Forwarding request to a different servlet

2023-08-11 Thread Andy Pont
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

Forwarding request to a different servlet

2023-08-11 Thread Andy Pont
Hello! We have a commercial application that runs under Tomcat 8.5.65 (on Windows Server 2019). In the tomcat/webapps directory there are the following three directories (names changed): backend frontend ROOT The “frontend” directory contains the UI for the commercial application and is, a