Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-998

aggressive use of encodeURIComponent on view names inside Futon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0, 1.0.1, 1.0.2, 1.1, 1.2, 2.0.0
    • 1.0.2, 1.1, 1.2, 2.0.0
    • Futon
    • None
    • New Contributors Level (Easy)

    Description

      Steps to reproduce:

      1. Enter a database containing a design document view
      2. Select one of the design document views from the view list dropdown
      3. Navigate back to the Overview section
      4. Navigate back to the database you were just in

      As you can tell by looking at the Location bar, the view name has had encodeURIComponent applied to it, and so the view won't be found by CouchDB. I'm going to attach a patch that fixes the issue for me, but it needs review in case the fix needs to happen in some other place inside Futon. I'm judging this patch based on the way the view switching works in the view list dropdown.

      Attachments

        1. futon.browse.js.patch
          0.5 kB
          Gordon Stratton

        Activity

          People

            rnewson Robert Newson
            strattg Gordon Stratton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified