nextcloud / nextcloud/circles

circles Could not change the member level to

Open
#943 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi, from cantacs, opening a circle, i add a member (ldap user account). Now try to promote user to any of the other levels (Admin, Moderator or sole owner) the interfa dispplay this error:

Could not change the member level to ...

the command ./occ circles:check give:

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: https://______/
  • GET request on https:/_______/index.php/csrftoken: 200
  • POST request on https://___________/index.php/apps/circles/async/test-dummy-token/: 200
  • Creating async FederatedEvent af250b21-5811-4a82-a364-9a6b5e9976f6
  • Waiting for async process to finish (5s)
  • Checking status on FederatedEvent verify=17 manage=42
  • Loopback address looks good

i have also modified config file to include the trailing slash into overwrite.cli.url , but same result.

nextcloud version is: 23.0.2
circles version: 23.0.1

Nextcloud log file give this:

{"reqId":"IjiBz1Maw4Hrc8kFtaWo","level":3,"time":"2022-03-07T08:29:10+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"3fcf8b4e-2aee-102b-9824-b50c0227b70f","app":"circles","method":"PUT","url":"/ocs/v2.php/apps/circles/circles/fb22bbdbbfcb89/members/qK2qxZ5BQdaPqYbCChqDR5e7UonR1Hw/level","message":"{"circleId":"fb22bbdbbfcb89","memberId":"qK2qxZ5BQdaPqYbCChqDR5e7UonR1Hw","level":8}","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.105 Safari/537.36","version":"23.0.2.1","exception":{"Exception":"OCA\Circles\Exceptions\FederatedItemBadRequestException","Message":"This level cannot be edited","Code":400,"Trace":[{"file":"/var/www/owncloud.uniroma2.it/htdocs/apps/circles/lib/Service/FederatedEventService.php","line":172,"function":"verify","class":"OCA\Circles\FederatedItems\MemberLevel","type":"->","args":[{"class":"OCA\Circles\Model\Federated\FederatedEvent"}]},{"file":"/var/www/owncloud.uniroma2.it/htdocs/apps/circles/lib/Service/MemberService.php","line":337,"function":"newEvent","class":"OCA\Circles\Service\FederatedEventService","type":"->","args":[{"class":"OCA\Circles\Model\Federated\FederatedEvent"}]},{"file":"/var/www/owncloud.uniroma2.it/htdocs/apps/circles/lib/Controller/LocalController.php","line":350,"function":"memberLevel","class":"OCA\Circles\Service\MemberService","type":"->","args":["qK2qxZ5BQdaPqYbCChqDR5e7UonR1Hw",8]},{"file":"/var/www/owncloud.uniroma2.it/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"memberLevel","class":"OCA\Circles\Controller\LocalController","type":"->","args":["fb22bbdbbfcb89","qK2qxZ5BQdaPqYbCChqDR5e7UonR1Hw",8]},{"file":"/var/www/owncloud.uniroma2.it/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Circles\Controller\LocalController"},"memberLevel"]},{"file":"/var/www/owncloud.uniroma2.it/htdocs/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"class":"OCA\Circles\Controller\LocalController"},"memberLevel"]},{"file":"/var/www/owncloud.uniroma2.it/htdocs/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Circles\Controller\LocalController","memberLevel",{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"circleId":"fb22bbdbbfcb89","memberId":"qK2qxZ5BQdaPqYbCChqDR5e7UonR1Hw","_route":"ocs.circles.Local.memberLevel"}]},{"file":"/var/www/owncloud.uniroma2.it/htdocs/ocs/v1.php","line":62,"function":"match","class":"OC\Route\Router","type":"->","args":["/ocsapp/apps/circles/circles/fb22bbdbbfcb89/members/qK2qxZ5BQdaPqYbCChqDR5e7UonR1Hw/level"]},{"file":"/var/www/owncloud.uniroma2.it/htdocs/ocs/v2.php","line":23,"args":["/var/www/owncloud.uniroma2.it/htdocs/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/owncloud.uniroma2.it/htdocs/apps/circles/lib/FederatedItems/MemberLevel.php","Line":111,"CustomMessage":"{"circleId":"fb22bbdbbfcb89","memberId":"qK2qxZ5BQdaPqYbCChqDR5e7UonR1Hw","level":8}"}}

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 apps/circles/lib/FederatedItems/MemberLevel.php at line 111 and trace the reported PUT through FederatedEventService.php, MemberService.php, and LocalController.php. Reproduce changing an LDAP member's level and verify that Admin, Moderator, and sole-owner promotions complete without the reported “This level cannot be edited” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
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.