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

Config settings input validation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.2
    • None
    • Database Core
    • Regular Contributors Level (Easy to Medium)

    Description

      Today I received a bug report from a user who thought CouchDB might be relaxing and evaluate an arithmetic expression in the config. (That makes sense, since it seems to evaluate erlang terms elsewhere.)

      https://getsatisfaction.com/iriscouch/topics/my_couchdb_is_broken_after_putting_a_badarg_for_a_configuration_value

      It would be nice for CouchDB to validate config input, particularly when bad values permanently take it offline. (In this case, it returns 500 for all subsequent requests.)

      IMO, a good bang-for-buck is to have three basic value types:

      1. String
      2. Erlang tuple
      3. Integer

      And each setting knows what type it must be.

      Attachments

        Issue Links

          Activity

            People

              jhs Jason Smith
              jhs Jason Smith
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: