Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-2462

[beeswax] Escape HTML when printing field schema

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.8.0
    • Component/s: con.hive
    • Labels:
      None
    • Target Version:
    • Easy:
      Easy

      Description

      This is simple to fix if you know python and mako framework.

      If you create table with inner struct:

      create table debug.escapeerror(
      a struct<b:struct<c:float>>
      );

      Type of field A will printed "a(struct>)" bu should be "a(struct)"

      https://github.com/cloudera/hue/blob/master/apps/beeswax/src/beeswax/templates/execute.mako

      _column.html("<a href='javascript:void(0)' style='padding-left:10px'" + (col.comment != null && col.comment != "" ? " title='" + col.comment + "'" : "") + "><i class='fa fa-columns'></i> " + col.name + ($.trim(col.type) != "" ? " (" + $.trim(col.type) + ")" : "") + "</a>");

        Attachments

          Activity

            People

            • Assignee:
              paul.mccaughtry Paul McCaughtry
              Reporter:
              lukasnalezenec Lukas Nalezenec
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: