Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFLOCATION ERROR

    Hi I got this error when running my application.
    does anybody know abt this error, am not inserting any carriage returns or any
    line fees, pls.help.

    here is my error.
    =====================

    Failed to perform redirection.
    ColdFusion was unable to perform the CFLOCATION operation. Location URL cannot
    contain (carriage return) CR or (line feed) LF characters

    The error occurred in line 47

    45 :
    46 : <cfif variables.redirect is 1>
    47 : <cflocation addtoken="no"
    url="thankyou.cfm?surveyflag=#form.surveyflag#&cid =#URLEncodedFormat(Encrypt(get
    _cid.cid,application.encryptkey))#" />
    48 : </cfif>
    49 :

    =================

    thanks in advance.



    weblover Guest

  2. Similar Questions and Discussions

    1. CFlocation.
      I?m interested to know whether it?s good practice to write long CF coded pages or segment CF code into several different CF pages and use cflocation...
    2. cflocation and 301 redirects
      I am looking for the same solution. When I try: <cfheader statusCode="301" statusText="Moved Permanently"> <cfheader name="Location"...
    3. CFLOCATION in CFMX
      Hopefully someone can answer this easy question. In CF5, I have a redirect using a CFLOCATION like this: <cflocation...
    4. cflocation
      Does anyone know a way to use cflocation to load a page into a specific target within a frameset? I am working with multiple framesets and I am...
    5. CFLocation and SSL
      I am moving someone on a site from a form on an http or https. I post to a page that queries a DB and then redirects based upon the form post. The...
  3. #2

    Default CFLOCATION ERROR

    Hi I got this error when running my application.
    does anybody know abt this error, am not inserting any carriage returns or any
    line fees, pls.help.

    here is my error.
    =====================

    Failed to perform redirection.
    ColdFusion was unable to perform the CFLOCATION operation. Location URL cannot
    contain (carriage return) CR or (line feed) LF characters

    The error occurred in line 47

    45 :
    46 : <cfif variables.redirect is 1>
    47 : <cflocation addtoken="no"
    url="thankyou.cfm?surveyflag=#form.surveyflag#&cid =#URLEncodedFormat(Encrypt(get
    _cid.cid,application.encryptkey))#" />
    48 : </cfif>
    49 :

    =================

    thanks in advance.



    weblover Guest

  4. #3

    Default Re: CFLOCATION ERROR

    Does the redirection take place if you remove the &cid=#URLEncodedFormat(Encrypt(get_cid.cid,applica tion.encryptkey))#" /
    jdeline Guest

  5. #4

    Default Re: CFLOCATION ERROR

    WebLover,

    If you are using CFMX 7 the CFlocation is handled differently. See this article


    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=46ba02fd&pss=rss_co[/url]
    ldfusion_46ba02fd

    Hope this helps,
    Guillermo

    theMex Guest

  6. #5

    Default CFLOCATION Error

    In our move to 7 from 6.1 a page that has encryption for url variables no
    longer functions correctly. With a cflocation redirection we are getting the
    following error:

    Failed to perform redirection.
    ColdFusion was unable to perform the CFLOCATION operation. Location URL cannot
    contain (carriage return) CR or (line feed) LF characters


    Any ideas out there?

    KRIKAT Guest

  7. #6

    Default Re: CFLOCATION Error

    I'm interested to see the encrypted form of the URL... the error message says it all, no CR or LF, which you could likely replace, though I don't know the affect on your URL yet until I see it.


    moneybagsxp Guest

  8. #7

    Default Re: CFLOCATION Error

    Here's the URL that gets posted:


    [url]http://localhost/se/tsslp_eventupdate.cfm?eventid=%24%221%5B%21%2AP%20 %20%0A&use[/url]
    rname=Kowalyk%2C%20Terry&userid=%26%3E%21S%28%29ZL %2A%0A&fromdate=06/19/2005&tod
    ate=06/22/2005&actmethod=0&eventrole=0&byempid=&byemployee=



    KRIKAT Guest

  9. #8

    Default Re: CFLOCATION Error

    Decoded your URL would be:

    http://localhost/se/tsslp_eventupdate.cfm?eventid=$"1[!*P &username=Kowalyk,
    Terry&userid=&>!S()ZL*&fromdate=06/19/2005&todate=06/22/2005&actmethod=0&eventro
    le=0&byempid=&byemployee

    Note that a line break (which is a carriage return plus a line feed) is
    encoded as %0D%0A
    However, I am only seeing Line Feeds (%0A) in the eventid and userid
    parameters.

    Unique choice of encrypted eventid/userid :) If they are not dependent on the
    "%0A", I would issue a Replace() on the URL passed to cflocation.

    Possibly try something like the following:

    <cflocation url="#Replace( url_to_replace, '%0A', '', 'ALL' )#" addtoken="no">

    moneybagsxp Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139