Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not displaying debugging info on Railo #2

Open
mschierberl opened this issue Jan 24, 2012 · 6 comments
Open

Not displaying debugging info on Railo #2

mschierberl opened this issue Jan 24, 2012 · 6 comments
Assignees

Comments

@mschierberl
Copy link

I'm having an issue with Railo 3.3.1, FF 9.01, and coldfire 1.9

I'm seeing correct debugging info coming from an ACF 9 server, so I know my setup is OK.

My debug template is running properly, coldfire headers are set and returned, but when I look at the ColdFusion tab in firebug I can only see information in the "General" tab. All the others are blank.

I've been comparing headers returned from CF vs. those from Railo, and they are almost identical, the only major difference is the order that query columns appear in the data struct.

Got any ideas on where I should look next? I'm a bit stumped at this point.

@nmische
Copy link
Owner

nmische commented Jan 24, 2012

I'm not sure what the issue is either. I need to install Railo and do some testing.

@ghost ghost assigned nmische Jan 24, 2012
@mschierberl
Copy link
Author

Would it help if I setup a test environment for you to check out? It would
be easy to do.

On Tue, Jan 24, 2012 at 6:22 AM, Nathan Mische <
[email protected]

wrote:

I'm not sure what the issue is either. I need to install Railo and do some
testing.


Reply to this email directly or view it on GitHub:
#2 (comment)

@nmische
Copy link
Owner

nmische commented Jan 24, 2012

No. I'm going to set up Railo on a Vagrant box for testing, but thanks for the offer.

@nmische
Copy link
Owner

nmische commented Sep 16, 2012

This took me much longer to investigate than i hoped, but I'm unable to reproduce on Railo 3.3.4.003. Is this still an issue?

@peterpham
Copy link

I am running on Railo 3.3.4.003
Using ColdFire on Firefox 19.0 and seeing issue exists.
Going through the code, I saw the encoded debugging queries are causing this issue. If there is a backslash () in the encoded SQL, it will fail.

For example:
SELECT * FROM request.messages WHERE type = 'notice' ==> fail (nothing will show in ColdFire)

but this one:
SELECT * FROM request.messages WHERE type = 'notice' ==> work

Test case 1: with backslash

<cfsavecontent variable="a">
{
    "RECORDCOUNT": 0,
    "COLUMNLIST": "DATASOURCE,QUERYNAME,ET,SQL,PARAMETERS,RESULTSETS,RECORDSRETURNED,TYPE,CACHEDQUERY,TEMPLATE,TIMESTAMP",
    "DATA": {
        "DATASOURCE": [""],
        "QUERYNAME": ["qNotice"],
        "ET": [0],
        "SQL": [" SELECT * FROM request.messages WHERE type = \'notice\' "],
        "PARAMETERS": [ [] ],
        "RESULTSETS": [ "" ],
        "RECORDSRETURNED": [0],
        "TYPE": ["SqlQuery"],
        "CACHEDQUERY": [""],
        "TEMPLATE": ["test.cfc"],
        "TIMESTAMP": [""]
    }
}
</cfsavecontent>
<cfheader name="x-coldfire-queries-1" value="#a#">

Test case 2: without backslash

<cfsavecontent variable="a">
{
    "RECORDCOUNT": 0,
    "COLUMNLIST": "DATASOURCE,QUERYNAME,ET,SQL,PARAMETERS,RESULTSETS,RECORDSRETURNED,TYPE,CACHEDQUERY,TEMPLATE,TIMESTAMP",
    "DATA": {
        "DATASOURCE": [""],
        "QUERYNAME": ["qNotice"],
        "ET": [0],
        "SQL": [" SELECT * FROM request.messages WHERE type = 'notice' "],
        "PARAMETERS": [ [] ],
        "RESULTSETS": [ "" ],
        "RECORDSRETURNED": [0],
        "TYPE": ["SqlQuery"],
        "CACHEDQUERY": [""],
        "TEMPLATE": ["test.cfc"],
        "TIMESTAMP": [""]
    }
}
</cfsavecontent>
<cfheader name="x-coldfire-queries-1" value="#a#">

@nmische
Copy link
Owner

nmische commented Mar 6, 2013

Thanks @peterpham . It looks like i need to incorporate this change into the Railo debugging template: 7937554#L0L1075.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants