You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2017/12/16 20:10:45 UTC

[GitHub] popojargo opened a new issue #1037: Enhancement: Hide non authorized databases from database list

popojargo opened a new issue #1037: Enhancement: Hide non authorized databases from database list
URL: https://github.com/apache/couchdb-fauxton/issues/1037
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   <!--- If you're suggesting a change/improvement, tell us how it should work -->
   
   I think we should hide non-authorized databases from the database list instead of showing an error message (Database failed to load...)
   
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected behavior -->
   <!--- If suggesting a change/improvement, explain the difference from current behavior -->
   
   If  a CouchDB's user doesn't have the permissions to a set of databases, they will be shown and they'll have a message saying that the database failed to load.
   
   So for example, if user X has access to the last database. He has to go through all the databases pages (which can be long if you have multiple databases). I think it would be easier for the user if only the databases that he has access to are shown.
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   a) When we receive a 403 HTTP code  from database requests, we should remove the database entry from the list. 
   
   b) We could maybe have an option to show only the databases that the user has access. Since CouchDB does allow all the users to the see the database list, it's up to the user to decide if they want to see them or not even if they don't have access to it.
   
   What do you think about this proposal?
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services