microsoftgraph / microsoftgraph/msgraph-sdk-java

PATCH /subscriptions/{id} shouldn't require both properties

Offen
#2,323 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

status:waiting-for-triage type:bug
Vorherrschende Sprache
Java
Sterne
444
Forks
154
Ø Merge
18 Std. 28 Min.
Gemergte PRs (30 T.)
4

Beschreibung

Describe the bug

As per the documentation, PATCH https://graph.microsoft.com/beta/subscriptions/{id} requires only 1 property to be defined. Unfortunately, as confirmed by this customer, the Java SDK requires both properties to be specified or the request fails with this error message:

Subscription must contain either the 'expirationDateTime' or 'notificationUrl' property and its value.

More details on the bug as reported by the customer @Yusvanth are in Microsoft Graph Q&A

The feature engineers have confirmed that this issue doesn't occur on the REST API or other SDKs.

Please assist to resolve the bug.

Expected behavior

Only the expirationDateTime property is required.

How to reproduce

See the customer issue + CxP response.

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die Verarbeitung von PATCH /subscriptions/{id} im Java SDK nachzuverfolgen, und verwende die verlinkte Microsoft Graph-Dokumentation und das Kunden-Issue als Reproduktionskontext. Überprüfe, dass eine Anfrage, die nur expirationDateTime enthält, akzeptiert wird, und bestätige, dass die bestehende Validierung oder das Anfrageverhalten notificationUrl nicht mehr erfordert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.