Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' into fix/2797/setup-unknown-errorfix/2797/setup-unknown-error | Jan Lehnardt | 2020-04-22 | 3 | -4/+26 |
|\ | |||||
| * | fix operator issue with empty arrays (#2805) | Tony Sun | 2020-04-21 | 2 | -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 Holley | 2020-04-21 | 1 | -1/+1 |
| | | | | | | Co-authored-by: Joan Touzet <wohali@users.noreply.github.com> | ||||
* | | Merge branch 'master' into fix/2797/setup-unknown-error | Jan Lehnardt | 2020-04-21 | 1 | -3/+5 |
|\ \ | |/ | |||||
| * | Update README.rst (#2537) | Ronny | 2020-04-21 | 1 | -3/+5 |
| | | | | | | | | | | Update the description of the behavior of the script ./dev/run. Co-authored-by: Joan Touzet <wohali@users.noreply.github.com> | ||||
* | | fix: use correct logging module name, fixes #2797 | Jan Lehnardt | 2020-04-21 | 1 | -1/+1 |
|/ | |||||
* | Fix couchjs utf8 conversions (#2786) | Paul J. Davis | 2020-04-18 | 7 | -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-emilio | iilyak | 2020-04-15 | 7 | -2/+183 |
|\ | | | | | Integrate emilio | ||||
| * | Integrate emilio - erang linter | ILYA Khlopotov | 2020-04-15 | 7 | -2/+183 |
|/ | |||||
* | Port recreate docs test | Juanjo Rodriguez | 2020-04-12 | 3 | -1/+167 |
| | |||||
* | Port view_offset.js to elixir test suite | Alessio Biancalana | 2020-04-02 | 4 | -2/+128 |
| | |||||
* | allow to run 'javascript' target with other test targets in the same 'make' ↵ | Juanjo Rodriguez | 2020-04-01 | 2 | -2/+5 |
| | | | | process | ||||
* | Update Makefile.win to Include locad configs and clean configs in devclean | Juanjo Rodriguez | 2020-04-01 | 2 | -2/+7 |
| | |||||
* | Improve test initialization | Juanjo Rodriguez | 2020-04-01 | 1 | -7/+8 |
| | |||||
* | fix: require_valid_user exception logic | Jan Lehnardt | 2020-04-01 | 2 | -7/+141 |
| | | | | Co-authored-by: Robert Newson <rnewson@apache.org> | ||||
* | Do not copy the #server.lru field to async openers | Paul J. Davis | 2020-03-31 | 1 | -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-2 | Robert Newson | 2020-03-31 | 5 | -41/+72 |
|\ | | | | | Enhance JWT controls (again) | ||||
| * | Verify all presented claimsjwt-controls-2 | Robert Newson | 2020-03-30 | 4 | -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, etc | Robert Newson | 2020-03-30 | 3 | -5/+37 |
| | | |||||
| * | Remove enhanced alg check | Robert Newson | 2020-03-30 | 4 | -22/+5 |
|/ | | | | | This mechanism is replaced by the much stronger tying of verification algorithm to the key directly in the server config. | ||||
* | Merge pull request #2727 from apache/jwt-kty-check | Robert Newson | 2020-03-28 | 4 | -33/+134 |
|\ | | | | | Only trust the servers declaration of JWT key type | ||||
| * | Only trust the servers declaration of JWT key type | Robert Newson | 2020-03-28 | 4 | -33/+134 |
|/ | |||||
* | Merge pull request #2690 from apache/fix-create-db-options | Russell Branca | 2020-03-27 | 7 | -21/+280 |
|\ | | | | | Fix create db options on secondary shard creation | ||||
| * | Add mem3_util:find_dirty_shards functionfix-create-db-options | Russell Branca | 2020-03-26 | 1 | -0/+42 |
| | | |||||
| * | Ensure shards are created with db options | Russell Branca | 2020-03-25 | 6 | -3/+228 |
| | | |||||
| * | Cleanup mem3 shards_db config lookups | Russell Branca | 2020-03-25 | 3 | -18/+10 |
|/ | |||||
* | Merge pull request #2703 from dottorblaster/port-view-pagination-test-to-elixir | Alessio Biancalana | 2020-03-25 | 3 | -1/+192 |
|\ | | | | | Port view_pagination integration test to elixir test suite | ||||
| * | Port view_pagination integration test to elixir test suite | Alessio Biancalana | 2020-03-25 | 3 | -1/+192 |
|/ | |||||
* | Port purge.js into elixir test suite | Juanjo Rodriguez | 2020-03-25 | 3 | -2/+170 |
| | |||||
* | Merge pull request #2714 from atrauzzi/jwt-couchdb-specific-roles-claim | Robert Newson | 2020-03-24 | 2 | -2/+2 |
|\ | | | | | Make the JWT roles claim more CouchDB specific | ||||
| * | Rename the claim used for roles to be more CouchDB specific. | Alexander Trauzzi | 2020-03-24 | 2 | -2/+2 |
|/ | |||||
* | Add support for roles to be obtained from JWTs. (#2694) | Alexander Trauzzi | 2020-03-24 | 2 | -2/+4 |
| | | | Add support for roles to be obtained from JWTs | ||||
* | Ensure clean PATH for Windows couchdb.cmd (#2708) | Joan Touzet | 2020-03-23 | 1 | -1/+1 |
| | |||||
* | Merge pull request #2698 from dottorblaster/fix-missing-apexes | Alessio Biancalana | 2020-03-23 | 1 | -2/+2 |
|\ | | | | | Fix missing apexes in test/elixir/README.md | ||||
| * | Fix missing apexes in test/elixir/README.md | Alessio Biancalana | 2020-03-23 | 1 | -2/+2 |
|/ | |||||
* | Merge pull request #2687 from apache/jwt-enhancements | Robert Newson | 2020-03-23 | 8 | -16/+300 |
|\ | | | | | Jwt enhancements | ||||
| * | base64 the symmetric jwt keysjwt-enhancements | Robert Newson | 2020-03-22 | 2 | -2/+2 |
| | | |||||
| * | throw Reason directly so we send good http error responses | Robert Newson | 2020-03-22 | 1 | -1/+1 |
| | | |||||
| * | Create in-memory cache of JWT keys | Robert Newson | 2020-03-22 | 5 | -14/+187 |
| | | | | | | | | | | Decoding RSA and EC keys is a little expensive and we don't want to do it for every single request. Add a cache that is invalidated on config change. | ||||
| * | add EC tests | Robert Newson | 2020-03-22 | 1 | -0/+38 |
| | | |||||
| * | support RSA for JWT auth | Robert Newson | 2020-03-22 | 3 | -8/+73 |
| | | |||||
| * | test all variants of jwt hmac | Robert Newson | 2020-03-22 | 1 | -4/+9 |
| | | |||||
| * | generate JWT token ourselves | Robert Newson | 2020-03-22 | 2 | -4/+7 |
| | | |||||
| * | no need to deduplicate this list | Robert Newson | 2020-03-22 | 1 | -1/+1 |
|/ | |||||
* | Fix ported to elixir tag | Juanjo Rodriguez | 2020-03-22 | 5 | -4/+5 |
| | |||||
* | Port http, method_override and jsonp tests into elixir test suite (#2646) | Juanjo Rodriguez | 2020-03-21 | 9 | -8/+267 |
| | |||||
* | Merge pull request #2688 from dottorblaster/fix-utf8-elixir-test-warning | Alessio Biancalana | 2020-03-20 | 1 | -1/+1 |
|\ | | | | | Ignore unused string variable inside utf8 test case | ||||
| * | Ignore unused string variable inside utf8 test case | Alessio Biancalana | 2020-03-20 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #2686 from dottorblaster/upgrade-credo-1.3.1 | Alessio Biancalana | 2020-03-20 | 2 | -3/+3 |
|\ | | | | | Upgrade Credo to 1.3.1 | ||||
| * | Upgrade Credo to 1.3.1 | Alessio Biancalana | 2020-03-20 | 2 | -3/+3 |
|/ |