Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-818

_bulk_docs throws "Attachment name can't start with '_'" but document POST API does not

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.0
    • None
    • HTTP Interface
    • None
    • Mac OS X 10.6.3

    • New Contributors Level (Easy)

    Description

      When inserting documents via the _bulk_docs API, I get this error if I try to include an attachment that begins with an underscore:
      {
      error: "bad_request"
      reason: "Attachment name can't start with '_'"
      }

      However, if I submit a single doc with an attachment beginning with an underscore, no such error is generated.

      Not sure which one should "win," but thought they should be the same.

      Attachments

        1. 818testcase.diff
          2 kB
          Benjamin Young

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bigbluehat Benjamin Young
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: