Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-124

Cannot operate on keys with spaces in them

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 1.1-beta
    • None
    • Core
    • Security Level: Public
    • None

    Description

      The other clients allows keys with spaces in them, such as "test key", but there is no way to operate on these using the Java client.

      myclient.set("test key", 0, "test value");

      java.lang.IllegalArgumentException: Key contains invalid characters: ``test key''
      at net.spy.memcached.util.StringUtils.validateKey(StringUtils.java:79)
      at net.spy.memcached.MemcachedConnection.enqueueOperation(MemcachedConnection.java:639)
      at net.spy.memcached.MemcachedClient.asyncStore(MemcachedClient.java:300)
      at net.spy.memcached.MemcachedClient.set(MemcachedClient.java:733)

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            aaron Aaron Miller (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty