nextcloud / calendar

📆 Calendar app for Nextcloud
https://apps.nextcloud.com/apps/calendar
GNU Affero General Public License v3.0
975 stars 240 forks source link

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

Open tartard opened 4 months ago

tartard commented 4 months ago

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

miaulalala commented 4 months ago

can you check your network tab in the browser dev tools and tell me what is POSTed to the DAV endpoint?

tartard commented 4 months ago

I am not sure to understand your request ; I don't see anything POSTed to any DAV endpoint, the error occurs when i click on the search result after typing in the search bar .

After typing, I get one result. Here are the 3 requests produced by typing in the search box : image

Then I click the result (the found circle) to invite it to the event, which produces the following request :

image