[ 
https://issues.apache.org/jira/browse/COUCHDB-3224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886206#comment-15886206
 ] 

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_r103267380
  
    --- Diff: app/addons/documents/doc-editor/components.react.jsx ---
    @@ -227,7 +227,7 @@ var AttachmentsPanelButton = React.createClass({
         var doc = this.props.doc.get('_id');
     
         return _.map(this.props.doc.get('_attachments'), function (item, 
filename) {
    -      var url = FauxtonAPI.urls('document', 'attachment', db, doc, 
app.utils.safeURLName(filename));
    +      var url = FauxtonAPI.urls('document', 'attachment', 
encodeURIComponent(db), doc, app.utils.safeURLName(filename));
    --- End diff --
    
    Could you remove `safeURLName` we don't need it if we use the 
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)

Reply via email to