summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remsh: attempt to auto-locate Erlang cookieremshWill Holley2019-12-161-1/+11
| | | | | | Attempts to find the Erlang cookie from ERL_FLAGS or the standard vm.args location. If not present, fall back to the default (monster).
* Sanitize `ERL_FLAGS` in remshWill Holley2019-12-161-1/+5
| | | | | | | | | | | | | | | | If an environment uses `ERL_FLAGS` to configure CouchDB it can conflict with the parameters passed to `erl` in `remsh`. This was observed in a containerized CouchDB cluster, as the CouchDB Dockerfile uses `ERL_FLAGS` to set the node name and cookie, as does the Helm chart. When running `remsh` in these containers, additional `-name` and `-setcookie` parameters were silently added to the `erl` invocation, preventing the shell from connecting to the CouchDB node. This commit scrubs any `-name` or `-setcookie` flags from ERL_FLAGS before invoking erl.
* Merge pull request #2361 from cloudant/smoosh-utc-fixJay Doane2019-12-132-3/+1
|\ | | | | Make smoosh use UTC for scheduling window
| * Suppress exunit compiler warningJay Doane2019-12-131-2/+0
| | | | | | | | | | | | | | This patch suppresses this warning when `make exunit` is run: warning: unused alias Setup src/smoosh/test/exunit/scheduling_window_test.exs:4
| * Switch to UTCJay Doane2019-12-131-1/+1
|/ | | | The tests assume UTC, and often fail when run in non-GMT time zones.
* Merge pull request #2356 from apache/5986-tests-onlyRobert Newson2019-12-133-1/+5
|\ | | | | Enable port 5986 for test suites only
| * Enable port 5986 for test suites only5986-tests-onlyRobert Newson2019-12-123-1/+5
|/
* Merge pull request #2353 from cloudant/exunit-coveriilyak2019-12-126-4/+109
|\ | | | | Exunit cover
| * Integrate excoverals into test stackILYA Khlopotov2019-12-126-3/+107
| |
| * Make sure we fetch test dependenciesILYA Khlopotov2019-12-121-1/+2
|/
* Fix multidb changes testNick Vatamaniuc2019-12-111-2/+3
| | | | | | The test broke during the removal of view-based changes PR Issue: https://github.com/apache/couchdb/pull/2324
* Merge pull request #2351 from apache/2530-all-dbs-timeoutWill Holley2019-12-101-1/+1
|\ | | | | Fix timeout case clause in fabric_db_info
| * Fix timeout case clause in fabric_db_info2530-all-dbs-timeoutWill Holley2019-12-101-1/+1
|/ | | | | | | | | Unlike most other fabric_db_* message handlers, the accumulator for fabric_db_info has 3 terms. When a rexi timeout occurs, it returns `{timeout, Accumulator}`; the case clause handling this needs to expect 3 terms in the Accumulator instead of 2. Fixes #2350
* Merge pull request #2346 from willholley/couch_compress_testsWill Holley2019-12-102-85/+113
|\ | | | | Big-endian support for couch_compress tests
| * Big endian support for couch_compress testsWill Holley2019-12-091-15/+43
| | | | | | | | | | | | | | | | | | | | | | | | This refactors the couch_compress tests to allow them to run on platforms (e.g. s390x) where the compression output might be different to the fixed values defined in the tests. Namely: * Assert that compressed output is smaller than the input * Assert bigendian output is portable * Assert that compressed output can be recompressed Background and discussion of this is in https://issues.apache.org/jira/browse/COUCHDB-3261.
| * Port couch_compress_tests to ElixirWill Holley2019-12-092-85/+85
|/
* Remove invalid query server def in local.iniJoan Touzet2019-12-091-3/+0
|
* Add COUCHDB_FAUXTON_DOCROOT comment to couchdb.cmdJoan Touzet2019-12-091-0/+1
|
* Allow all params to be passed via body for POST _all_docsBessenyei Balázs Donát2019-12-097-4/+342
| | | | | | This change should allow users to supply all params in POST that can be supplied for GET now. This way we could avoid the ?key="foo" things that would probably cause a lot of pain for users. As /{db}/_design_docs and /{db}/_local_docs are analogous to _all_docs, this change applies to all three of them.
* Allow all params to be passed via body for POST viewBessenyei Balázs Donát2019-12-054-13/+164
| | | | | | This change should allow users to supply all params in POST that can be supplied for GET now. This way we could avoid the ?key="foo" things that would probably cause a lot of pain for users.
* Merge pull request #2324 from apache/2167-no-view-changesEric Avdey2019-12-0319-1490/+206
|\ | | | | Remove vestiges of view-based `_changes` feed from codebase
| * Modify all mrview records and add according migration functionality2167-no-view-changesEric Avdey2019-12-036-72/+71
| |
| * Remove all view_changes functionality from mrview utilsEric Avdey2019-12-031-238/+24
| |
| * Remove fast_view filter from fabricEric Avdey2019-12-031-3/+2
| |
| * Modify changes accumulator recordEric Avdey2019-12-031-7/+27
| |
| * Remove view_changes functionality from couch_changes sideEric Avdey2019-12-033-294/+26
| |
| * Remove view changes interface functions, tests and end-pointEric Avdey2019-12-037-596/+3
| |
| * Remove seq, kseq and log trees from updater, compactor and indexerEric Avdey2019-12-033-280/+53
|/
* Merge pull request #2336 from apache/1523-bye-bye-5986-rnewson-4Robert Newson2019-12-0211-265/+356
|\ | | | | 1523 bye bye 5986
| * install requests module within venv1523-bye-bye-5986-rnewson-4Robert Newson2019-12-021-0/+1
| |
| * fix (unrelated, right, am I crazy?) proxyauth.js testRobert Newson2019-12-021-1/+1
| |
| * enable port 5986 in local.ini for the test suitesRobert Newson2019-12-021-0/+1
| |
| * disable port 5986 by defaultRobert Newson2019-12-022-4/+11
| |
| * proxy the response from the other nodeRobert Newson2019-12-023-7/+58
| |
| * Mangle request before calling handle_requestJoan Touzet2019-12-021-2/+13
| |
| * allow calls to get_httpd_handlers from other applicationsRobert Newson2019-12-021-3/+3
| |
| * add handle_request/1Joan Touzet2019-12-021-0/+4
| |
| * extract get_httpd_handlers functionJoan Touzet2019-12-021-28/+30
| |
| * Move get_stats/0Joan Touzet2019-12-022-90/+90
| |
| * Remove global _system handlerJoan Touzet2019-12-022-10/+1
| |
| * Move _node handler to new moduleJoan Touzet2019-12-024-129/+152
|/
* Merge pull request #2337 from apache/couch_hash_updateWill Holley2019-12-026-9/+9
|\ | | | | Update usage of couch_hash:md5_hash shim
| * Update usage of couch_hash:md5_hash shimcouch_hash_updateWill Holley2019-12-026-9/+9
|/ | | | | | | | | | | https://github.com/apache/couchdb/pull/1445 introduced a shim to enable CouchDB to be compiled to use the Erlang MD5 function. This allows CouchDB to run in FIPS environments where the crypto module is restricted such that `crypto:hash(md5,..)` is blocked (fails with `notsup` error). This commit replaces usage of `crypto:hash(md5, ..)` introduced since the original PR with the shim function.
* Return 400 error for missing partition keyGarren Smith2019-11-262-0/+12
| | | | | | Return a 400 for urls /partitiondb/_partition with no partition key Fixes #2332
* Merge pull request #2328 from apache/ken-in-treeAdam Kocoloski2019-11-2211-1/+887
|\
| * Remove ken as dependency and add as subdirAdam Kocoloski2019-11-221-1/+1
| |
| * Add 'src/ken/' from commit '506606ff2b29f72fcc9e875f1b9a33c258ad2af1'Adam Kocoloski2019-11-2210-0/+886
| |\ |/ / | | | | | | | | git-subtree-dir: src/ken git-subtree-mainline: 8d9f80de2cd6bc851e329091998e0c601889f6e2 git-subtree-split: 506606ff2b29f72fcc9e875f1b9a33c258ad2af1
| * Merge pull request #8 from apache/ken-dreyfus-hastingsRobert Newson2019-10-211-2/+2
| |\ | | | | | | Detect dreyfus/hastings correctly
| | * Detect dreyfus/hastings correctlyRobert Newson2019-10-211-2/+2
| |/ | | | | | | | | The code:lib_dir test only works if those projects are compiled first, which is not guaranteed.
| * Merge pull request #7 from apache/ken-query-servers-2Robert Newson2019-10-181-1/+2
| |\ | | | | | | Always include 'query' as an allowed language