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

.ini file chaining not properly reset by -n switch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10
    • 0.10
    • None
    • None
    • Ubuntu Linux 09.10 (karmic) unreleased

    Description

      I've added as line 220 in /usr/bin/couchdb:

      echo "startarguments: $start_arguments"

      Now, when I do:

      /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b

      I get:

      Apache CouchDB has started, time to relax.
      eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"

      which suggests to me that the -n switch in this case does not actually reset the .ini chain.

      This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.

      Attachments

        1. background_start_config_reset.patch
          0.6 kB
          Adam Kocoloski

        Activity

          People

            Unassigned Unassigned
            thisfred eric casteleijn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: