cfgrid and semicolon bug

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default cfgrid and semicolon bug

    This problem was posted way back in 2005 but I have not seen a solution to it.
    When querying from a database a record that contains a semicolon and displaying
    it on a cfgrid if you select that row and try to submit or do anything with it
    you will get an error (....submitted cfgrid form field is corrupt ....). Here
    is an example of the code used to prove the bug.

    <CFSET myQuery = QueryNew("ticket_id,description")>
    <CFSET temp = QueryAddRow(myQuery)>
    <CFSET QuerySetCell(myQuery,"ticket_id","1")>
    <CFSET QuerySetCell(myQuery,"description","a;")>
    <CFSET temp = QueryAddRow(myQuery)>
    <CFSET QuerySetCell(myQuery,"ticket_id","2")>
    <CFSET QuerySetCell(myQuery,"description","a;b")>
    <CFFORM NAME="test" ACTION="#cgi.SCRIPT_NAME#">
    <CFGRID NAME="testGrid" QUERY="myQuery" SELECTMODE="ROW" FORMAT="FLASH">
    </CFGRID>
    <CFINPUT TYPE="submit" NAME="submit">
    </CFFORM>

    I've tried different things and different platforms and different versions of
    JRE all give me the same result.

    Has this problem been solved yet?

    VirtualED Guest

  2. Similar Questions and Discussions

    1. Missing semicolon problem
      I am getting the error of Missing semicolon at end of SQL statement on the LAST insert of the following code, but I don't know why. <cfquery...
    2. semicolon requested
      Can someone help me on this. I'm trying to insert data into 2 tables using cf defined statements from the insert form wizard. When I run the code in...
    3. What does a semicolon do at the beginning of a line?
      Was browsing the documentation on reading a configuration file and found this. What does a semicolon do at the beginning of a line? ; <?php DO...
    4. behavior of semicolon on return line
      Does the semicolon behave any differently for a return test statement? Example, sub validate { return shift =~ /^*\.+$/ } or sub validate
    5. how to output semicolon with php
      hi! thanx for reading! my problem: I want to print : 7] Xerox: print '<a href='. '"javascript:;"'. "onClick='hideAll(); showHideLayers...
  3. #2

    Default Re: cfgrid and semicolon bug

    Bug 60478 was opened for this problem. It is going to be fixed in the next release of ColdFusion. I can't give you the release date at this time.

    Ted Zimmerman
    tzimmerman Guest

  4. #3

    Default Re: cfgrid and semicolon bug

    I'm looking at ColdFusion MX 7.02 Cumulative Hot Fix 3 KB402465 and ID Number
    60478 is not listed as being fixed. There is also no mention of this bug in
    TechNote b9c2d61c which is an update of CFForm controls. When can we expect a
    fix and check on the status? I have over 100 pages using CFGrid, and 10-15
    pages that fail to work due to semicolons.

    Whatisvalid Guest

  5. #4

    Default Re: cfgrid and semicolon bug

    :disgust;

    I tried to open a presales tech support case for ColdFusion 8 to see if this
    issue was solved. Since I do not own 8 yet, I was told to go to this forum and
    wait for a response, or purchase ColdFusion 8 AND a $499 tech support case to
    have the issue answered. This isn't a very nice way to treat loyal customers!

    Whatisvalid Guest

  6. #5

    Default Re: cfgrid and semicolon bug

    Anyone find a solution for this? We're running CF 8 Enterprise and can't get CFGRID to render content from database fields where semicolons are present.
    morcutt Guest

  7. #6

    Default Re: cfgrid and semicolon bug

    The semi-colon handling by ColdFusion 8 onwards seems to be an attempt at preventing SQL-injection. The quality of execution of how that has been implemented seems to have created many bugs. Possibly including the one you mention regarding the CFGRID.

    ColdFusion 7 did not have this issue.
    cusman 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