TaskProcessing checkGuestAccess() fails with an Error for a deleted user id
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
調査の方向性
lib/private/TaskProcessing/Manager.php の checkGuestAccess() 周辺を読み、tests/lib/TaskProcessing/TaskProcessingTest.php にある既存のテストを確認してください。issue に記載された古いユーザー ID のケースを再現し、ユーザーが見つからない場合のテストを追加してください。ユーザーが null の場合に検索が例外を投げず、テストが通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
Bug description
Manager::checkGuestAccess() resolves the user with IUserManager::get() but does not handle null:
If the user id no longer exists (e.g. a task of a deleted account that is processed or rescheduled, or getAvailableTaskTypes() called with a stale user id), the guests app is installed and ai.taskprocessing_guests is not 'true', this ends in Call to a member function getBackend() on null instead of a clean result.
Steps to reproduce
Found by code reading.
- Install the guests app, keep
ai.taskprocessing_guestsat its default. - Schedule a task for a user, delete the user before the task is processed.
- Processing / looking up the task's type calls
checkGuestAccess($task->getUserId())and throws anError.
Expected behavior
A missing user is handled explicitly (e.g. $user === null → no guest access check / deny), covered by a test in tests/lib/TaskProcessing/TaskProcessingTest.php.
Nextcloud version
master
- 主要言語
- PHP
- スター
- 37.6k
- フォーク
- 5.4k
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 605
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/server のほかの issue
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpオープンenhancement feature: settings good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug feature: previews and thumbnails performance 🚀
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
files_external occ commands crash with InvalidArgumentException for SMB mounts without credentialsオープンbug feature: external storage feature: occ good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
"Forwarded for headers" setup check trusts a client-sent Remote-Addr header and ignores CIDR proxiesオープンbug feature: settings
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug feature: occ
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
nextcloud/server の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nextcloud/integration_openai#480 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
a11y
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
omeka/plugin-Contribution#84 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
recca0120/vscode-phpunit#620 ·
メンテナーはふだん 1 日以内に返信
-
Validation rule generation for recursive Data objects is unbounded (O(payload depth))対応中かも @irfanm96 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
spatie/laravel-data#1226 ·