Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The current VDU function for user doc is too strict. It accesses the roles and type fields of the current version of the document. This makes it impossible for the user to correct their users' documents. For example if the user have a document without type field they would have to delete the doc and recreate it again. We should allow adding missing fields. Also there is no reason to restrict the update of a type field from incorrect value to the correct one (currently it suppose to have value 'user').

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user iilyak opened a pull request:

          https://github.com/apache/couchdb-couch/pull/211

          Allow fixing users' documents

          Allow adding missing fields:

          • type
          • roles

          Allow update of the type field from incorrect value to the correct one
          (currently it suppose to have value 'user').

          COUCHDB-3231

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/cloudant/couchdb-couch 78142-allow-user-to-correct-invalid-user-docs

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/couchdb-couch/pull/211.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #211


          commit 5763fd772e1dad300cbe66a7b8c48d62bd0417e6
          Author: ILYA Khlopotov <iilyak@apache.org>
          Date: 2016-11-10T23:02:51Z

          Allow fixing users' documents

          Allow adding missing fields:

          • type
          • roles

          Allow update of the type field from incorrect value to the correct one
          (currently it suppose to have value 'user').

          COUCHDB-3231


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user iilyak opened a pull request: https://github.com/apache/couchdb-couch/pull/211 Allow fixing users' documents Allow adding missing fields: type roles Allow update of the type field from incorrect value to the correct one (currently it suppose to have value 'user'). COUCHDB-3231 You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch 78142-allow-user-to-correct-invalid-user-docs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb-couch/pull/211.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #211 commit 5763fd772e1dad300cbe66a7b8c48d62bd0417e6 Author: ILYA Khlopotov <iilyak@apache.org> Date: 2016-11-10T23:02:51Z Allow fixing users' documents Allow adding missing fields: type roles Allow update of the type field from incorrect value to the correct one (currently it suppose to have value 'user'). COUCHDB-3231
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 5763fd772e1dad300cbe66a7b8c48d62bd0417e6 in couchdb-couch's branch refs/heads/master from ILYA Khlopotov
          [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=5763fd7 ]

          Allow fixing users' documents

          Allow adding missing fields:

          • type
          • roles

          Allow update of the type field from incorrect value to the correct one
          (currently it suppose to have value 'user').

          COUCHDB-3231

          Show
          jira-bot ASF subversion and git services added a comment - Commit 5763fd772e1dad300cbe66a7b8c48d62bd0417e6 in couchdb-couch's branch refs/heads/master from ILYA Khlopotov [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=5763fd7 ] Allow fixing users' documents Allow adding missing fields: type roles Allow update of the type field from incorrect value to the correct one (currently it suppose to have value 'user'). COUCHDB-3231
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/couchdb-couch/pull/211

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/couchdb-couch/pull/211

            People

            • Assignee:
              Unassigned
              Reporter:
              iilyak ILYA
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development