Skip to main content
Inspiring
February 21, 2013
Question

CGI.PATH_INFO is blank in CF 10

  • February 21, 2013
  • 2 replies
  • 35766 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

    Inspiring
    March 15, 2013

    I don't have ANY urls have have a /anything after the .cfm file so Anit, repeating your message over and over is not helpful, nor does it add anything to this thread.

    Again, there is nothing in that variable no matter now many subdirectories down the file is.

    Sue

    p.s. @ColdFusionSmurf, thanks for the message and I'll look at implementing something like that.


    sduncanute wrote:

    I don't have ANY urls have have a /anything after the .cfm file so Anit, repeating your message over and over is not helpful, nor does it add anything to this thread.

    I think rather than getting snippy, you should perhaps actually read what Anit has been saying. They explained the situation perfectly well. The problem is that you're either not reading it, or not understanding it.

    I don't have ANY urls have have a /anything after the .cfm file

    Precisely. Given CGI.PATH_INFO is specifically for returning the stuff after the .cfm file, it stands to reason that it's empty if you don't have anything there.

    You need to understand that the behaviour on previous versions of ColdFusion - wherein CF supposedly put the file path (eg: /path/to/the/file.cfm) into CGI.PATH_INFO - was a bug. It was never supposed to be in there. CF10 fixed this.

    To try to repeat what Anit and Aaron have said, given this path:

    /physical/path/to/file/on/the/file/system.cfm/some/other/stuff?param=value

    • CGI.SCRIPT_NAME
    • CGI.PATH_INFO
    • CGI.QUERY_STRING

    That is how CF10 behaves, and that's how it's supposed to behave. This is correct behaviour.

    (that said, that's exactly how CF9.0.2 behaves for me as well).

    Does that make sense?

    And is this not what you too are seeing?

    --

    Adam

    Anit_Kumar
    Community Manager
    Community Manager
    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
    Community Manager
    Community Manager
    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?