Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

erlang validate_doc_update #121

Open
jfgirard opened this issue Jan 18, 2013 · 0 comments
Open

erlang validate_doc_update #121

jfgirard opened this issue Jan 18, 2013 · 0 comments

Comments

@jfgirard
Copy link

Hi,

I'm new to bigcouch. I decided to port my Couchdb 1.2 databases to BigCouch 0.4 (on Linux EC2). I made the required changes to comply with the BG API. I encounter a problem when I use attachments. I can upload a file (image1.jpg) with no issue but then I can't update the document having the attachment. I always get a HTTP 412 {"error":"missing_stub","reason":"Invalid attachment stub in 83327ed26d618a6981b81cc2b901f78b for image1.jpg"}. The image is OK, I can see it in Futon.

After a couple of hours of testing, I realized the issue is related to my design document written in erlang. If I remove the validate_doc_update function, it fixes the issue. But the way, the erlang views works fine. I wrote the validate_doc_update function in a different design doc written in javascript to workaround.

I hope it can help others if they get the same kind of issue until a patch is made.

Jeff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant