User descriptions added after an event keep the email address when private information removal is on
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- csharp, redis
調査の方向性
src/Exceptionless.Web/Api/Handlers/EventHandler.cs の EventHandler.Handle(SetEventUserDescription) を読み、src/Exceptionless.Core/Plugins/EventProcessor/Default/90_RemovePrivateInformationPlugin.cs の RemovePrivateInformationPlugin と比較してください。プロジェクト設定がキューに登録された説明にどのように届くかを追跡し、個人情報の削除を無効にした状態で、説明が遅れて届く経路のテストを追加してください。キューのジョブが説明を処理した後にメールアドレスが省略されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When a project has Automatically remove user identifiable information turned on, the event pipeline clears the email address from a user description sent with the event. A description added later through the user-description endpoint skips that step and is saved with the email address as submitted.
Where
EventUserDescriptionsJob.ProcessUserDescriptionAsynccopiesEmailAddressinto theUserDescription, mergesData, and saves the event. It never loads the project or checks its settings.EventHandler.Handle(SetEventUserDescription)loads the project but queues the email unchanged. This handlesPOST /api/v2/events/by-ref/{referenceId}/user-description, the project-scoped variant, and the legacyPATCHpath.- For comparison,
RemovePrivateInformationPluginsetsdescription.EmailAddress = nullwhenIncludePrivateInformation(@@IncludePrivateInformation) is false.
Steps to reproduce
- In a project, turn on Automatically remove user identifiable information.
- Submit an event with a reference id, e.g.
"reference_id": "abc123", and no user description. POST /api/v2/events/by-ref/abc123/user-descriptionwith{"email_address": "[email protected]", "description": "It crashed"}.- After the user-descriptions job runs, open the event. The user description shows
[email protected].
Submitting the same description inside the event in step 2 stores it without the email.
Expected
The email address is dropped from late user descriptions the same way it is for descriptions sent with the event.
Suggested fix
In EventHandler.Handle(SetEventUserDescription), where the project is already loaded, set EmailAddress to null before queuing when project.Configuration.Settings.GetBoolean(SettingsDictionary.KnownKeys.IncludePrivateInformation, true) is false. Dropping it before it reaches the queue also keeps it out of Redis. Alternatively, load the project in the job and apply the same check there. Add a test for the late-description path with the setting turned off.
- 主要言語
- C#
- スター
- 2.5k
- フォーク
- 508
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 40
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
exceptionless/Exceptionless のほかの issue
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
exceptionless/Exceptionless#2707 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
exceptionless/Exceptionless#2706 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
exceptionless/Exceptionless#2705 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
exceptionless/Exceptionless#2704 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
exceptionless/Exceptionless#2703 ·
メンテナーはふだん 1 日以内に返信
exceptionless/Exceptionless の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
possible bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Include host.wslc.internal in the HTTPS development certificate対応中かも @afscrome が今日担当しました。 オープンarea-commandlinetools
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
dotnet/aspnetcore#70122 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
:1st_place_medal: good first issue :cowboy_hat_face: refactor :roller_coaster: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ApplETS/Backend-Hello#78 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信