ksainc / integration_ews

Nextcloud EWS Connector (Exchange Web Services)
GNU Affero General Public License v3.0
26 stars 2 forks source link

Error with Exchange to Nextcloud event synchronization #44

Open hollowshiroyuki opened 1 month ago

hollowshiroyuki commented 1 month ago

Describe the bug Incoming calendar events from Exchange throws an exception. Events going from Nextcloud to Exchange works.

To Reproduce Steps to reproduce the behavior:

  1. Go to Outlook calendar and create an event
  2. Go to Nextcloud calendar and create an event
  3. Sync changes from Nextcloud settings
  4. Nextcloud event appears in Outlook
  5. Outlook event doesn't appear in Nextcloud
  6. Error is logged in Nextcloud

Expected behavior Outlook events should show up in Nextcloud calendar.

Additional context

{
    "reqId": "0Bm16t4SgYwW83qotOkc",
    "level": 3,
    "time": "2024-10-04T17:45:03+00:00",
    "remoteAddr": "",
    "user": "--",
    "app": "integration_ews",
    "method": "",
    "url": "--",
    "message": "Harmonization launcher encountered an error while harmonizing for hollow",
    "userAgent": "--",
    "version": "28.0.10.1",
    "exception": {
        "Exception": "Exception",
        "Message": "SEE MESSAGE BELOW",
        "Code": 1,
        "Trace": [
            {
                "file": "/var/www/html/custom_apps/integration_ews/lib/Tasks/HarmonizationLauncher.php",
                "line": 102,
                "function": "performHarmonization",
                "class": "OCA\\EWS\\Service\\HarmonizationService",
                "type": "->",
                "args": [
                    "hollow"
                ]
            },
            {
                "file": "/var/www/html/lib/public/BackgroundJob/Job.php",
                "line": 81,
                "function": "run",
                "class": "OCA\\EWS\\Tasks\\HarmonizationLauncher",
                "type": "->",
                "args": [
                    [
                        "hollow"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/public/BackgroundJob/TimedJob.php",
                "line": 102,
                "function": "start",
                "class": "OCP\\BackgroundJob\\Job",
                "type": "->",
                "args": [
                    [
                        "OC\\BackgroundJob\\JobList"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/public/BackgroundJob/TimedJob.php",
                "line": 92,
                "function": "start",
                "class": "OCP\\BackgroundJob\\TimedJob",
                "type": "->",
                "args": [
                    [
                        "OC\\BackgroundJob\\JobList"
                    ]
                ]
            },
            {
                "file": "/var/www/html/cron.php",
                "line": 154,
                "function": "execute",
                "class": "OCP\\BackgroundJob\\TimedJob",
                "type": "->",
                "args": [
                    [
                        "OC\\BackgroundJob\\JobList"
                    ],
                    [
                        "OC\\Log"
                    ]
                ]
            }
        ],
        "File": "/var/www/html/custom_apps/integration_ews/lib/Service/HarmonizationService.php",
        "Line": 227,
        "message": "Harmonization launcher encountered an error while harmonizing for hollow",
        "exception": [],
        "CustomMessage": "Harmonization launcher encountered an error while harmonizing for hollow"
    },
    "id": "67002a43e31b3"
}
Exception: Remote Error: ErrorInvalidPropertySet - Set action is invalid for property. in /var/www/html/custom_apps/integration_ews/lib/Service/Remote/RemoteCommonService.php:1006
Stack trace:
#0 /var/www/html/custom_apps/integration_ews/lib/Service/Remote/RemoteEventsService.php(1073): OCA\\EWS\\Service\\Remote\\RemoteCommonService->updateItem(Object(OCA\\EWS\\Components\\EWS\\EWSClient), '<REDACTED>...', '<REDACTED>...', NULL, NULL, Array, Array)
#1 /var/www/html/custom_apps/integration_ews/lib/Service/EventsService.php(446): OCA\\EWS\\Service\\Remote\\RemoteEventsService->updateCollectionItem('<REDACTED>...', '<REDACTED>...', '<REDACTED>...', Object(OCA\\EWS\\Objects\\EventObject))
#2 /var/www/html/custom_apps/integration_ews/lib/Service/EventsService.php(194): OCA\\EWS\\Service\\EventsService->harmonizeLocalAltered('hollow', '12', '<REDACTED>...', '<REDACTED>...', '1')
#3 /var/www/html/custom_apps/integration_ews/lib/Service/HarmonizationService.php(210): OCA\\EWS\\Service\\EventsService->performHarmonization(Object(OCA\\EWS\\Db\\Correlation), Object(OCA\\EWS\\Objects\\ConfigurationObject))
#4 /var/www/html/custom_apps/integration_ews/lib/Tasks/HarmonizationLauncher.php(102): OCA\\EWS\\Service\\HarmonizationService->performHarmonization('hollow')
#5 /var/www/html/lib/public/BackgroundJob/Job.php(81): OCA\\EWS\\Tasks\\HarmonizationLauncher->run(Array)
#6 /var/www/html/lib/public/BackgroundJob/TimedJob.php(102): OCP\\BackgroundJob\\Job->start(Object(OC\\BackgroundJob\\JobList))
#7 /var/www/html/lib/public/BackgroundJob/TimedJob.php(92): OCP\\BackgroundJob\\TimedJob->start(Object(OC\\BackgroundJob\\JobList))
#8 /var/www/html/cron.php(154): OCP\\BackgroundJob\\TimedJob->execute(Object(OC\\BackgroundJob\\JobList), Object(OC\\Log))
#9 {main}