microsoftgraph / microsoftgraph/msgraph-sdk-java

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

未關閉
#2,323 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

status:waiting-for-triage type:bug
主要語言
Java
星號
444
分支
154
平均合併
18 小時 28 分鐘
30 天內合併 PR
4

描述

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_

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先追蹤 Java SDK 對 PATCH /subscriptions/{id} 的處理,並使用連結的 Microsoft Graph 文件和客戶 issue 作為重現情境。驗證僅包含 expirationDateTime 的要求可以被接受,並確認現有驗證或要求行為不再需要 notificationUrl。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
api
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。