New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 852026 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jul 3
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-06-28
OS: Linux
Pri: 2
Type: Compat



Sign in to add a comment

When showing a debug query in a table cell, a comma at end of screen disappears.. (yes, that)

Reported by so.ooste...@gmail.com, Jun 12 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

Example URL:

Steps to reproduce the problem:
Open the following HTML in a chrome browser tab (incognito or not doesn't matter)

To clarify, this is not an SQL issue. It is just that with this debug output, the error seems to show up. I've removed all surrounding code and was left with only the following HTML that still reproduces the error.

The error occured on my screen @1920x1080 resolution. On a windows laptop with similar resolution, I had to <CTRL><-> lower the zoom factor from 100 to 67 to reproduce the same problem. As soon as `user_email` comes in the right top part of the screen, the bug shows

<style type="text/css">
                    table.debug{
                        font-family: sans-serif;
                        width:99%;
                        background:#AAAAAA;
                        border-collapse:collapse;
                        border-spacing:2px;
                        margin: 5px auto 5px auto;
                    }

                    table.debug thead{
                        background: #00A0CF;
                    }

                    table.debug td{
                        border: 1px solid black;
                        padding: 10px;
                    }
                    table.debug td.value{
                        word-break: break-all;
                    }
                   </style><table class="debug">
                        <thead class="debug-header"><td colspan="4">/var/www/html/ivette-arellano/notary-scanner/web/www/en/libs/sql.php@211</td></thead>
                        <thead class="debug-columns"><td>Key</td><td>Type</td><td>Size</td><td>Value</td></thead><tr>
                        <td>Unknown</td>
                        <td>string</td>
                        <td>1076</td>
                        <td class="value"> SELECT    `categories`.`id`,
                                       `categories`.`meta_id`,
                                       `categories`.`name`,
                                       `categories`.`seoname`,
                                       `categories`.`status`,
                                       `categories`.`createdon`,
                                       `categories`.`description`,

                                       `users`.`name`     AS `user_name`,
                                       `users`.`email`    AS `user_email`,
                                       `users`.`username` AS `user_username`,

                                       `parents`.`name`   AS `parent`

                             FROM      `categories`

                             LEFT JOIN `categories` AS `parents`
                             ON        `parents`.`id` = `categories`.`parents_id`

                             LEFT JOIN `users`
                             ON        `users`.`id` = `categories`.`createdby` WHERE `categories`.`seoname` = &quot;test&quot; ;</td>
                    </tr>
                    </table>

What is the expected behavior?
Should show a gray table with a blue header and black borders on a white background. In there, it should show the query:

SELECT `categories`.`id`, `categories`.`meta_id`, `categories`.`name`, `categories`.`seoname`, `categories`.`status`, `categories`.`createdon`, `categories`.`description`, `users`.`name` AS `user_name`, `users`.`email` AS `user_email`, `users`.`username` AS `user_username`, `parents`.`name` AS `parent` FROM `categories` LEFT JOIN `categories` AS `parents` ON `parents`.`id` = `categories`.`parents_id` LEFT JOIN `users` ON `users`.`id` = `categories`.`createdby` WHERE `categories`.`seoname` = "test" ;

What went wrong?
It shows the following query instead (Note the missing comma at the part "AS `user_email` `users`.`username`"

NOTE: The bug only shows when `user_email` is in the right top part of the screen, you may need to adjust screen zoom factor up or down for this to happen. When it does, though, it should show `user_email`, but shows `user_email`

SELECT `categories`.`id`, `categories`.`meta_id`, `categories`.`name`, `categories`.`seoname`, `categories`.`status`, `categories`.`createdon`, `categories`.`description`, `users`.`name` AS `user_name`, `users`.`email` AS `user_email` `users`.`username` AS `user_username`, `parents`.`name` AS `parent` FROM `categories` LEFT JOIN `categories` AS `parents` ON `parents`.`id` = `categories`.`parents_id` LEFT JOIN `users` ON `users`.`id` = `categories`.`createdby` WHERE `categories`.`seoname` = "test" ;

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 66.0.3359.181  Channel: n/a
OS Version: comma
Flash Version:
 
chrome_fail.png
73.4 KB View Download
Also note: I noticed the bug when I copied the query from screen and pasted it in a mysql console, the comma was missing. When opening the development console, you can see that the missing is still there but its physically missing on screen
chrome_fail2.png
97.4 KB View Download
Labels: Needs-Milestone
Cc: sindhu.chelamcherla@chromium.org
Labels: Needs-Feedback Triaged-ET
@Reporter: Could you please provide sample file containing above code in comment#0. This would help in further triaging of the issue.

Thanks!
Cc: phanindra.mandapaka@chromium.org
Tested this on reported chrome version on 66.0.3359.181 and chrome stable 67.0.3396.79 & 67.0.3396.87 using ubuntu 17.10. Attaching Screeshot for reference.

Steps 
--------
1. Launched chrome
2. Created .html file by using comment #0.
3. Opened the HTML file in a chrome browser tab
We have observed the comma in "AS `user_email`, `users`.`username`".

@Reporter: As we are unable to reproduce the issue from our end. Could you please review the attached screenshot and upgrade to latest verision on M67 stable and check the issue.The latest chrome builds can be downloaded from the below URL:
https://www.chromium.org/getting-involved/dev-channel

Thanks! 
Screenshot from 2018-06-14 04-11-21.png
268 KB View Download
Components: Blink>HTML>Table

Comment 6 by tkent@chromium.org, Jun 20 2018

NextAction: 2018-06-28
The NextAction date has arrived: 2018-06-28
Status: Archived (was: Unconfirmed)
Feedback timeout

Sign in to add a comment