Unable to create Personal Circles
Nobody has claimed this yet.
- 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 :
- Got to Circles
- Click on Create a new circle
- Choose a name for the circle
- Select a circle type "Create a personal circle"
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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