zhhealthcare/openemr — comment on commit a045f9e52a461b95f7579a0dfdf5a7225c666030
File:  line 0
By bradymiller:

Testing issues:
1. I was able to install CouchDB rather easily on ubuntu (and look at it via the ip_address:5984/_utils/ screen)
2. After saving the globals, it did create the database and view successully
3. When try to upload a document, it does not work. The log can not be created guessing some permission or trying to make a directory without creating the sub-directories. If I manually create the directories the log does work and simply states it was not successful.
4. It then copies it to the hard drive, but unable to see the docs, because the 'url' setting in the entry is not compliant (since you just use filename when using a couchdb only, rather than when harddisk is an option also). I actually think that invisibly copying the file to the hardrive as a "backup" method when only CouchDB is requested is a big flaw here. If the user wants only CouchDB and it does not work, then a error needs to be thrown that it is not working and the document should not be saved. The same strategy should be taken for if saving to CouchDB and the hard drive (if either one of these mechanisms fails, then an error should be thrown and the document should not be saved anywhere; otherwise the files will not bee the same). One could actually pose the question as to whether it makes sense to offer saving to both mechanisms because of this potential issue, so, I'd suggest either just save it to the hard drive or to CouchDB to avoid many confusing issues.