Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-13109

Log filter does not support certain characters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API, Log
    • Labels:
      None
    • Rank:
      1|i00au7:

      Description

      The logs endpoint supports a filter query param, but the filter does not support any values with whitespace. For example,

      'filter=MDC:experiment=Sales Experiment'

      will fail because it assumes whitespace is used to separate operands. It expects an 'AND' or 'OR' after the space, and throws a confusing error message like:

      'No enum constant co.cask.cdap.logging.filter.FilterParser.Operator.Experiment'

        Attachments

          Activity

            People

            • Assignee:
              mao Chengfeng Mao
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: