microsoftgraph / microsoftgraph/msgraph-beta-sdk-php

Cannot request events delta without startDateTime

Open
#321 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependency:metadata ToTriage type:bug
Dominant language
PHP
Stars
13
Forks
8
Avg merge
14h 58m
Merged PRs (30d)
3

Description

Describe the bug

Event delta documentation says param startDateTime is optional when working with calendars but class DeltaRequestBuilder always include it in template url causing call to fail with ODataError.

Expected behavior

When performing a normal call without any optional param to get a full delta, no error should append.

How to reproduce
$client->me()
->calendars()
->byCalendarId($remoteId)
->events()
->delta()
->get(
    new DeltaRequestBuilderGetRequestConfiguration([
        'Prefer' => sprintf('outlook.timezone="%s"', $local->getTimeZone()->getName())
    ])
)
->wait()
SDK Version

2.8.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
{
    "error": {
        "code": "ErrorInvalidParameter",
        "message": "The value '' of parameter 'StartDateTime' is invalid."
    }
}
Configuration

No response

Other information

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 with src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php and compare its template URL with the Event delta documentation linked in the issue. Reproduce the calendar delta request without startDateTime; done means the request succeeds without an invalid StartDateTime error while requests that provide the parameter still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.