#12 ✓wontfix
Seth Ladd

POSTing to /_uuids fails

Reported by Seth Ladd | October 23rd, 2008 @ 04:52 PM

Just installed the couchrest gem and running it against couchdb, compiled from the 0.8.1 source.

Every time I try to save a document without an ID, it attempts to to POST to /_uuids This returns a 404

I can't find reference to this _uuids resource in the CouchDB wiki.

Thanks for your help, Seth

Comments and changes to this ticket

  • Seth Ladd

    Seth Ladd October 23rd, 2008 @ 04:55 PM

    Found this, which indicates that _uuids is a feature not yet released in the source tarballs.


  • Seth Ladd
  • Seth Ladd

    Seth Ladd October 23rd, 2008 @ 04:58 PM

    suggest that the call to save include an option to ask the server for the next UUID. Something like

    db.save(doc, fetch_uuid => true)

    Because couchdb lets you insert a document without an ID, and will assign one, you aren't required to provide an ID.

    I understand the replay concerns of proxies with POST requests... but for testing I don't care and would leave fetch_uuid => false.

  • J. Chris A.

    J. Chris A. October 24th, 2008 @ 12:07 PM

    • State changed from “new” to “wontfix”

    The code already protects against the error responses from CouchDB on the UUIDs request, and leaves out the _id in that case, for CouchDB to fill in.

    The UUIDs are cached locally in batches of 1000, so unless you are creating a new CouchRest::Server for each test case, this should not have a detrimental effect on performance.

  • Seth Ladd

    Seth Ladd October 29th, 2008 @ 01:11 AM

    Understood, thanks for the reply.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

"CouchDB, close to the metal." <a href="http://github.com/jchris/couchrest/tree/master">CouchRest</a> is a RESTful layer for accessing CouchDB, based off CouchDB's included Javascript reference client. CouchRest also includes helpers for running large queries etc. There is also a base class for ActiveRecord / Datamapper style ORM, called CouchRest::Model.

People watching this ticket