[
https://issues.apache.org/jira/browse/COUCHDB-3224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15927954#comment-15927954
]
ASF GitHub Bot commented on COUCHDB-3224:
-----------------------------------------
Github user garrensmith commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/802#discussion_r106408017
--- Diff: app/addons/databases/actions.js ---
@@ -155,7 +155,7 @@ export default {
type: 'success',
clear: true
});
- var route = FauxtonAPI.urls('allDocs', 'app',
app.utils.safeURLName(databaseName), '?limit=' + Resources.DocLimit);
+ var route = FauxtonAPI.urls('allDocs', 'app',
encodeURIComponent(databaseName), '?limit=' + Resources.DocLimit);
--- End diff --
Could you rather use this function
https://github.com/apache/couchdb-fauxton/blob/master/app/addons/documents/base.js#L40
and then you don't need to encodeURIComponent
> Fauxton not correctly display database with "-" and "/" symbol in name
> ----------------------------------------------------------------------
>
> Key: COUCHDB-3224
> URL: https://issues.apache.org/jira/browse/COUCHDB-3224
> Project: CouchDB
> Issue Type: Bug
> Components: Fauxton
> Reporter: Sergey Safarov
>
> Fauxton cannot display database with "-" symbol in name and cannot display
> view with "/" simbol in database name.
> Tu reproduce execute "curl -X PUT
> http://127.0.0.1:5984/mytest%2Fdata%2Fbase-201609" ant try open this database
> via fauxton.
> Also if you create view for this database then this view wont work.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)