nextcloud / nextcloud/circles

Cannot delete circle or remove user from a circle Error 302

Open
#813 18 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Steps to reproduce
  1. Create a circle and add users to it
  2. Remove user from the circle or delete the whole circle, which seems to be processed correctly on the user interface
  3. Reload the contacts page and see that the circle appears again or the recently removed users are back as members or a circle respectively.
  4. After that I checked circles with .occ

sudo -u www-data php /var/www/nextcloud/occ circles:check

Result:

### Checking loopback address.
. The loopback setting is mandatory and can be checked locally.
. The address you need to define here must be a reachable url of your Nextcloud from the hosting server itself.
. By default, the App will use the entry 'overwrite.cli.url' from 'config/config.php'.

* testing current address: http://example.com
- GET request on http://example.com/index.php/csrftoken: 302

- You do not have a valid loopback address setup right now.
Expected behaviour

circle shall be removed, if the removal operation hat been performed, or the users shall be removed from the circle respectively
Actual behaviour

circle and user's membership are retained and are visible again with the next page refresh

Server Configuration

Operating system:
Ubuntu 20.04

Web server:
Apache

Database:
MySQL 10.5.12

PHP version:
8.0.10

Nextcloud version:
22.1.1

Where did you install Nextcloud from:
tar-ball from download page

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 with the contacts-page removal flow and the occ circles:check entry point. Inspect config/config.php, especially overwrite.cli.url, and reproduce the 302 response at index.php/csrftoken. Done means deleting a circle or membership remains effective after reloading the contacts page and the loopback check succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, javascript, mysql, php
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.