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

[XDCR] Adv filtering "<" operator causes error incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.5.0
    • 6.5.0
    • XDCR
    • Centos7, build 6.5.0-2972
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      Updating replication with filter expression int<5 or url encoded int%3C5 fails

      curl -X POST -u Administrator:password  http://127.0.0.1:8091/settings/replications/2131278c83c4ecaa8e1661cae2b41d1b%2Fcb461%2Fcb79 -d filterExpression="int%3C5" -d filterSkipRestream=True
      {"filterExpression":"Filter specified using key-only regex is deprecated"}
      

      int>5 or int%3E5 passes

      curl -X POST -u Administrator:password  http://127.0.0.1:8091/settings/replications/2131278c83c4ecaa8e1661cae2b41d1b%2Fcb461%2Fcb79 -d filterExpression="int%3E5" -d filterSkipRestream=True
      {"":0,"checkpointInterval":600,"compressionType":"Auto","desiredLatency":1000,"docBatchSizeKb":2048,"failureRestartInterval":10,"filterBypassExpiry":false,"filterDeletion":false,"filterExpiration":false,"filterExpression":"REGEXP_CONTAINS(`[$%XDCRInternalKey*%$]`, \"int\u003e5\")","filterSkipRestream":true,"filterVersion":0,"logLevel":"Info","networkUsageLimit":0,"optimisticReplicationThreshold":256,"pauseRequested":false,"priority":"High","sourceNozzlePerNode":2,"statsInterval":1000,"targetNozzlePerNode":2,"type":"xmem","workerBatchSize":500}
      

      Attachments

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

        Activity

          People

            pavithra.mahamani Pavithra Mahamani (Inactive)
            pavithra.mahamani Pavithra Mahamani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty