nextcloud / calendar

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

appointment booking problem (linked to increment constraint ?) #6469

Open CorentinS6 opened 2 weeks ago

CorentinS6 commented 2 weeks ago

Steps to reproduce

  1. create an appointment with the following parameter :
    • duration : 45 min
    • increment : 45 min.
  2. users cannot book any appointment, they have the following error : "Could not book the appointment. Please try again later or contact the organizer." for all slot.

when setting increment constraint to 5, 15, 30, 60min, it works fine ! could you help us ?

Expected behavior

can book an appointment

Actual behaviour

have an error (Could not book the appointment. Please try again later or contact the organizer)

Calendar app version

4.7.16

CalDAV-clients used

No response

Browser

firefox 115.8.0esr

Client operating system

Ubuntu

Server operating system

Debian 11

Web server

Apache

Database engine version

MariaDB

PHP engine version

PHP 8.2

Nextcloud version

29.0.8

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

Enabled:

Nextcloud configuration

No response

Web server error log

{"reqId":"kG1k26QLGOpNRIJuhkIc","level":2,"time":"2024-11-06T18:37:07+01:00","remoteAddr":"","user":"","app":"calendar","method":"POST","url":"/index.php/apps/calendar/appointment/48/book","message":"No slot available for start: 1730976300, end: 1730979000, config id: 48","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0","version":"29.0.8.1","exception":{"Exception":"OCA\Calendar\Exception\NoSlotFoundException","Message":"Could not find slot for booking","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/calendar/lib/Controller/BookingController.php","line":195,"function":"book","class":"OCA\Calendar\Service\Appointments\BookingService","type":"->","args":[["OCA\Calendar\Db\AppointmentConfig",48],1730976300,1730979000,"Europe/Paris","","",""]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"bookSlot","class":"OCA\Calendar\Controller\BookingController","type":"->","args":[48,1730976300,1730979000,"*","*****","","Europe/Paris"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[["OCA\Calendar\Controller\BookingController"],"bookSlot"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[["OCA\Calendar\Controller\BookingController"],"bookSlot"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Calendar\Controller\BookingController","bookSlot",["OC\AppFramework\DependencyInjection\DIContainer"],["48","calendar.booking.bookslot"]]},{"file":"/var/www/nextcloud/lib/base.php","line":1058,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/calendar/appointment/48/book"]},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/calendar/lib/Service/Appointments/BookingService.php","Line":164,"message":"No slot available for start: 1730976300, end: 1730979000, config id: 48","exception":{},"CustomMessage":"No slot available for start: 1730976300, end: 1730979000, config id: 48"}}

Log file

No response

Browser log

Server response > 404 : {"status":"fail","data":null}

Additional info

No response