Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-1712

PATH_INFO does not transfer between IIS and Tomcat when using AJP protocol

    Details

      Description

      When connecting IIS webserver to Tomcat using AJP protocol the PATH_INFO header (Attribute) does not make to Railo CGI.PATH_INFO. It is populated by connectors, but at the moment, tomcat will ignore the data contained and leave this as null.

      With the BonCode connector (http://tomcatiis.riaforge.com) an additional HTTP header (xajp-path-info) is being transferred that will contain the PATH_INFO from IIS.

      It would be helpful if the CGI.PATH_INFO data is populated from this alternate header if no other data is available.

      Current Code sequence that does the lookup:
      Caster.toString(req.getAttribute("javax.servlet.include.path_info"),null);
      if(StringUtil.isEmpty(pathInfo)) pathInfo = req.getPathInfo();
      if(!StringUtil.isEmpty(pathInfo,true)) return pathInfo;
      return "";

      new data in alternate header like this:
      request.getHeader("xajp-path-info");

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                bilal_s Bilal Soylu
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: