Skip to content

UserFeedback envelope not cached #2902

@MarcinGawel-TomTom

Description

@MarcinGawel-TomTom

Integration

sentry-android

Build System

Gradle

AGP Version

7.4.2

Proguard

Disabled

Version

6.28.0

Steps to Reproduce

With internet connection disabled:

val sentryId = Sentry.captureMessage("message")

val userFeedBack = UserFeedback(sentryId).apply {
    comments = "comment"
    this.name = "reporter name"
    this.email = "[email protected]"
}

Sentry.captureUserFeedback(userFeedBack)

Expected Result

captureMessage envelope and captureUserFeedback should be stored locally in cache if internet connection is not available.

Actual Result

Envelope from captureMessage (containing some attachments) is stored in the cache. Envelope from captureUserFeedback (with comment, name and email) is not added to the cache. Looks like EnvelopeCache.getEnvelopeFile() is using the same file for both envelopes.

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions