nextcloud / nextcloud/calendar

Calendar - error when creating event with an invited circle containing a group

Open
#6,023 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage bug Feature: Integration
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

Steps to reproduce
  1. Create a circle which contains a group
  2. Create an event in the calendar
  3. Try to invite the previously created circle to the event
Expected behavior

Members of the group which is member of the circle should be invited to the event

Actual behaviour

When clicking the circle found in the invite search, a server error occurs (error 500) during the following request :
GET https://nextcloud.rochefort-numerique.fr/index.php/apps/calendar/v1/circles/getmembers?format=json&circleId=BaSgPX5ecWIZotULqBSiuw4YzO5BaLY

with the following server log :

{"reqId":"RJzeOpx2dzk9BLRWMgqJ","level":3,"time":"2024-05-27T13:05:49+00:00","remoteAddr":"86.214.180.2","user":"****","app":"index","method":"GET","url":"/index.php/apps/calendar/v1/circles/getmembers?format=json&circleId=BaSgPX5ecWIZotULqBSiuw4YzO5BaLY","message":"Could not find organizer","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0","version":"27.1.3.2","exception":{"Exception":"OCA\Calendar\Service\ServiceException","Message":"Could not find organizer","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getCircleMembers","class":"OCA\Calendar\Controller\ContactController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/calendar/lib/Controller/ContactController.php","Line":233,"CustomMessage":"--"}}

Calendar app version

4.7.4

CalDAV-clients used

No response

Browser

No response

Client operating system

No response

Server operating system

No response

Web server

None

Database engine version

None

PHP engine version

None

Nextcloud version

27.1.3

Updated from an older installed version or fresh install

None

List of activated apps

No response

Nextcloud configuration

No response

Web server error log
{"reqId":"RJzeOpx2dzk9BLRWMgqJ","level":3,"time":"2024-05-27T13:05:49+00:00","remoteAddr":"86.214.180.2","user":"****","app":"index","method":"GET","url":"/index.php/apps/calendar/v1/circles/getmembers?format=json&circleId=BaSgPX5ecWIZotULqBSiuw4YzO5BaLY","message":"Could not find organizer","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0","version":"27.1.3.2","exception":{"Exception":"OCA\\Calendar\\Service\\ServiceException","Message":"Could not find organizer","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getCircleMembers","class":"OCA\\Calendar\\Controller\\ContactController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/apps/calendar/lib/Controller/ContactController.php","Line":233,"CustomMessage":"--"}}
Log file

No response

Browser log

No response

Additional info

No response

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 at apps/calendar/lib/Controller/ContactController.php line 233 and trace the getCircleMembers handler for the /circles/getmembers request. Reproduce the failure with a circle containing a group; done means selecting the circle no longer returns HTTP 500 and the group's members are invited to the event.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.