[ https://issues.apache.org/jira/browse/COUCHDB-902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978961#action_12978961 ]
Adam Kocoloski commented on COUCHDB-902: ---------------------------------------- Hi Paul, I don't think there's any real reason why the full history is present for attachments. But I think a sane API should allow me to do the following as many times as I want in a loop without generating a conflict (if I'm the only writer): {ok, Doc} = couch_db:open_doc(Db, Id, []), {ok, _NewRev} = couch_db:update_doc(Db, Doc#doc{body = {[<<"random">>, random:uniform()]}}, []) > Attachments that have recovered from conflict do not accept attachments. > ------------------------------------------------------------------------ > > Key: COUCHDB-902 > URL: https://issues.apache.org/jira/browse/COUCHDB-902 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Environment: trunk > Reporter: Paul Joseph Davis > Priority: Critical > Attachments: 0001-Fix-COUCHDB-902.patch, couchdb-902-test-case.py > > > Apparently if a document has been in a conflict, they will reject requests to > add an attachment with a conflict error. > I've tracked this down to couch_db_updater.erl line 501, but I'm not too > familiar with this part of the code so I figured I'd fill out a ticket in > case anyone else can go through this more quickly than me. > Sure would be nice if I could attach a file when I create an issue... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.