summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fix: send CSP header to make Fauxotn work fullyfix/cspJan Lehnardt2020-06-183-2/+91
| | | | Co-authored-by: Robert Newson <rnewson@apache.org>
* Make restricted partition search parameters return bad requestBessenyei Balázs Donát2020-06-182-8/+50
| | | | | | | | | | | According to https://docs.couchdb.org/en/master/ddocs/search.html there are parameters for searches that are not allowed for partitioned queries. Those restrictions were not enforced, thus making the software and docs inconsistent. This commit adds them to validation so that the behavior matches the one described in the docs.
* In replicator, when rescheduling, pick only pending jobs which are not runningNick Vatamaniuc2020-06-101-0/+16
| | | | | | | Previously, when pending jobs were picked in the `ets:foldl` traversal, both running and non-running jobs were considered and a large number of running jobs could displace pending jobs in the accumulator. In the worst case, no crashed jobs would be restarted during rescheduling.
* Merge pull request #2929 from apache/report-fips-featureRobert Newson2020-06-051-0/+10
|\ | | | | Report if FIPS mode is enabled
| * Report if FIPS mode is enabledreport-fips-featureRobert Newson2020-06-051-0/+10
|/ | | | | This will only report "fips" in the welcome message if FIPS mode was enabled at boot (i.e, in vm.args).
* feat(auth): Allow a custom JWT claim for rolesmauroporras2020-06-042-1/+2
|
* 2906 couchjs sm version (#2911)Simon Klassen2020-05-304-4/+4
| | | | | | | | | | Closes #2906 * Added a suffix to the first line of couchjs with the (static) version number compiled * Update rebar.config.script * In couchjs -h replaced the link to jira with a link to github Co-authored-by: simon.klassen <simon.klassen> Co-authored-by: Jan Lehnardt <jan@apache.org
* move compact and replicate functions into CouchTestCase shared moduleJuanjo Rodriguez2020-05-268-155/+56
|
* Port rev_stemming into elixirJuanjo Rodriguez2020-05-263-1/+195
|
* Merge pull request #2900 from apache/jwtf-erlang-19-2Robert Newson2020-05-211-1/+1
|\ | | | | make jwtf_keystore compatible with erlang 19 for real this time
| * make jwtf_keystore compatible with erlang 19 for real this timejwtf-erlang-19-2Robert Newson2020-05-211-1/+1
|/
* Merge pull request #2899 from apache/jwtf-erlang-19Robert Newson2020-05-211-1/+1
|\ | | | | make jwtf_keystore compatible with erlang 19
| * make jwtf_keystore compatible with erlang 19jwtf-erlang-19Robert Newson2020-05-211-1/+1
|/
* Merge pull request #2888 from apache/jwtf-iss-configurabilityRobert Newson2020-05-184-6/+96
|\ | | | | allow configurability of JWT claims that require a value
| * allow configurability of JWT claims that require a valueRobert Newson2020-05-184-6/+96
|/ | | | | | | e.g; [jwt] required_claims = {iss, "https://example.com/issuer"}
* Fix license fileJoan Touzet2020-05-171-1/+1
|
* Quit test run without checking that couchdb is runningarchive/protoypeprotoypeJuanjo Rodriguez2020-05-021-8/+15
|
* Port replicator db tests to elixirJuanjo Rodriguez2020-05-025-2/+206
|
* Fix python-black target for WindowsJoan Touzet2020-04-301-2/+2
|
* Bump docs, fauxtonJoan Touzet2020-04-291-2/+2
|
* Add Ubuntu Focal (20.04) + SM68 to JenkinsJoan Touzet2020-04-292-2/+48
|
* Drop os_mon from dependenciesJoan Touzet2020-04-285-6/+2
|
* Suppress offsetof gcc warnings for SM60Joan Touzet2020-04-281-1/+1
| | | | | | Mozilla did this years ago: https://hg.mozilla.org/mozilla-central/rev/41d9d32ab5a7
* View is partitioned if db and view are partitionedRobert Newson2020-04-271-10/+1
| | | | | | | We've seen a crash if DbPartitioned is false and ViewPartitioned is true, which is obviously nonsense. The effect of the `nocase` is the termination of the couch_index_server gen_server, which is a serious amplification of a small (user-initiated) oddity.
* Ensure python black runs on all .py files (#2827)Joan Touzet2020-04-272-4/+4
|
* python black cleanupJoan Touzet2020-04-271-7/+3
|
* Fix new JS test caseJoan Touzet2020-04-271-2/+3
|
* Replace broken u-escape sequencesPaul J. Davis2020-04-271-2/+104
|
* Incorporate changes from #2786Joan Touzet2020-04-279-597/+239
|
* First pass at SpiderMonkey 68 supportJoan Touzet2020-04-2712-37/+2107
|
* Merge pull request #2816 from apache/mango-bookmark-masterRobert Newson2020-04-231-1/+1
|\ | | | | safer binary_to_term in mango_json_bookmark
| * safer binary_to_term in mango_json_bookmarkmango-bookmark-masterRobert Newson2020-04-231-1/+1
|/
* fix: use correct logging module name, fixes #2797 (#2798)Jan Lehnardt2020-04-221-1/+1
| | | Co-authored-by: Joan Touzet <wohali@users.noreply.github.com>
* Replace VM_ARGS with ARGS_FILE which is set as it is in couchdb script ↵Simon Klassen2020-04-221-5/+16
| | | | | | /etc/vm.args; also parses name from config. (#2738) Co-authored-by: sklassen <none> Co-authored-by: Joan Touzet <wohali@users.noreply.github.com>
* fix operator issue with empty arrays (#2805)Tony Sun2020-04-212-3/+25
| | | | | | | | | | | Previously, in https://github.com/apache/couchdb/pull/1783, the logic was wrong in relation to how certain operators interacted with empty arrays. We modify this logic to make it such that: {"foo":"bar", "bar":{"$in":[]}} and {"foo":"bar", "bar":{"$all":[]}} should return 0 results.
* Bump fauxton to v1.2.3 (#2515)Will Holley2020-04-211-1/+1
| | | Co-authored-by: Joan Touzet <wohali@users.noreply.github.com>
* Update README.rst (#2537)Ronny2020-04-211-3/+5
| | | | | Update the description of the behavior of the script ./dev/run. Co-authored-by: Joan Touzet <wohali@users.noreply.github.com>
* Fix couchjs utf8 conversions (#2786)Paul J. Davis2020-04-187-569/+374
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unused string conversion functions * Set UTF-8 encoding when compiling scripts * Encode JavaScript strings as UTF-8 for printing * Check that only strings are passed to print * Use builtin UTF-8 conversions in http.cpp * Add tests for couchjs UTF-8 support * Remove custom UTF-8 conversion functions We're now using 100% built-in functionality of SpiderMonkey to handle all UTF-8 conversions. * Report error messages at global scope Previously we weren't reporting any uncaught exceptions or compilation errors. This changes that to print any compilation errors or any uncaught exceptions with stack traces. The previous implementation of `couch_error` was attempting to call `String.replace` on the `stack` member string of the thrown exception. This likely never worked and attempting to fix I was unable to properly invoke the `String.replace` function. This changes the implementation to use the builtin stack formatting method instead. * Modernize sources to minimize changes for 68 These are a handful of changes that modernize various aspects of the couchjs 60 source files. Behaviorally they're all benign but will shorten the diff required for adding support for SpiderMonkey 68. Co-authored-by: Joan Touzet <wohali@apache.org>
* Merge pull request #1944 from cloudant/integrate-emilioiilyak2020-04-157-2/+183
|\ | | | | Integrate emilio
| * Integrate emilio - erang linterILYA Khlopotov2020-04-157-2/+183
|/
* Port recreate docs testJuanjo Rodriguez2020-04-123-1/+167
|
* Port view_offset.js to elixir test suiteAlessio Biancalana2020-04-024-2/+128
|
* allow to run 'javascript' target with other test targets in the same 'make' ↵Juanjo Rodriguez2020-04-012-2/+5
| | | | process
* Update Makefile.win to Include locad configs and clean configs in devcleanJuanjo Rodriguez2020-04-012-2/+7
|
* Improve test initializationJuanjo Rodriguez2020-04-011-7/+8
|
* fix: require_valid_user exception logicJan Lehnardt2020-04-012-7/+141
| | | | Co-authored-by: Robert Newson <rnewson@apache.org>
* Do not copy the #server.lru field to async openersPaul J. Davis2020-03-311-1/+4
| | | | | | This copy slowed down the `erlang:spawn_link/3` call considerably. Measurements in the wild showed the cost of that `spawn_link/3` going from roughly 8 uS to 800 uS.
* Merge pull request #2732 from apache/jwt-controls-2Robert Newson2020-03-315-41/+72
|\ | | | | Enhance JWT controls (again)
| * Verify all presented claimsjwt-controls-2Robert Newson2020-03-304-15/+31
| | | | | | | | | | | | All claims in the header and payload are verified if present. The required_claims config setting is now separate and only causes CouchDB to reject JWT tokens without those claims.
| * Enhance valid claims checks to detect binaries, etcRobert Newson2020-03-303-5/+37
| |