Closed Bug 1393838 Opened 7 years ago Closed 7 years ago

Redash is not escaping HTML-like strings in query results

Categories

(Data Platform and Tools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: katejimmelon, Unassigned)

References

Details

(Whiteboard: [measurement:client:tracking])

Attachments

(1 obsolete file)

https://sql.telemetry.mozilla.org/queries/24136/source
This link shows lots of payload/pingDiscardedForSize failures contains empty string instead of ping type.

The second problem here, that tmo didn't show this empty strings.
Turns out that keeping "<unknown>" value as a key in map was not the best idea.
We have values like "<unknown>" in the health ping for `pingDiscardedForSize`, which is stored as a map.
See bug 1390104 c0 for the schema.

We suspect that either d2p, parquet or presto can't handle this, resulting in a key of "" in queries.
Do you know which?
How & where can we best handle this?
Flags: needinfo?(mtrinkala)
Component: Telemetry → General
Product: Toolkit → Data Platform and Tools
Priority: P1 → --
Whiteboard: [measurement:client:tracking]
Attached patch unknown.patch (obsolete) — Splinter Review
Attachment #8901263 - Flags: review?(gfritzsche)
Comment on attachment 8901263 [details] [diff] [review]
unknown.patch

Review of attachment 8901263 [details] [diff] [review]:
-----------------------------------------------------------------

Cancelling the review until we know what the proper approach is in the pipeline.
Attachment #8901263 - Flags: review?(gfritzsche)
A key of '<unknown>' is fine in the ingestion pipeline and parquet output.
Flags: needinfo?(mtrinkala)
Mark, do you have any ideas on the point of failure here (per comment 2 and comment 5)?
Flags: needinfo?(mreid)
This looks like a re:dash issue where it's trying to render the string "<unknown>" as an HTML tag... if you download the csv you see items like:

id,oversize
some-uuid1,{u'<unknown>': 1}
some-uuid2,{u'<unknown>': 1}
some-uuid3,{u'main': 1}
some-uuid4,{u'<unknown>': 1}
Flags: needinfo?(mreid)
Assignee: kustiuzhanina → nobody
Component: General → Redash (STMO)
Summary: Investigate weird data occurrencies on re:dash for Health ping → Redash is not escaping HTML-like strings in query results
Attachment #8901263 - Attachment is obsolete: true
This issue should now be resolved: https://github.com/mozilla/redash/issues/222
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Component: Redash (STMO) → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: