Skip to content

Send a better error when opening a db without authorisation#542

Merged
rnewson merged 1 commit into
masterfrom
3426-forbidden-error
May 26, 2017
Merged

Send a better error when opening a db without authorisation#542
rnewson merged 1 commit into
masterfrom
3426-forbidden-error

Conversation

@rnewson
Copy link
Copy Markdown
Member

@rnewson rnewson commented May 26, 2017

COUCHDB-3426

Overview

Send a better error message when the replicator attempts to open a database it is not authorised to open.

Testing recommendations

Create a user, create a database, change the security object of the database to exclude the user, then ask the replicator to replicate to that database as the user. You should see a 'forbidden' message in _scheduler/jobs instead of the misleading db_not_found message we currently send.

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;

Copy link
Copy Markdown
Member

@eiri eiri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@rnewson rnewson merged commit bfad30a into master May 26, 2017
@rnewson rnewson deleted the 3426-forbidden-error branch May 26, 2017 14:29
nickva added a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
This RFC describes how background index building works in CouchDB 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants