I really don't know how but one of my developers succeeded, by using Photon, in creating a design document with an empty ID.
Needless to say this broke almost everything like any Post to this database with: [error] 2020-06-15T12:35:00.511174Z [email protected] <0.24049.1262> -------- could not load validation funs {{nocatch,{illegal_docid,<<"Illegal document id `_design/`">>}},[{couch_doc,validate_docid,1,[{file,"src/couch_doc.erl"},{line,213}]},{couch_doc,transfer_fields,3,[{file,"src/couch_doc.erl"},{line,252}]},{couch_doc,get_validate_doc_fun,1,[{file,"src/couch_doc.erl"},{line,399}]},{ddoc_cache_entry_validation_funs,'-recover/1-fun-0-',1,[{file,"src/ddoc_cache_entry_validation_funs.erl"},{line,35}]},{lists,flatmap,2,[{file,"lists.erl"},{line,1250}]},{ddoc_cache_entry_validation_funs,recover,1,[{file,"src/ddoc_cache_entry_validation_funs.erl"},{line,34}]},{ddoc_cache_entry,do_open,1,[{file,"src/ddoc_cache_entry.erl"},{line,297}]}]} I can't edit the document, I can't delete the document because the server says that _design/ is an illegal id name. I strongly agree with him :-) Luckily this is a Development Database so I guess I'll drop the whole thing and start from scratch, but maybe there's a bug in the validation code for new design documents? I tried to reproduce the thing but I wasn't able to do it... -- Andrea Brancatelli Schema31 S.p.a.
