[BUG] Row 315 of UAParser.cs in Elastic.Serilog.Enrichers.Web is incorrect
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 60/100
Research direction
Open UAParser.cs in Elastic.Serilog.Enrichers.Web and inspect row 315, starting from the resource lookup used by UAParser.Parse(stringValues). Reproduce through Enrich.WithEcsHttpsContext(IHttpContextAccessor); done means the regex resource loads correctly and parsing no longer throws a TypeInitializationException.
Written by the indexing model from the issue text.
Description
ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog):
Elastic.Serilog.Enrichers.Web
ECS schema version (e.g. 1.4.0):
ECS .NET assembly version (e.g. 1.4.2):
8.12.0
Elasticsearch version (if applicable):
.NET framework / OS:
Description of the problem, including expected versus actual behavior:
Row 315 of UAParser.cs in Elastic.Serilog.Enrichers.Web is incorrect. Right now (September 27 2024) it is:
.Assembly.GetManifestResourceStream("UAParser.regexes.yaml"))
To actually work it should be:
.Assembly.GetManifestResourceStream("Elastic.Serilog.Enrichers.Web.Lib.UAParser.regexes.yaml"))
Steps to reproduce:
- Use Enrich.WithEcsHttpsContext(IHttpContextAccessor)
- Run your solution
- 'UAParser.Parse(stringValues)' threw an exception of type 'System.TypeInitializationException'
- Dominant language
- HTML
- Stars
- 137
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elastic/ecs-dotnet
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
elastic/ecs-dotnet#570 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
elastic/ecs-dotnet#568 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
elastic/ecs-dotnet#551 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
elastic/ecs-dotnet#546 ·
-
bug
Difficulty 5/5 Over a week Newbie friendliness 20/100
elastic/ecs-dotnet#533 · 2 comments ·
All issues in elastic/ecs-dotnet
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100