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

Several backports from master #948

Merged
merged 7 commits into from
Nov 1, 2017
Merged

Several backports from master #948

merged 7 commits into from
Nov 1, 2017

Commits on Oct 31, 2017

  1. Return username on POST to /_session

    When logging in with admin credentials and no user doc is
    present, the name was `null`. Example:
    
    `{"ok":true,"name":null,"roles":["_admin"]}`
    
    closes COUCHDB-1356
    robertkowalski authored and kxepal committed Oct 31, 2017
    Configuration menu
    Copy the full SHA
    978ffba View commit details
    Browse the repository at this point in the history
  2. Merge default update response headers with custom ones

    COUCHDB-1447
    kxepal committed Oct 31, 2017
    Configuration menu
    Copy the full SHA
    d27b2e3 View commit details
    Browse the repository at this point in the history
  3. Reduce duplicated code

    kxepal committed Oct 31, 2017
    Configuration menu
    Copy the full SHA
    a7fb468 View commit details
    Browse the repository at this point in the history
  4. Throw if parse_revs is not a list

    COUCHDB-2845
    rnewson authored and kxepal committed Oct 31, 2017
    Configuration menu
    Copy the full SHA
    6d5243c View commit details
    Browse the repository at this point in the history
  5. Respond with HTTP 400 Bad Request on invalid revision number

    CouchDB should return HTTP 400 instead of HTTP 500 response
    when revision number isn't integer like "foo-bar" as like as it does
    for completely invalid revisions like "foo".
    
    COUCHDB-2375
    kxepal committed Oct 31, 2017
    Configuration menu
    Copy the full SHA
    8d784c2 View commit details
    Browse the repository at this point in the history
  6. Implement /db/_bulk_get endpoint

    COUCHDB-2310
    kxepal committed Oct 31, 2017
    Configuration menu
    Copy the full SHA
    de9f6e4 View commit details
    Browse the repository at this point in the history
  7. Improve checks for db admin/member

    - Use lists:member/2 to check if user name is in list
    - Throw forbidden error if user is authenticated on db membership check
    - Normalize terminology readers vs members
    - Make checks more Erlang-ish
    
    COUCHDB-2534
    kxepal committed Oct 31, 2017
    Configuration menu
    Copy the full SHA
    42254f0 View commit details
    Browse the repository at this point in the history