Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Row 315 of UAParser.cs in Elastic.Serilog.Enrichers.Web is incorrect #451

Open
kaidl opened this issue Sep 27, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@kaidl
Copy link

kaidl commented Sep 27, 2024

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:

  1. Use Enrich.WithEcsHttpsContext(IHttpContextAccessor)
  2. Run your solution
  3. 'UAParser.Parse(stringValues)' threw an exception of type 'System.TypeInitializationException'
@kaidl kaidl added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant