Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-22935

[FTS] UI: copy-to-clipboard curl doesn't handle escaping single quotes correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • fts
    • Untriaged
    • Unknown

    Description

      This index definition from MB-22931 has stop words with contractions, like...

      I'm wasn't who's

      So, there's single quotes there. When converted to the copy-&-pasted curl cmd-line example, those single quote's aren't backslashed, so pasting that curl example into a shell prompt doesn't work correctly, where the first single quote inadvertently ends the JSON payload.

      Here's the problematic index definition...
      https://gist.github.com/mschoch/60068e94a712d348f8ac445fd71d3e90

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            steve Steve Yen
            steve Steve Yen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty