Skip to main content
Inspiring
February 21, 2013
Question

CGI.PATH_INFO is blank in CF 10

  • February 21, 2013
  • 2 replies
  • 35793 views

I know this was an issue that was supposedly fixed in the first update, but I applied that and I'm still experiencing the error.  Any ideas?

Version says ColdFusion 10,283649

    This topic has been closed for replies.

    2 replies

    itisdesign
    Inspiring
    February 23, 2013

    Hi ColdFusionSmurf,

    I just verified that ColdFusion 10,282462 (w/ 0 CF updates installed) on IIS7.5 correctly returns CGI.PATH_INFO as "/foo" for "http://localhost/index.cfm/foo"

    #3305486, which Update 1 fixed, was specific to URL Rewriting.

    Can you please post an example of a URL path for which CGI.PATH_INFO is empty but shouldn't be?

    Thanks,

    -Aaron

    Known Participant
    March 13, 2013

    I just discovered this problem after migrating from CF9 to CF10.  I have applied all of the patches and have been relying on CGI.PATH_INFO in a breadcrumb tag.  That tag is all over my website and now returns only the 'home' link which doesn't use the CGI.PATH_INFO tag. 

    This page is testing the the CGI.PATH_INFO and is returning nothing 

    http://www.ute-sei.org/English/sue.cfm

    Sue

    Anit_Kumar
    Inspiring
    March 13, 2013

    Hello,

    As per the Servlet spec, CGI.PATH_INFO should be empty for a request URL like http://myserver/index.cfm

    In case your URL is like http://myserver/index.cfm/hello, you will get the CGI.PATH_INFO as “/hello”

     

    JRun which was the underlying server for CF 9 and earlier was actually giving a wrong value for PATH_INFO and that is why you see this change in behavior. You can refer to http://docs.oracle.com/javaee/1.2.1/api/javax/servlet/http/HttpServletRequest.html#getPathInfo().

    Regards,

    Anit Kumar

    Anit_Kumar
    Inspiring
    February 22, 2013

    CGI.PATH_INFO should be empty for a request URL like http://myserver/index.cfm

    In case your URL is like http://myserver/index.cfm/hello, you will get the CGI.PATH_INFO as “/hello”

    JRun which was the underlying server for CF 9 and earlier was actually giving a wrong value for PATH_INFO and that is why you see this change in behavior. You can also see this http://docs.oracle.com/javaee/1.2.1/api/javax/servlet/http/HttpServletRequest.html#getPathInfo().

    Inspiring
    February 22, 2013

    Thank you for your response, but that is not the issue.  CGI.PATH_INFO is always blank, no matter where I am within the directory structure.  This was a bug (3305486) in CF10 but was supposedly fixed in updater 1:

    http://helpx.adobe.com/coldfusion/kb/coldfusion10-update-01.html

    I have installed that update.  In fact, I have installed and reinstalled it several times.  It has never fixed the issue for me, and I'm wondering if there are any other suggestions.

    My machine is:

    Windows 2008 R2

    IIS 7.0

    ColdFusion 10,283649

    Anit_Kumar
    Inspiring
    February 22, 2013

    Can you please reconfigure the connector after applying the update (CF 10 Update 1) and check if this still does not work for you?