[GRDM-58778, 42706] OneDriveファイル/フォルダ取得処理修正 (metadata 422 and download 401)#94
Open
yacchin1205 wants to merge 2 commits into
Open
[GRDM-58778, 42706] OneDriveファイル/フォルダ取得処理修正 (metadata 422 and download 401)#94yacchin1205 wants to merge 2 commits into
yacchin1205 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
GRDM-58778
GRDM-42706
Purpose
OneDrive(拡張ストレージ)で接続したファイルを開く/ダウンロードできない問題を修正する。ファイル参照時に Internal Server Error 等が発生しており、以下2つの原因に対処する。
metadata()がファイル(非フォルダ)にも$expand=childrenを付与している。Microsoft Graph が 2026-03 頃から非フォルダへの$expand=childrenを getChildrenOnNonFolder("Children cannot be listed from an item that is not a folder")の 422 で返すようになり、ファイル参照が失敗するようになった。 (GRDM-58778)@microsoft.graph.downloadUrlにAuthorizationヘッダーを重ねて送信しており、一部の OneDrive ホスト(個人アカウント等)が 401 (unauthenticated) を返す。upstream commit ceaf712 と同種の事象。 (GRDM-42706)Changes
metadata(): フォルダ(path.is_dir)の時のみ$expand=childrenを付与。download(): 事前認証済み downloadUrl ではno_auth_header=Trueで Authorization ヘッダーを送らない。過去版取得の/versions/{id}/content(素の Graph API)は Authorization を維持。Side effects
None
QA Notes