[
https://issues.apache.org/jira/browse/COUCHDB-2243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965602#comment-14965602
]
ASF subversion and git services commented on COUCHDB-2243:
----------------------------------------------------------
Commit 852d6ae59b294ccc7dbbca3304ec13c479bcd9fd in couchdb-fauxton's branch
refs/heads/master from [~benkeen]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-fauxton.git;h=852d6ae ]
Improve db page error handling
This PR fixes an old bug with the databases page where if one
database query fails, the remaining responses that haven't been
returned don't get populated and the database table has a lot
of incomplete rows.
Now the individual failed database rows don't affect the others and
show a "This database failed to load" message to make it clear to
the user.
The actions.js refactor code was needed due to the following.
FauxtonAPI.when() behaves in an unexpected way: when passed an
array of promises it fires the .always() in two conditions:
1. When all promises are resolved, or,
2. When ONE fails
What was happening was that when a db request failed, it didn't
fire any of the remainder requests, which is why the table would
appear partly empty.
Closes COUCHDB-2243
> Fauxton shows no database info in list on first 401 failure
> -----------------------------------------------------------
>
> Key: COUCHDB-2243
> URL: https://issues.apache.org/jira/browse/COUCHDB-2243
> Project: CouchDB
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Fauxton
> Reporter: Alexander Shorin
> Assignee: Ben Keen
> Attachments: Screen Shot 2015-09-29 at 9.44.15 AM.png
>
>
> 1. Fix the Admin Party
> 2. Create few more dbs (let's say 10)
> 3. Setup for the security for the any to forbid access by anonymous users
> (add any user to members). To not fall on edge case, better pick database
> from top of the database list
> 4. Logout
> 5. If database lists didn't refresh, refresh it manually
> You'll see that almost all databases has no size, no docs and no update seq.
> Including those which you can't access being unauthorized and those which you
> can. However, if you'll move between pages, Fauxton will be able to show all
> the data correctly.
> Fauxton @ 2abdb2c
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)