Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Java SDK throws exception when sending query using key containing whitespace

1 reply [Last post]
  • Login or register to post comments
Thu, 10/04/2012 - 17:09
adavidson
Offline
Joined: 09/11/2012
Groups: None

Using 2.0b and the Java API 1.1 preview, there appears to be a bug when doing a query with a key that has internal whitespace:

INFO CouchbaseClient - lookin for:/default/_design/accounts/_view/acc_by_username?limit=1000&skip=0&key="aaron davidson"
ERROR java.lang.RuntimeException: Failed to access the view
at com.couchbase.client.CouchbaseClient.query(CouchbaseClient.java:591)
...

If I manually replace the query string "aaron davidson" with "aaron%20davidson" the query works and no exception is thrown. The API should probably handle this case when constructing the RESTful URL.

Top
  • Login or register to post comments
Fri, 10/05/2012 - 06:05
daschl
Offline
Joined: 05/19/2012
Groups: None

Hi Aaron,

thanks for raising this - it may be an issue in the SDK. I openend an Issue for you and will track it down further: http://www.couchbase.com/issues/browse/JCBC-126

Thanks,
Michael

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker