Known Issue#:

HTTP Status 400 – Invalid direct reference to form login page

Topic/Category:

Tomcat

Ephesoft version(s) Affected:

Before Ephesoft Transact 4.5

Issue:

You may observe an issue on 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 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 home page and the next login attempt should be success as the url will contain proper requested resource.