Skip to content

When saving a code mapping, we should attempt the abs_path as well #91799

Open
@armenzg

Description

@armenzg

In this event, we tried to set up a code mapping. Unfortunately, it failed.

This happened during the Set up code mapping modal without making use of derived code mappings. Notice that it was a call to the project_repo_path_parsing endpoint with these values:

{
source_url: "https://github.com/sentry-demos/unity/blob/main/sentry-defenses/Assets/Scripts/Bugs/BugVisuals.cs",
stack_path: "BugVisuals.cs"
}

Upon closer look, it seems to use the filename rather than the abs_path.

If the filepath is a single file, we should attempt the abs_path.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions