nextcloud / nextcloud/circles

Unable to create Personal Circles

Open
#570 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs info
Dominant language
JavaScript
Stars
177
Forks
68
Avg merge
2d 22h
Merged PRs (30d)
60

Description

With the Circles version 0.20.2, we are unable to create Personal Circle.

Steps to reproduce :

  1. Got to Circles
  2. Click on Create a new circle
  3. Choose a name for the circle
  4. Select a circle type "Create a personal circle"
  5. Click on Creation

An error pop up appears and in the log we have :
[circles] Fatal: {"type":"1","name":"Test_upgrade_20_bis","error":"An exception occurred while executing 'INSERT INTO "oc_circle_circles" ("creation", "unique_id", "long_id", "name", "alt_name", "description", "contact_addressbook", "contact_groupname", "settings", "type") VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["2021-03-12 09:04:08", "2228b76d41ec64", "2228b76d41ec645f73e9191895588aaa57374ee47b7b1354", "Test_upgrade_20_bis", "", "", 0, "", "[]", 1]:\n\nSQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "oc_circle_circles_pkey"\nDETAIL: Key (id)=(9) already exists."}

PUT /index.php/apps/circles/v1/circles

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed Circles 0.20.2 steps and inspect the PUT /index.php/apps/circles/v1/circles request alongside the PostgreSQL duplicate-key log. Trace why creating a personal circle attempts to reuse id 9; done means a personal circle is created successfully without the unique-constraint error.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.