Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Security Level: Public
-
None
Description
In 2.0DP4, create a design doc that uses a built-in reduce function, BUT append an extra space (" ") suffix to the built-in reduction function name. That is, use "_count " instead of "_count".
Use the cbbackup tool to take a backup, like...
cbbackup http://USER:PSWD@HOST:8091 /backup
Then, try to restore to 2.0.0c-709 or 2.0.0-latest (I tried 2.0.0-1592).
The restore fails, and cbbrowse_logs shows...
[ns_server:debug,2012-08-29T18:13:25.189,ns_1@127.0.0.1:'capi_ddoc_replication_srv-bucketc':cb_generic_replication_srv:handle_call:97]Document validation failed:
{invalid_design_doc, <<"Invalid built-in reduce function for view `getNumOfEndpointConfigurations_View': _count ">>}
When the user instead uses "_count" instead of "_count ", the restore succeeds.
See also: CBSE-219