Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] feat: add mango-based VDU endpoints #1898

Open
wants to merge 232 commits into
base: main
Choose a base branch
from

Commits on May 6, 2017

  1. Initial commit

    rnewson committed May 6, 2017
    Configuration menu
    Copy the full SHA
    9a671b6 View commit details
    Browse the repository at this point in the history
  2. Initial commit

    Test does not pass yet.
    rnewson committed May 6, 2017
    Configuration menu
    Copy the full SHA
    2c3f968 View commit details
    Browse the repository at this point in the history
  3. validate nbf

    rnewson committed May 6, 2017
    Configuration menu
    Copy the full SHA
    f2e1085 View commit details
    Browse the repository at this point in the history
  4. Moar Functional

    * remove dependency on config
    * make checks optional
    * support HS256
    rnewson committed May 6, 2017
    Configuration menu
    Copy the full SHA
    3888d18 View commit details
    Browse the repository at this point in the history
  5. unused var

    rnewson committed May 6, 2017
    Configuration menu
    Copy the full SHA
    5f93661 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2017

  1. add more tests

    rnewson committed May 7, 2017
    Configuration menu
    Copy the full SHA
    02ecf5b View commit details
    Browse the repository at this point in the history

Commits on May 8, 2017

  1. Add JKWS cache

    rnewson committed May 8, 2017
    Configuration menu
    Copy the full SHA
    5b9dad7 View commit details
    Browse the repository at this point in the history
  2. Make typ and alg optional

    and make everything truly optional.
    rnewson committed May 8, 2017
    Configuration menu
    Copy the full SHA
    d7bd8d1 View commit details
    Browse the repository at this point in the history
  3. use public url

    rnewson committed May 8, 2017
    Configuration menu
    Copy the full SHA
    8077258 View commit details
    Browse the repository at this point in the history
  4. 98% coverage

    rnewson committed May 8, 2017
    Configuration menu
    Copy the full SHA
    3cb8b7d View commit details
    Browse the repository at this point in the history

Commits on May 9, 2017

  1. kid belongs in the header

    rnewson committed May 9, 2017
    Configuration menu
    Copy the full SHA
    e60fa50 View commit details
    Browse the repository at this point in the history
  2. some documentation

    rnewson committed May 9, 2017
    Configuration menu
    Copy the full SHA
    a18a2e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    69e1ce2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    25bfdc3 View commit details
    Browse the repository at this point in the history
  5. allow iss to be optional

    rnewson committed May 9, 2017
    Configuration menu
    Copy the full SHA
    31999f4 View commit details
    Browse the repository at this point in the history
  6. slightly improve readme

    rnewson committed May 9, 2017
    Configuration menu
    Copy the full SHA
    acbaa37 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2017

  1. expand algorithm support

    rnewson committed May 10, 2017
    Configuration menu
    Copy the full SHA
    bf7a2ed View commit details
    Browse the repository at this point in the history
  2. support P-256 in JWKS

    rnewson committed May 10, 2017
    Configuration menu
    Copy the full SHA
    61f47b3 View commit details
    Browse the repository at this point in the history
  3. update alg list

    rnewson committed May 10, 2017
    Configuration menu
    Copy the full SHA
    373a367 View commit details
    Browse the repository at this point in the history
  4. return a public key tuple

    rnewson committed May 10, 2017
    Configuration menu
    Copy the full SHA
    ae0e0f4 View commit details
    Browse the repository at this point in the history
  5. test EC

    rnewson committed May 10, 2017
    Configuration menu
    Copy the full SHA
    e0d61d0 View commit details
    Browse the repository at this point in the history
  6. fix test

    rnewson committed May 10, 2017
    Configuration menu
    Copy the full SHA
    e180555 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2017

  1. add tests for HS384 and HS512

    rnewson committed May 11, 2017
    Configuration menu
    Copy the full SHA
    e80c3d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6cc182d View commit details
    Browse the repository at this point in the history
  3. provide caching of JWKS keys

    rnewson committed May 11, 2017
    Configuration menu
    Copy the full SHA
    e083b22 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2017

  1. add ibrowse as dep

    rnewson committed May 12, 2017
    Configuration menu
    Copy the full SHA
    9d60fa2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ceeb019 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2017

  1. Improve pubkey not found error handling (apache#4)

    * Improve pubkey not found error handling
    
    When the public key identified by the {Alg, KID} tuple is not found on
    the IAM keystore server, it's possible to see errors like:
    
    ([email protected])140> epep:jwt_decode(SampleJWT).
    ** exception error: no function clause matching
                        public_key:do_verify(<<"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTcwNTIwLTAwOjAwOjAwIn0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjEyMzIx"...>>,
                                             sha256,
                                             <<229,188,162,247,201,233,118,32,115,206,156,
                                               169,17,221,78,157,161,147,46,179,42,219,66,
                                               15,139,91,...>>,
                                             {error,not_found}) (public_key.erl, line 782)
         in function  jwtf:public_key_verify/4 (src/jwtf.erl, line 212)
         in call from jwtf:decode/3 (src/jwtf.erl, line 30)
    
    Modify key/1 and public_key_not_found_test/0 to account for keystore
    changing from returning an error tuple to throwing one.
    jaydoane authored and rnewson committed May 24, 2017
    Configuration menu
    Copy the full SHA
    5b31b0d View commit details
    Browse the repository at this point in the history

Commits on May 30, 2017

  1. Improve restart strategy

    Tolerate 5 crashes per 10 seconds
    jaydoane committed May 30, 2017
    Configuration menu
    Copy the full SHA
    80d4a64 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#5 from jaydoane/improve-restart-strategy

    Improve restart strategy
    rnewson committed May 30, 2017
    Configuration menu
    Copy the full SHA
    094489f View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2017

  1. Configuration menu
    Copy the full SHA
    b396a1d View commit details
    Browse the repository at this point in the history
  2. Support JWT encoding

    Implement jwtf:encode/3 for encoding JSON Web Tokens. Test encode/decode
    round trip for each supported alg.
    jaydoane committed Jun 8, 2017
    Configuration menu
    Copy the full SHA
    d9a718b View commit details
    Browse the repository at this point in the history
  3. Merge pull request apache#6 from cloudant/implement-encode

    Implement encode
    jaydoane committed Jun 8, 2017
    Configuration menu
    Copy the full SHA
    280376f View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2017

  1. Configuration menu
    Copy the full SHA
    382229e View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2017

  1. Configuration menu
    Copy the full SHA
    768732a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3b6661 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f9c1f33 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8100be3 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2017

  1. get_keyset needs ssl started

    rnewson committed Jun 16, 2017
    Configuration menu
    Copy the full SHA
    c6e58c4 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2017

  1. Remove unnecessary props

    jaydoane committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    53c254f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a01cb0f View commit details
    Browse the repository at this point in the history
  3. Merge pull request apache#3 from jaydoane/simplify-tests

    Simplify tests
    jaydoane committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    845226c View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2017

  1. Suppress compiler warnings

    jaydoane committed Jun 21, 2017
    Configuration menu
    Copy the full SHA
    bb1744e View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2017

  1. Configuration menu
    Copy the full SHA
    3d6c294 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2017

  1. Merge pull request apache#10 from cloudant/move-key-cache

    Move key cache to epep
    jaydoane committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    d4f4aee View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2017

  1. Separate tests into dedicated module

    Currently jwtf tests don't run in a continuous integration
    environment, presumably due to dependency rules.
    
    This splits the tests into their own module, but requires exposing a
    couple new functions in jwtf to support them. Some long lines were
    also broken into smaller lengths.
    jaydoane committed Aug 11, 2017
    Configuration menu
    Copy the full SHA
    8e937f2 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2017

  1. Merge pull request apache#11 from cloudant/separate-test-module

    Separate tests into dedicated module
    jaydoane committed Aug 14, 2017
    Configuration menu
    Copy the full SHA
    b4abcda View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2019

  1. Configuration menu
    Copy the full SHA
    aecd237 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2020

  1. Port reduce_false.js and reduce_builtin.js to Elixir (apache#2541)

    Port reduce_false.js and reduce_builtin.js to Elixir
    leo-pires committed Feb 13, 2020
    Configuration menu
    Copy the full SHA
    99f94e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8748310 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2020

  1. Expose couch_util:decode/2 to support jiffy options

    It can be desirable in some cases for decoded JSON to e.g. return
    maps instead of the default data structure, which is not currently
    possible.
    
    This exposes a new function `couch_util:decode/2`, the second
    parameter being a list of options passed to `jiffy:decode/2`.
    jaydoane committed Feb 17, 2020
    Configuration menu
    Copy the full SHA
    ca178f0 View commit details
    Browse the repository at this point in the history
  2. Reset if we don't get a view header

    I found a .view file with a db_header in production (cause unknown but
    I'm hoping it's manual intervention).
    
    This patch means we'll reset the index if we find something other than
    a view header when looking for one.
    Robert Newson authored and rnewson committed Feb 17, 2020
    2 Configuration menu
    Copy the full SHA
    09ac720 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2020

  1. Configuration menu
    Copy the full SHA
    91ecf67 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1e37457 View commit details
    Browse the repository at this point in the history
  3. Revert "fix: single node state (apache#2575)"

    This reverts commit 91ecf67.
    janl authored and wohali committed Feb 19, 2020
    Configuration menu
    Copy the full SHA
    e0cff2f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    26f9366 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2020

  1. Configuration menu
    Copy the full SHA
    2ef656e View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2020

  1. Merge pull request apache#2586 from jjrodrig/port-elixir-changes

    Port changes.js test suite into elixir
    jjrodrig committed Feb 22, 2020
    Configuration menu
    Copy the full SHA
    93cf4d3 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2020

  1. Upgrade Credo to 1.2.2

    dottorblaster committed Feb 27, 2020
    Configuration menu
    Copy the full SHA
    fb30ac5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a44b32 View commit details
    Browse the repository at this point in the history
  3. Merge pull request apache#2518 from dottorblaster/upgrade-credo-to-1.…

    …2.0-disable-legacy-checks
    
    Upgrade credo to 1.2.0 disable legacy checks
    dottorblaster committed Feb 27, 2020
    Configuration menu
    Copy the full SHA
    949e496 View commit details
    Browse the repository at this point in the history
  4. Bump to jiffy 1.0.4

    davisp committed Feb 27, 2020
    Configuration menu
    Copy the full SHA
    65bc5b0 View commit details
    Browse the repository at this point in the history
  5. Fix mem3_sync_event_listener test

    There's a race between the meck:wait call in setup and killing the
    config_event process. Its possible that we could kill and restart the
    config_event process after meck:wait returns, but before
    gen_event:add_sup_handler is called. More likely, we could end up
    killing the config_event gen_event process before its fully handled the
    add_sup_handler message and linked the notifier pid.
    
    This avoids the race by waiting for config_event to return that it has
    processed the add_sup_handler message instead of relying on meck:wait
    for the subscription call.
    davisp committed Feb 27, 2020
    Configuration menu
    Copy the full SHA
    7a33ca0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d163648 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3f76c9f View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2020

  1. Merge pull request apache#2608 from dottorblaster/port_form_submit_te…

    …st_to_elixir
    
    Port form_submit.js test to Elixir
    dottorblaster committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    16ed4b7 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2020

  1. doc: link README-DEV in README

    janl committed Feb 29, 2020
    Configuration menu
    Copy the full SHA
    c6b54d6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2619 from apache/doc/readme-links

    doc: link README-DEV in README
    dottorblaster committed Feb 29, 2020
    Configuration menu
    Copy the full SHA
    0a4afde View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2020

  1. feat: add mac ci (apache#2622)

    janl committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    93d5263 View commit details
    Browse the repository at this point in the history
  2. Port _design_docs tests, design_options and design_paths from js to e…

    …lixir (apache#2596)
    
    * Port _design_docs tests from js to elixir
    * Port design_options and design_paths tests from js to elixir
    jjrodrig committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    86ec2f3 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2020

  1. Clean up mango test dbs

    After mango python tests are run, a bunch of dbs are typically left
    around, e.g. `mango_test_048b290b574d4039981893097ab71912`
    
    This deletes those test dbs after they are no longer in use.
    
    (cherry picked from commit e05e3cd)
    jaydoane committed Mar 4, 2020
    Configuration menu
    Copy the full SHA
    ec3cf20 View commit details
    Browse the repository at this point in the history
  2. Clean up mango test user docs

    Tests based on class `UsersDbTests` don't clean up the user docs it
    puts in the `_users` db. This uses the classmethod `tearDownClass` to
    delete those docs.
    
    (cherry picked from commit 3d559eb)
    jaydoane committed Mar 4, 2020
    Configuration menu
    Copy the full SHA
    deca868 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ec8c71 View commit details
    Browse the repository at this point in the history
  4. Improve mango markdown

    This primarily wraps long lines and removes trailing whitespace in the
    README.md and TODO.md files. In `test/README.md`, it updates the default
    admin username and password used by `dev/run`.
    jaydoane committed Mar 4, 2020
    Configuration menu
    Copy the full SHA
    db3aa0f View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2020

  1. 1 Configuration menu
    Copy the full SHA
    528e02f View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2645 from danielbarbarito/users-db-security…

    …-editable-ini-fix
    
    Move "users_db_security_editable" to the correct location in the ini file
    rnewson committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    d0c30f2 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2020

  1. Create LICENSE

    rnewson committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    640e39c View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2020

  1. Enable code coverage

    jaydoane committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    b00814e View commit details
    Browse the repository at this point in the history
  2. Upgrade Credo to 1.3.0

    dottorblaster committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    c9a9bf0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddeb2d1 View commit details
    Browse the repository at this point in the history
  4. Handle malformed tokens with jiffy 1.x

    Recent changes in how `jiffy:decode/1` handles malformed JSON has caused
    `jwtf:decode/3` to fail to properly return a bad request 400 response
    for some malformed tokens.
    
    First, this changes the name of the function to `decode_b64url_json/1`,
    indicating that it decodes something that has been first been JSON
    encoded, and then base64url encoded.
    
    More substantially, it wraps both the base64url and jiffy decoding in a
    try/catch block, since both can throw errors, while the former can also
    return an error tuple. Tests have been added to ensure all code paths
    are covered.
    jaydoane committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    1794e14 View commit details
    Browse the repository at this point in the history
  5. Merge pull request apache#2652 from dottorblaster/upgrade-credo-1.3.0

    Upgrade credo to 1.3.0
    dottorblaster committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    8c7e825 View commit details
    Browse the repository at this point in the history
  6. Merge pull request apache#12 from cloudant/handle-malformed-token

    Handle malformed tokens with jiffy 1.x
    jaydoane committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    588eade View commit details
    Browse the repository at this point in the history
  7. Send correct seq values for filtered changes

    If a filtered changes feed hit a rewind we would send a bare `integer()`
    value for the Seq. If this was used again during a rewind it causes a
    competely rewind to zero due to not having the `node()` and UUID
    `binary()` values to calculate a new start seq.
    davisp committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    27abf0e View commit details
    Browse the repository at this point in the history
  8. Merge pull request apache#2654 from apache/fix-filter-changes-feed-re…

    …winds
    
    Send correct seq values for filtered changes
    rnewson committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    f2ddedd View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2020

  1. Set cookie domain when DELETE'ing

    rnewson committed Mar 12, 2020
    Configuration menu
    Copy the full SHA
    af2eb04 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2657 from apache/cookie-domain-delete

    Set cookie domain when DELETE'ing
    rnewson committed Mar 12, 2020
    Configuration menu
    Copy the full SHA
    99101dc View commit details
    Browse the repository at this point in the history
  3. merged jwtf into src/jwtf

    rnewson committed Mar 12, 2020
    Configuration menu
    Copy the full SHA
    087f727 View commit details
    Browse the repository at this point in the history
  4. add jwtf to release

    rnewson committed Mar 12, 2020
    Configuration menu
    Copy the full SHA
    919f75c View commit details
    Browse the repository at this point in the history
  5. Merge pull request apache#2658 from apache/import-jwtf

    Import jwtf
    rnewson committed Mar 12, 2020
    Configuration menu
    Copy the full SHA
    b14ec65 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2020

  1. Enhance alg check

    The "alg" check can now take list of algorithms that are supported,
    which must be from the valid list of algorithms.
    rnewson committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    39b9cc7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2661 from apache/jwtf-enhance-alg-check

    Enhance alg check
    rnewson committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    da7f648 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2020

  1. Port elixir proxyauth tests from js to elixir (apache#2660)

    * Add support for specify a custom config file for CouchDB startup during testing
    * Port proxyauth test from js to elixir
    jjrodrig committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    1f54b14 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff6cef6 View commit details
    Browse the repository at this point in the history
  3. Merge pull request apache#2668 from apache/jwtf-unknown-checks

    Throw if an unknown check is passed to jwtf:decode
    rnewson committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    f7bdc8c View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2020

  1. Feature - Add JWT support (apache#2648)

    Add JWT Authentication Handler
    
    Co-authored-by: Robert Newson <[email protected]>
    Co-authored-by: Joan Touzet <[email protected]>
    3 people committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    032934f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb3c772 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2020

  1. Upgrade Credo to 1.3.1

    dottorblaster committed Mar 20, 2020
    Configuration menu
    Copy the full SHA
    996587d View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2686 from dottorblaster/upgrade-credo-1.3.1

    Upgrade Credo to 1.3.1
    dottorblaster committed Mar 20, 2020
    Configuration menu
    Copy the full SHA
    fc950c5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    11dee52 View commit details
    Browse the repository at this point in the history
  4. Merge pull request apache#2688 from dottorblaster/fix-utf8-elixir-tes…

    …t-warning
    
    Ignore unused string variable inside utf8 test case
    dottorblaster committed Mar 20, 2020
    Configuration menu
    Copy the full SHA
    f8ffde2 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2020

  1. Configuration menu
    Copy the full SHA
    3248ebc View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2020

  1. Fix ported to elixir tag

    jjrodrig committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    f6a4f8e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8074a32 View commit details
    Browse the repository at this point in the history
  3. generate JWT token ourselves

    rnewson committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    bb86d04 View commit details
    Browse the repository at this point in the history
  4. test all variants of jwt hmac

    rnewson committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    5c77ef0 View commit details
    Browse the repository at this point in the history
  5. support RSA for JWT auth

    rnewson committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    db21eda View commit details
    Browse the repository at this point in the history
  6. add EC tests

    rnewson committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    623ae9a View commit details
    Browse the repository at this point in the history
  7. Create in-memory cache of JWT keys

    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.
    rnewson committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    c1e7c5a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dc88e36 View commit details
    Browse the repository at this point in the history
  9. base64 the symmetric jwt keys

    rnewson committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    16b3c8d View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2020

  1. Merge pull request apache#2687 from apache/jwt-enhancements

    Jwt enhancements
    rnewson committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    55f704d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8a5f48b View commit details
    Browse the repository at this point in the history
  3. Merge pull request apache#2698 from dottorblaster/fix-missing-apexes

    Fix missing apexes in test/elixir/README.md
    dottorblaster committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    c38a2c2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5c52904 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2020

  1. Add support for roles to be obtained from JWTs. (apache#2694)

    Add support for roles to be obtained from JWTs
    atrauzzi committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    1890168 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3523c81 View commit details
    Browse the repository at this point in the history
  3. Merge pull request apache#2714 from atrauzzi/jwt-couchdb-specific-rol…

    …es-claim
    
    Make the JWT roles claim more CouchDB specific
    rnewson committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    2b95500 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2020

  1. Configuration menu
    Copy the full SHA
    49dbb6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e26d99e View commit details
    Browse the repository at this point in the history
  3. Merge pull request apache#2703 from dottorblaster/port-view-paginatio…

    …n-test-to-elixir
    
    Port view_pagination integration test to elixir test suite
    dottorblaster committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    e22b5ab View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2247322 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7c831f6 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2020

  1. Configuration menu
    Copy the full SHA
    9c95667 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2020

  1. Merge pull request apache#2690 from apache/fix-create-db-options

    Fix create db options on secondary shard creation
    chewbranca committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    9ee8244 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2020

  1. Configuration menu
    Copy the full SHA
    a799b67 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2727 from apache/jwt-kty-check

    Only trust the servers declaration of JWT key type
    rnewson committed Mar 28, 2020
    Configuration menu
    Copy the full SHA
    2212c31 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2020

  1. Remove enhanced alg check

    This mechanism is replaced by the much stronger tying of verification
    algorithm to the key directly in the server config.
    rnewson committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    d291847 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1ab4ff3 View commit details
    Browse the repository at this point in the history
  3. Verify all presented claims

    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.
    rnewson committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    6b6ddf0 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2020

  1. Merge pull request apache#2732 from apache/jwt-controls-2

    Enhance JWT controls (again)
    rnewson committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    5bc0af1 View commit details
    Browse the repository at this point in the history
  2. Do not copy the #server.lru field to async openers

    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.
    davisp authored and nickva committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    4dca84e View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2020

  1. fix: require_valid_user exception logic

    Co-authored-by: Robert Newson <[email protected]>
    janl and rnewson committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    42d20da View commit details
    Browse the repository at this point in the history
  2. Improve test initialization

    jjrodrig committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    f3a3312 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb9d404 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    54a05e4 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2020

  1. Configuration menu
    Copy the full SHA
    2ed662e View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2020

  1. Port recreate docs test

    jjrodrig committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    2e78beb View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2020

  1. Configuration menu
    Copy the full SHA
    522627e View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#1944 from cloudant/integrate-emilio

    Integrate emilio
    iilyak committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    7f24add View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. Fix couchjs utf8 conversions (apache#2786)

    * 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 <[email protected]>
    davisp and wohali committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    f9dc835 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2020

  1. Update README.rst (apache#2537)

    Update the description of the behavior of the script ./dev/run.
    
    Co-authored-by: Joan Touzet <[email protected]>
    big-r81 and wohali committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    975110d View commit details
    Browse the repository at this point in the history
  2. Bump fauxton to v1.2.3 (apache#2515)

    Co-authored-by: Joan Touzet <[email protected]>
    willholley and wohali committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    5748ef3 View commit details
    Browse the repository at this point in the history
  3. fix operator issue with empty arrays (apache#2805)

    Previously, in apache#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.
    tonysun83 committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    a8413bc View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2020

  1. Replace VM_ARGS with ARGS_FILE which is set as it is in couchdb scrip…

    …t /etc/vm.args; also parses name from config. (apache#2738)
    
    Co-authored-by: sklassen <none>
    Co-authored-by: Joan Touzet <[email protected]>
    sklassen and wohali committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    440ab26 View commit details
    Browse the repository at this point in the history
  2. fix: use correct logging module name, fixes apache#2797 (apache#2798)

    Co-authored-by: Joan Touzet <[email protected]>
    janl and wohali committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    f3d5965 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2020

  1. Configuration menu
    Copy the full SHA
    f332f43 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2816 from apache/mango-bookmark-master

    safer binary_to_term in mango_json_bookmark
    rnewson committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    66e02a2 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2020

  1. Configuration menu
    Copy the full SHA
    27d1405 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e5239b7 View commit details
    Browse the repository at this point in the history
  3. Replace broken u-escape sequences

    davisp authored and wohali committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    bb43a69 View commit details
    Browse the repository at this point in the history
  4. Fix new JS test case

    wohali committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    e6e6e6b View commit details
    Browse the repository at this point in the history
  5. python black cleanup

    wohali committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    55deba0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b7ca42d View commit details
    Browse the repository at this point in the history
  7. View is partitioned if db and view are partitioned

    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.
    rnewson committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    63e2d08 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2020

  1. Configuration menu
    Copy the full SHA
    607f4c1 View commit details
    Browse the repository at this point in the history
  2. Drop os_mon from dependencies

    wohali committed Apr 28, 2020
    Configuration menu
    Copy the full SHA
    44e0f0f View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2020

  1. Configuration menu
    Copy the full SHA
    ba9fc3c View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2020

  1. Bump docs, fauxton

    wohali committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    4f3d5ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ebdfbba View commit details
    Browse the repository at this point in the history

Commits on May 2, 2020

  1. Configuration menu
    Copy the full SHA
    baba64b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69f6b86 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2020

  1. Fix license file

    wohali authored and janl committed May 17, 2020
    Configuration menu
    Copy the full SHA
    0399200 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2020

  1. allow configurability of JWT claims that require a value

    e.g;
    
    [jwt]
    required_claims = {iss, "https://example.com/issuer"}
    rnewson committed May 18, 2020
    Configuration menu
    Copy the full SHA
    4f7d1d9 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2888 from apache/jwtf-iss-configurability

    allow configurability of JWT claims that require a value
    rnewson committed May 18, 2020
    Configuration menu
    Copy the full SHA
    4398d3b View commit details
    Browse the repository at this point in the history

Commits on May 21, 2020

  1. Configuration menu
    Copy the full SHA
    850cc12 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2899 from apache/jwtf-erlang-19

    make jwtf_keystore compatible with erlang 19
    rnewson committed May 21, 2020
    Configuration menu
    Copy the full SHA
    143ad31 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e245aa0 View commit details
    Browse the repository at this point in the history
  4. Merge pull request apache#2900 from apache/jwtf-erlang-19-2

    make jwtf_keystore compatible with erlang 19 for real this time
    rnewson committed May 21, 2020
    Configuration menu
    Copy the full SHA
    474cb72 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2020

  1. Configuration menu
    Copy the full SHA
    08a0c6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e64f5b View commit details
    Browse the repository at this point in the history

Commits on May 30, 2020

  1. 2906 couchjs sm version (apache#2911)

    Closes apache#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 <[email protected]
    sklassen committed May 30, 2020
    Configuration menu
    Copy the full SHA
    0be139a View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2020

  1. feat(auth): Allow a custom JWT claim for roles

    mauroporras authored and rnewson committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    ab93b15 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2020

  1. Report if FIPS mode is enabled

    This will only report "fips" in the welcome message if FIPS mode
    was enabled at boot (i.e, in vm.args).
    rnewson committed Jun 5, 2020
    Configuration menu
    Copy the full SHA
    10fae61 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2929 from apache/report-fips-feature

    Report if FIPS mode is enabled
    rnewson committed Jun 5, 2020
    Configuration menu
    Copy the full SHA
    887d740 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2020

  1. In replicator, when rescheduling, pick only pending jobs which are no…

    …t running
    
    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.
    nickva committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    a7803fb View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2020

  1. Make restricted partition search parameters return bad request

    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.
    bessbd authored and garrensmith committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    6659dbb View commit details
    Browse the repository at this point in the history
  2. fix: send CSP header to make Fauxotn work fully

    Co-authored-by: Robert Newson <[email protected]>
    janl and rnewson committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    34baa46 View commit details
    Browse the repository at this point in the history
  3. Upgrade Credo to 1.4.0

    dottorblaster committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    074789f View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2020

  1. Allow drilldown for search to always be specified as list of lists

    To use multiple `drilldown` parameters users had to define
    `drilldown` multiple times to be able supply them.
    
    This caused interoperability issues as most languages require
    defining query parameters and request bodies as associative
    arrays, maps or dictionaries where the keys are unique.
    
    This change enables defining `drilldown` as a list of lists so
    that other languages can define multiple drilldown keys and values.
    
    Co-authored-by: Robert Newson <[email protected]>
    2 people authored and Bessenyei Balázs Donát committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    4240391 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#2958 from bessbd/allow-drilldown-list-of-lists

    Allow drilldown for search to always be specified as list of lists
    rnewson committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    22dbde2 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2020

  1. Configuration menu
    Copy the full SHA
    c155bd5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c49e0f View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2020

  1. Configuration menu
    Copy the full SHA
    c6940d8 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2020

  1. Configuration menu
    Copy the full SHA
    eaf6e74 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2020

  1. fix: set gen_server:call() timeout to infinity on ioq bypass

    Before the bypass existed, ioq would call `gen_server:call()`
    on hehalf of it calling module with the queueing logic in between.
    
    Commit e641a74 introduced a way to bypass any queues, but the
    delegated `gen_server:call()` there was added without a timeout
    parameter, leading to a default timeout of 5000ms.
    
    A problem manifests here when operations that are sent through
    ioq that take longer than that 5000ms timeout. In practice, these
    operations should be very rare and this timeout should be a help
    on overloaded systems. However, one sure-fire way to cause an issue
    on an otherwise idle machine is raise the max_document_size and
    store unreasonably large documents, think 50MB+ of raw JSON).
    
    Not that we recommend this, but folks have run this fine on 2.x
    before the ioq changes and it isn’t too hard to support here.
    
    By adding an `infinity` timeout delegated `gen_server:call()` in
    the queue bypasse case, this no longer applies.
    
    Thanks to Joan @woahli Touzet, Bob @rnewson Newson and
    Paul @davisp Davis for helping to track this down.
    janl committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    0eedd8b View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2020

  1. Configuration menu
    Copy the full SHA
    23b4aa7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ce22cbc View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2020

  1. Configuration menu
    Copy the full SHA
    fc6dbee View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2020

  1. Configuration menu
    Copy the full SHA
    909357e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b518f01 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2020

  1. Configuration menu
    Copy the full SHA
    6944605 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2020

  1. fix: finish_cluster failure due to missing uuid

    Resolves apache#2858
    YC authored and janl committed Jul 26, 2020
    Configuration menu
    Copy the full SHA
    a817e60 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2020

  1. added $keyMapMatch Mango operator

    Michal Borkowski authored and janl committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    f011a66 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2020

  1. Windows: provide full path to epmd

    wohali authored and janl committed Aug 3, 2020
    Configuration menu
    Copy the full SHA
    f43f78a View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2020

  1. Configuration menu
    Copy the full SHA
    e0cbe1c View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2020

  1. Unlink index pid and swallow EXIT message if present

    This should prevent unexpected exit messages arriving which crash
    couch_index_server.
    
    Patch suggested by davisp.
    
    Closes apache#3061.
    rnewson authored and Robert Newson committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    57e3501 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#3068 from apache/couch_index_server_crash

    Unlink index pid and swallow EXIT message if present
    rnewson committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    c66694f View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2020

  1. Configuration menu
    Copy the full SHA
    7c9094c View commit details
    Browse the repository at this point in the history
  2. Don't crash couch_index_server if the db isn't known yet

    If a ddoc is added immediately after database creation (_users and
    _replicator when couchdb is used in a multi-tenant fashion), we can
    crash couch_index_server in handle_db_event, as mem3_shards:local
    throws an error.
    Robert Newson committed Aug 14, 2020
    Configuration menu
    Copy the full SHA
    5004f99 View commit details
    Browse the repository at this point in the history
  3. Merge pull request apache#3075 from apache/couch_index_server_crash2

    Don't crash couch_index_server if the db isn't known yet
    rnewson committed Aug 14, 2020
    Configuration menu
    Copy the full SHA
    7d9f115 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2020

  1. fixup: Build couch_js for redhat linux

    When building couch_js in RHEL, there is one error occurring with "undefined
     reference to symbol '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3'".
    This commit is to adjust binding library to address this issue.
    jiangphcn committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    11e8d0d View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#3056 from apache/build-couchjs-for-redhat-l…

    …inux
    
    fixup: Build couch_js for redhat linux
    jiangphcn committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    3091c93 View commit details
    Browse the repository at this point in the history
  3. Handle jiffy returning an iolist when encoding atts_since query string

    If we don't handle it, it throws an error when trying to encode the full URL
    string, for example:
    
    ```
    badarg,[
     {mochiweb_util,quote_plus,2,[{file,"src/mochiweb_util.erl"},{line,192}]},
     {couch_replicator_httpc,query_args_to_string,2,[{file,"src/couch_replicator_httpc.erl"},{line,421}]},
     {couch_replicator_httpc,full_url,2,[{file,"src/couch_replicator_httpc.erl"},{line,413}]},
     {couch_replicator_api_wrap,open_doc_revs,6,[{file,"src/couch_replicator_api_wrap.erl"},{line,255}]}
    ]
    ```
    
    This is also similar to what we did for open_revs encoding: apache@a2d0c42
    nickva committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    bdfb129 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2020

  1. bypass partition query limit for mango

    When partition_query_limit is set for couch_mrview, it limits how many
    docs can be scanned when executing partitioned queries. But this limits
    mango's doc scans internally. This leads to documents not being scanned
    to fulfill a query. This fixes:
    apache#2795
    tonysun83 committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    7dbd0ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3004513 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2020

  1. Merge pull request apache#3105 from apache/fix-partition-query-limit

    bypass partition query limit for mango
    tonysun83 committed Aug 28, 2020
    Configuration menu
    Copy the full SHA
    ac69520 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2020

  1. fix bookmark passing with text indexes

    Previously, we passed in the unpacked version of the bookmark with
    the cursor inside the options field. This worked fine for _find because
    we didn't need to return it to the user. But for _explain, we return
    the value back as unpacked tuple instead of a string and jiffy:encode/1
    complains. Now we correctly extract the bookmark out of options, unpack
    it, and then pass it separately in it's own field. This way options
    retains it's original string form for the user so that invalid_ejson
    is not thrown.
    tonysun83 committed Aug 31, 2020
    Configuration menu
    Copy the full SHA
    c14569c View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#3116 from apache/fix-explain-text-indexes

    fix bookmark passing with text indexes
    tonysun83 committed Aug 31, 2020
    Configuration menu
    Copy the full SHA
    0c3c4b6 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2020

  1. Allow to continue to cleanup search index even if there is invalid ddoc

    In some situation where design document for search index created by
    customer is not valid, the _search_cleanup endpoint will stop to clean
    up. This will leave some search index orphan. The change is to allow
    to continue to clean up search index even if there is invalid design
    document for search.
    jiangphcn committed Sep 1, 2020
    Configuration menu
    Copy the full SHA
    253d64a View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#3118 from apache/dreyfus-cleanup-with-inval…

    …id-ddoc
    
    Allow to continue to cleanup search index even if there is invalid design document
    jiangphcn committed Sep 1, 2020
    Configuration menu
    Copy the full SHA
    27eefab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a57b717 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2020

  1. Configuration menu
    Copy the full SHA
    d72a5f5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request apache#3125 from apache/improve_jwtf_keystore_erro…

    …r_handling
    
    Improve jwtf keystore error handling
    rnewson committed Sep 3, 2020
    Configuration menu
    Copy the full SHA
    29a5dea View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2020

  1. Make COPY doc return only one "ok"

    bessbd authored and janl committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    e7822a5 View commit details
    Browse the repository at this point in the history
  2. Add option to delay responses until the end

    When set, every response is sent once fully generated on the server
    side. This increases memory usage on the nodes but simplifies error
    handling for the client as it eliminates the possibility that the
    response will be deliberately terminated midway through due to a
    timeout.
    
    The config value can be changed at runtime without impacting any
    in-flight responses.
    rnewson committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    881f52f View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2020

  1. Merge pull request apache#3129 from apache/delay_response_until_end

    Add option to delay responses until the end
    rnewson committed Sep 7, 2020
    Configuration menu
    Copy the full SHA
    c625517 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2020

  1. Handle malformed URLs when stripping URL creds in couch_replicator

    Previously there was an error thrown which prevented emitting _scheduler/docs
    responses. Instead of throwing an error, return `null` if the URL cannot be
    parsed.
    nickva committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    e4d577b View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2020

  1. Configuration menu
    Copy the full SHA
    45ddc93 View commit details
    Browse the repository at this point in the history
  2. add remonitor code to DOWN message (apache#3144)

    Smoosh monitors the compactor pid to determine when the compaction jobs
    finishes, and uses this for its idea of concurrency. However, this isn't
    accurate in the case where the compaction job has to re-spawn to catch up on
    intervening changes since the same logical compaction job continues with
    another pid and smoosh is not aware. In such cases, a smoosh channel with
    concurrency one can start arbitrarily many additional database compaction jobs.
    
    To solve this problem, we added a check to see if a compaction PID exists for
    a db in `start_compact`. But wee need to add another check because this check
    is only for shard that comes off the queue. So the following can still occur:
    
    1. Enqueue a bunch of stuff into channel with concurrency 1
    2. Begin highest priority job, Shard1, in channel
    3. Compaction finishes, discovers compaction file is behind main file
    4. Smoosh-monitored PID for Shard1 exits, a new one starts to finish the job
    5. Smoosh receives the 'DOWN' message, begins the next highest priority job,
    Shard2
    6. Channel concurrency is now 2, not 1
    
    This change adds another check into the 'DOWN' message so that it checks for
    that specific shard. If the compaction PID exists then it means a new process
    was spawned and we just monitor that one and add it back to the queue. The
    length of the queue does not change and therefore we won’t spawn new
    compaction jobs.
    tonysun83 committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    a94e693 View commit details
    Browse the repository at this point in the history
  3. Fix buffer_response=true (apache#3145)

    We need to call StartFun as it might add headers, etc.
    rnewson committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    1c6a738 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2020

  1. Configuration menu
    Copy the full SHA
    ac33e85 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

  1. fix race condition (apache#3150)

    This fixes a94e693 because a race
    condition exisited where the 'DOWN' message could be received
    before the compactor pid is spawned. Adding a synchronous call to
    get the compactor pid guarantees that the couch_db_updater process
    handling of finish_compaction has occurred.
    tonysun83 committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    168d635 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2020

  1. Configuration menu
    Copy the full SHA
    6169104 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Configuration menu
    Copy the full SHA
    3b815a6 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2020

  1. Configuration menu
    Copy the full SHA
    796d714 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2020

  1. Add module tag to elixir test cases (apache#3178)

    Some elixir test cases don't have actual module tag. Add tags to
    help include or exclude them in CI test.
    jiangphcn committed Sep 30, 2020
    Configuration menu
    Copy the full SHA
    1719500 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2020

  1. Configuration menu
    Copy the full SHA
    fb36cc6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f21d601 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. Configuration menu
    Copy the full SHA
    de35260 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2020

  1. Configuration menu
    Copy the full SHA
    9564023 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2020

  1. Configuration menu
    Copy the full SHA
    90d4cf7 View commit details
    Browse the repository at this point in the history