nextcloud / nextcloud/contacts

Don't allow users to delete their default addressbook

Open
#4,882 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
Dominant language
JavaScript
Stars
642
Forks
220
Avg merge
14h 39m
Merged PRs (30d)
51

Description

A user of my Nextcloud instance deleted their default addressbook and was then unable to create new contacts. I fixed the problem by recreating it with the command occ dav:create-addressbook <user> contacts but I don't think it should be possible to delete the default address book in the first place, just as it is not possible to delete the system address book.

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 tracing the address-book deletion handling and the occ dav:create-addressbook <user> contacts entry point mentioned in the report. Confirm where the default address book is identified, then verify that it cannot be deleted and that users can still create new contacts afterward.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.