HTTP Status 400 – Invalid direct reference to form login page

Applies to: Ephesoft Transact 4.5 and below

Issue

HTTP Status 400 – Invalid direct reference to form login page. You may observe an issue on the browser after starting/restarting Transact Tomcat service stating “Invalid direct reference page seen, appears to happen”.

Root Cause

This happens since tomcat keeps track of the last requested resource and in this case, there is no defined URI/landing page due to which 400 exception is thrown.

Solution

  1. Open <Ephesoft>\Application\WEB-INF\web.xml
  2. Add following highlighted entry in web.xml

      <errorpage>

         <error-code>503</error-code>

         <location>/home.html</location>

     </errorpage>

    <errorpage>

        <error-code>400</error-code>

        <location>/home.html</location>

   </errorpage>

  1. Restart Ephesoft service.
  2. This way if 400 error appears then the user will be taken to the home page and the next login attempt should be successful as the URL will contain the proper requested resource.