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

$.couch.replicate throws error when cancelling continous replication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0.3, 1.1, 1.2
    • Replication
    • None
    • New Contributors Level (Easy)

    Description

      Calling $.couch.replicate with

      { continous: true, cancel: true }

      results in an alert error message. Should be quiet and call success handler.

      Patch:

      diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js
      index 114e580..14d2506 100644
      — a/share/www/script/jquery.couch.js
      +++ b/share/www/script/jquery.couch.js
      @@ -563,7 +563,7 @@

      replicate: function(source, target, ajaxOptions, repOpts) {
      repOpts = $.extend(

      {source: source, target: target}

      , repOpts);

      • if (repOpts.continuous) {
        + if (repOpts.continuous && !repOpts.cancel) { ajaxOptions.successStatus = 202; }

        ajax({

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              felixhummel Felix Hummel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: