Potential bug in Domino Access Services API

Wednesday, March 6, 2019 at 3:30 PM UTC

Just encountered a problem with Domino Access Services API (DAS). When using the endpoint to get all calendar entries of a given user with

https://hostname.local/mail/tbuktu.nsf/api/calendar/events

and you don't have any entries in the calendar, the response will be empty. It will be a 200 response though but the expected result would be an empty JSON object

{}

and not just "nothing". This is a potential problem in your apps when you try to parse this response as JSON object - as it isn't a valid JSON object.

Once there is at least one entry everything works fine

{ "events": [ { "href": "/mail/tbuktu.nsf/api/calendar/events/7F172834C28F52C7002583B5002FAA72-Lotus_Notes_Generated", "id": "7F172834C28F52C7002583B5002FAA72-Lotus_Notes_Generated", "summary": "Meeting", "start": { "date": "2019-03-08", "time": "08:00:00", "utc": true }, "end": { "date": "2019-03-08", "time": "09:00:00", "utc": true }, "class": "public", "transparency": "opaque", "sequence": 0, "x-lotus-organizer": { "data": "CN=Tim Buktu/O=ProtonWe4IT" }, "x-lotus-summarydataonly": { "data": "TRUE" }, "x-lotus-appttype": { "data": "3" } } ] }






Latest comments to this post


Leave a comment right here