Exclude password field text from breadcrumbs

Aperta
#5,814 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

The report says password Entry text appears in Focused/Unfocused breadcrumbs when IncludeTextInBreadcrumbs is enabled, but it does not name the implementation or tests. Find where Entry text is added to those breadcrumbs and check the existing breadcrumb tests. Done means password entries are skipped while ordinary text breadcrumbs continue to work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug State: Needs Discussion

Hi, I would like to pick this up if nobody is working on it :)

For the name I'd suggest IncludeButtonTextInBreadcrumbs. It follows IncludeTextInBreadcrumbs and IncludeTitleInBreadcrumbs, and can be set from appsettings same as them. Default would be false like the other ones. It would cover Button and its subclasses (ImageButton has no text and RadioButton doesn't implement IText). The data key stays Button.Text, so for people who already use IncludeTextInBreadcrumbs nothing changes.

One more thing I noticed in the code. With IncludeTextInBreadcrumbs on, an Entry with IsPassword = true also gets its text into the Focused/Unfocused breadcrumbs, so after typing the password ends up there. Maybe password entries should be always skipped. I can do it in separate small PR if you want

Does the name work for you? I can also update the MAUI options page in sentry-docs after the PR

Originally posted by @Empiree in #3130

Lingua principale
C#
Stelle
775
Fork
262
Merge medio
1g 16h
PR unite (30g)
118

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-dotnet

Tutte le issue di getsentry/sentry-dotnet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.