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

CDAP CLI does not support space-separated search queries

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|i00q3z:

      Description

      When constructing a search query bounded by double quotes through the CDAP CLI, entering spaces—i.e. the ones separating these words—does not separate individual search terms.

      In the following example, I have two datasets: source and sink, and I would like to return either one of them.

       

      cdap> search metadata "source sink"

      returns

      Error: Illegal character in query at index 51: /v3/namespaces/default/metadata/search?query=source sink&offset=0&limit=2147483647&numCursors=0

      On the other hand,

      cdap> search metadata "source%20sink"

      returns

      +========================+
      | Entity                 |
      +========================+
      | dataset:default.sink   |
      | dataset:default.source |
      +========================+

      This suggests that the input query is not being URL-encoded properly, but this encourages more investigation.

        Attachments

          Activity

            People

            • Assignee:
              mathisjv Jordan Mathis
              Reporter:
              mathisjv Jordan Mathis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: