Commit f36e6e3
fix(android): Stop duplicating attachments on native events (JAVA-559) (#5548)
* fix(android): Stop duplicating attachments on native events (JAVA-559)
Scope attachments are synced to the native SDK, so native events already
carry them as envelope items in the outbox. When re-ingesting those
cached envelopes, SentryClient re-applied the scope attachments on top,
sending each attachment twice. Skip re-applying scope attachments for
cached envelopes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* changelog
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 773a0df commit f36e6e3
3 files changed
Lines changed: 23 additions & 1 deletion
File tree
- sentry/src
- main/java/io/sentry
- test/java/io/sentry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
873 | 892 | | |
874 | 893 | | |
875 | 894 | | |
| |||
0 commit comments