circles icon indicating copy to clipboard operation
circles copied to clipboard

Members (users) not shown correctly in Team

Open ericfischereu opened this issue 3 weeks ago • 8 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Create a team
  2. add members (either internal or guest users)
  3. reload the page

Expected behaviour

All members are listed.

Actual behaviour

Only the owner, teams and I guess groups are listed.

Server configuration

Company instance

Browser

Browser name: Zen

Browser version: 1.17.12b (Firefox 145.0.2) (64-Bit)

Operating system: Linux Mint

Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...

ericfischereu avatar Dec 05 '25 15:12 ericfischereu

admin, alice, and bob are part of the cercleDeTest. But clicking on the Team shows only one member.

https://github.com/user-attachments/assets/e68f9b0f-b075-466c-aab3-7c1cda5c13ad

maximelehericy avatar Dec 08 '25 10:12 maximelehericy

On my instance (NC 31.0.12, circles 31.0) as long as NOT selected the number of members behind a circle/team is correct, but if I click on a circle, the number changes to 1 and I see only myself as member. The XHR Requests contains also only me as member.

Data of XHR GET https://****/ocs/v2.php/apps/circles/circles/SPv****/members. The circle has 10 members. But only my account is in the answer.
	"ocs": {
		"meta": {
			"status": "ok",
			"statuscode": 200,
			"message": "OK"
		},
		"data": [
			{
				"id": "1Hs****",
				"circleId": "SPv****",
				"singleId": "Mq9****",
				"userId": "admin",
				"userType": 1,
				"instance": "****",
				"local": true,
				"level": 1,
				"status": "Member",
				"displayName": "Alex****",
				"displayUpdate": 1765799180,
				"notes": {
					"invitedBy": {
						"id": "xfA****",
						"userId": "u****",
						"userType": 1,
						"displayName": "V****",
						"instance": "****",
						"basedOn": {
							"id": "xfAw****",
							"name": "user:u****",
							"displayName": "V****",
							"sanitizedName": "",
							"source": 1,
							"population": 0,
							"config": 1,
							"description": "",
							"url": "/apps/contacts/direct/circle/xfA****",
							"creation": 1731398118,
							"initiator": null
						}
					}
				},
				"contactId": "",
				"contactMeta": "",
				"joined": 1765799180,
				"invitedBy": {
					"id": "xfA****",
					"userId": "u****",
					"userType": 1,
					"displayName": "V****",
					"instance": "****",
					"basedOn": {
						"id": "xfA****",
						"name": "user:u****",
						"displayName": "V****",
						"sanitizedName": "",
						"source": 1,
						"population": 0,
						"config": 1,
						"description": "",
						"url": "/apps/contacts/direct/circle/xfA****",
						"creation": 1731398118,
						"initiator": null
					}
				},
				"basedOn": {
					"id": "Mq9****",
					"name": "user:admin:Mq9****",
					"displayName": "Alex****",
					"sanitizedName": "",
					"source": 1,
					"population": 0,
					"config": 1,
					"description": "",
					"url": "/apps/contacts/direct/circle/Mq9****",
					"creation": 1731070038,
					"initiator": null,
					"owner": {
						"id": "Mq9****",
						"circleId": "Mq9****",
						"singleId": "Mq9****",
						"userId": "admin",
						"userType": 1,
						"instance": "****",
						"local": true,
						"level": 9,
						"status": "Member",
						"displayName": "Alex****",
						"displayUpdate": 1765799180,
						"notes": [],
						"contactId": "",
						"contactMeta": "",
						"joined": 1731070038
					}
				}
			}
		]
	}
}

Edit: occ circles:members:list <id> also shows only 1 member. But in the Database all members are there (select count(*) from oc_circles_member where circle_id='SPvK***' => 10)

alx-tuilmenau avatar Dec 15 '25 12:12 alx-tuilmenau

I have the same issue. We had an old owncloud instance named https://system1.domain.ca/. We installed a new Nextcloud instance with version 32.0.3, the Nextcloud instance was originally referred to as https://system2.domain.ca/. We created Teams (circles) and added members. Everything was working fine until our migration. We decommissioned the old Owncloud instance and changed the url for the Nextcloud instance from https://system2.domain.ca/ to https://system1.domain.ca/ After this change the Teams shows initially the number of original members, but if we click on the Teams, the members are not shown and the number of members changes to 1. Also the members are not able to reach their shared resources.

admintechblog avatar Dec 15 '25 19:12 admintechblog

I diff'ed the old and new version and found the error is caused by the 2 new lines in the file `lib/Db/CoreQueryBuilder.php" 819/820 added in the last update. Commenting out these 2 lines fixes the problem. But I can't find anything except the commit.

https://github.com/nextcloud/circles/commit/56d978d6eaf000baac2d4347eff64adfa804e650

alx-tuilmenau avatar Dec 16 '25 08:12 alx-tuilmenau

I diff'ed the old and new version and found the error is caused by the 2 new lines in the file `lib/Db/CoreQueryBuilder.php" 819/820 added in the last update. Commenting out these 2 lines fixes the problem. But I can't find anything except the commit.

56d978d

I can confirm the issue. (NC 32.0.3 and Teams 32.0.0)

Thanks @alx-tuilmenau, your quick fix seems to work. The Lines are 802 and 803 though.

jodergrosse avatar Dec 16 '25 13:12 jodergrosse

@jodergrosse sorry, i used the line numbers from stable31 (because i'm still on NC 31), but linked to master...

alx-tuilmenau avatar Dec 16 '25 13:12 alx-tuilmenau

This issue appeared for us when I upgraded from NC 32.0.2 to NC 32.0.3. I reverted to NC 32.0.2 from our backups and the issue is gone.

admintechblog avatar Dec 16 '25 19:12 admintechblog

For us also this issue appeared for us when we upgraded from NC 32.0.2 to NC 32.0.3. Thanks @alx-tuilmenau, your quick fix works for me.

uhhbeku avatar Dec 17 '25 10:12 uhhbeku