Closed GoogleCodeExporter closed 8 years ago
It's really programmer error to call delete with {'_id': None, '_rev': None}
but
there's no way we should be deleting the database because of it!
However, for whoever gets to fix this, I think the real issue is that the
http.urljoin
function is masking errors like this by skipping None path segments,
http://code.google.com/p/couchdb-python/source/browse/couchdb/http.py#470.
Remove the
if filter from the list comp and fix calls to urljoin and the application
should get
an exception, allowing the developer to debug.
Original comment by matt.goo...@gmail.com
on 9 Apr 2010 at 11:01
Matt, I don't think the change you're proposing is possible, unless we pick some
other sentinel (than None) in some of our URL functions. Which I'm not sure is
better.
That said, I did implement r3001f35342ed, which goes in the direction you
proposed. I
ended up fixing up the actual issue with the cruder r25d42ec60d79.
Original comment by djc.ochtman
on 10 Apr 2010 at 4:07
That fix is good enough.
One other thing if you try to load document with '_id' = None you will get db
info. Instead of exception.
Original comment by Engr...@gmail.com
on 12 Apr 2010 at 6:59
Original issue reported on code.google.com by
Engr...@gmail.com
on 8 Apr 2010 at 11:55