Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

bucket.get(None).exists() always returns True #124

Description

@shuhaowu

Here's the source code to reproduce:

import riak

c = riak.RiakClient()
b = c.bucket("some_bucket_thats_never_used")
print b.get(None).exists()
b.get(None).delete()

Here's the output:

True
Traceback (most recent call last):
  File "test.py", line 6, in <module>
    b.get(None).delete()
  File "/usr/local/lib/python2.7/dist-packages/riak-1.4.0-py2.7.egg/riak/riak_object.py", line 482, in delete
    Result = t.delete(self, rw=rw, r=r, w=w, dw=dw, pr=pr, pw=pw)
  File "/usr/local/lib/python2.7/dist-packages/riak-1.4.0-py2.7.egg/riak/transports/http.py", line 165, in delete
    self.check_http_code(response, [204, 404])
  File "/usr/local/lib/python2.7/dist-packages/riak-1.4.0-py2.7.egg/riak/transports/http.py", line 253, in check_http_code
    raise Exception(m)
Exception: Expected status [204, 404], received 405 : 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions