Skip to content

Conversation

@cesine
Copy link
Member

@cesine cesine commented Jan 19, 2022

Using https://github.com/FieldDB/CorpusWebService/pull/11/commits

 / deprecated
       syncDetails
         should try to create all corpora listed in the user:
     AssertionError: expected 403 to be one of [ 401, 404 ]
      at /home/runner/work/AuthenticationWebService/AuthenticationWebService/test/routes/deprecated-spec.js:1570:36
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

http://localhost:5984/_utils/#database/_users/org.couchdb.user%3Atest1645515886741

{
  "_id": "org.couchdb.user:test1645515886741",
  "_rev": "3-641d940ebf56bfb1373ce8ab4279d06b",
  "name": "test1645515886741",
  "roles": [
    "fielddbuser",
    "georgiantogether_user",
    "public-firstcorpus_reader",
    "test1645515886741-firstcorpus_admin",
    "test1645515886741-firstcorpus_commenter",
    "test1645515886741-firstcorpus_reader",
    "test1645515886741-firstcorpus_writer",
    "test1645515886741-kartuli_admin",
    "test1645515886741-kartuli_commenter",
    "test1645515886741-kartuli_reader",
    "test1645515886741-kartuli_writer"
  ],
  "type": "user",
  "password_scheme": "pbkdf2",
  "iterations": 10,
  "derived_key": "f039fe780627510ee3e3e3ef7d790e886b8713b4",
  "salt": "195259447366a884ab444fe2f93d00a1"
}

Root cause: the user Is missing the new roles after running sync details.

  • data design doc is not replicating from the new_testing_corpus but the other design docs are there maybe due to the errors of document doesnt eval
 1) / deprecated
       /register
         should register a new user:

      should create the design docs data for test1764711326876-kartuli
      + expected - actual

       {
      -  "error": "not_found"
      -  "reason": "missing"
      +  "rows": [
      +    {
      +      "key": "Corpus"
      +      "value": 1
      +    }
      +    {
      +      "key": "CorpusMask"

http://localhost:5984/_utils/#/database/new_testing_corpus/_all_docs

Screenshot 2025-12-02 at 4 47 45 PM

vs https://corpusdev.example.org/_utils/database.html?new_testing_corpus

Screenshot 2025-12-02 at 4 48 17 PM

@cesine cesine changed the title upgrade couchdb to 3.2.1 upgrade couchdb to 3.1.2 Feb 22, 2022
@cesine cesine merged commit 58c7a2f into main Dec 4, 2025
1 of 3 checks passed
@cesine cesine deleted the upgrade/couchdb branch December 4, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants