[PYCBC-15] client can't set() integer values Created: 06/Sep/11  Updated: 24/Jul/12  Resolved: 24/Jul/12

Status: Resolved
Project: Couchbase Python Client Library
Component/s: library
Affects Version/s: 0.5
Fix Version/s: 0.7
Security Level: Public

Type: Bug Priority: Trivial
Reporter: Oli Kingshott Assignee: Benjamin Young
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: any

Attachments: Text File added-deliberately-failing-test-for-PYCBC-15.patch     File integer.py    

Attempting to set an integer value with the python client will produce:

TypeError: object of type 'int' has no len()

We should be getting the object length from the string (unicode?) representation of the object passed into set().

Comment by Benjamin Young [ 06/Apr/12 ]
Failing test submitted to Gerrit: http://review.couchbase.org/#change,14631
Comment by Benjamin Young [ 06/Apr/12 ]
Someone with a deeper understanding of the Memcached protocol should handle this one. Thanks.
Comment by Benjamin Young [ 09/Apr/12 ]
Formalized simpletest.py addition as a patch for this case.
Comment by Benjamin Young [ 01/Jun/12 ]
Failing test case also added here:
Comment by Benjamin Young [ 24/Jul/12 ]
Generated at Fri Oct 31 14:24:49 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.