tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33063] - Filter-mapping matches "/" (should only match "*.do" and "*.jsp"
Date Wed, 12 Jan 2005 13:57:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33063>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33063





------- Additional Comments From asf-bugzilla@lotk.de  2005-01-12 14:57 -------
Sorry, but this can't be the solution.

>From RequestFilter.java:

  protected static String[] ignoredResources;

  static {

    ignoredResources = new String[5];
    ignoredResources[0] = "sessionTimeout.jsp";
    ignoredResources[1] = "index.jsp";
    ignoredResources[2] = "gotoLogon.do";
    ignoredResources[3] = "logon.do";
    ignoredResources[4] = "staticJavascript.jsp";
  }

  [...]

      // Welche Resource wird gerade aufgerufen?
      String requestURL = httpRequest.getRequestURL().toString();

      // Wird eine "ignorierte Resource" aufgerufen?
      boolean ignoredResource = false;

      for(int xx = 0; xx < ignoredResources.length; xx++) {

        if(requestURL.endsWith(ignoredResources[xx])) {

          ignoredResource = true;
          break;
        }
      }

      // Wenn eine "ignorierte Resource" aufgerufen wird auch weitergehen.
      if(ignoredResource) {

        filterChain.doFilter(request, response);
      }


-----------------

As you see "index.jsp" will not be handled and CANNOT out put this:

 DEBUG http-8080-Processor25 de.lotk.webftp.servlet.RequestFilter - No valid
Session - redirecting Request "http://localhost:8080/webftp/" to:
"/webftp/sessionTimeout.jsp"


(besides the "requestURL" would than be "http://localhost:8080/webftp/index.jsp"
and NOT "http://localhost:8080/webftp/"

Best regards
Stephan

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message