Skip to main content
Participating Frequently
May 26, 2013
Question

Symbolic Links do not work for Application.cfm in CF10

  • May 26, 2013
  • 1 reply
  • 5018 views

I have a Web, that use a symbolic link for centralized code.

The Application.cfm, stored in the original web-root, will not read from code

in the linked directory.

Thank you for your assistance.

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 26, 2013

    You're gonna need to provide a bit more detail here:

    * OS

    * how you created the link

    * how you're calling in the code

    * what the error message is

    * have you verified the user CF is using has permissions to the files concerned

    --

    Adam

    PretorianAuthor
    Participating Frequently
    May 26, 2013

    Hi Adam,

    thank you for your answer.

    The web servers works under SuSE Linux 12.3, the link was first copied via a tar-archive

    from the old server and then created new with "ln -s ../orgdirectory newdirectory".

    It seems, that the Session-ID, defined in Application.cfm is not recocnized by cfm-templates

    in newdirectory, which probably is stored in "orgdirectory".

    There are several Error messages, that session-variables (SESSION.LANG for example) are

    not defined. All these variables were defined in Application.cfm.

    The Application.cfm is owned by the same user as the other cfm-Templates.

    This code is identical functional at another server, working with CFMX7.

    I had installed all patches, that offered by Adobe.

    I'm frustrated.

    Inspiring
    May 27, 2013

    Hi Adam,

    thank you for your support!

    Ok, I agree to that, that only one Application.cfm should execute.

    But in the options "default" and "until webroot" an Application.cfm will never executed from templates

    in subdirs. This works only with the option "webroot".

    In my webs, I can do this workaround to select "webroot only" and place the one and only Application.cfm

    in the webroot. This works fine now.

    But it seems to be a bug in CF10, that there is no search sequence to upper folders. Do you agree with me?

    As I explained, I did several tests, and with the options "default" or "until webroot" selected, an Application.cfm

    in upper folders were never executed.

    Torsten


    But it seems to be a bug in CF10, that there is no search sequence to upper folders. Do you agree with me?

    No - I don't agree with you - because that would break pretty much every CF application on the planet. And we would have heard about that ;-)  You're just doing something wrong, or your install is shagged (I suspect the former).

    As I explained, I did several tests, and with the options "default" or "until webroot" selected, an Application.cfm

    in upper folders were never executed.

    OK, well I'm about to head out to the pub for lunch, so cannot look into this now. But depending on how comprehensive the "lunching" ends up being, I might have a look at this later today. Stay tuned.

    --

    Adam