Description
I configured .cbcrc but then had a problem with the password. I removed the password configuration and it complained when trying to copy in a file, but then it went ahead and wrote to the default bucket!
Expected behavior: bail out if you have the config username but not the config password. There is a low risk this could cause inadvertent data corruption, thus the blocker.
[ingenthr@reporting ~/s3logs]$ cbc cp packages.couchbase.com-access-log-2014-10-06-00-22-37-50FD194677E5D44C
Warning: File /home/ingenthr/.cbcrc present but has problems (Configuration file must be formatted as key-value pairs)
packages.couchbase.com-access-log-2014-10-06-00-22-37-50FD194677E5D44CStored. CAS=0xcaec619ead470000
After removing the offending password line, it still writes to the default bucket!
[ingenthr@reporting ~/s3logs]$ cat ~/.cbcrc
- Generated by cbc at Sun Nov 16 19:42:00 2014
connstr=http://localhost/default?
user=s3logs
[ingenthr@reporting ~/s3logs]$ cbc cp packages.couchbase.com-access-log-2014-10-
06-00-22-37-50FD194677E5D44C
packages.couchbase.com-access-log-2014-10-06-00-22-37-50FD194677E5D44CStored. CAS=0xccde8ea08480000
[ingenthr@reporting ~/s3logs]$ # This wrote to the default bucket!!!