You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a fully qualified path within the includes section of the YAML configuration, the provided value is prepended with the directory of the containing configuration file. This occurs even when the provided value is a valid fully qualified path according to Windows standards.
To Reproduce
Create a configuration that has an includes section and attempts to include a fully qualified file name, ie: C:\test\fluent-bit.yaml
Expected behavior
The fully qualified name would be treated as a fully qualified name and processed as such.
Your Environment
Version used: 3.2.4
Configuration:
includes:
- c:\test\fluent-bit.yaml
Operating System and version: Windows 11 24H2
Filters and plugins: none
Additional context
This prevents loading configuration files from a non-relative location.
This check is insufficient for a Windows environment. The check should determine if the path is "rooted" (begins with a X:) or absolute (begins with a "" or "/"). In either case, the file path can be accepted as is.
A workaround for the current implementation is to prefix the fully qualified path with "//./" which will pass the current check and not interfere with Windows path processing.
The text was updated successfully, but these errors were encountered:
Bug Report
Describe the bug
When using a fully qualified path within the
includes
section of the YAML configuration, the provided value is prepended with the directory of the containing configuration file. This occurs even when the provided value is a valid fully qualified path according to Windows standards.To Reproduce
C:\test\fluent-bit.yaml
Expected behavior
The fully qualified name would be treated as a fully qualified name and processed as such.
Your Environment
Additional context
This prevents loading configuration files from a non-relative location.
This appears to be caused by:
fluent-bit/src/config_format/flb_cf_yaml.c
Line 2792 in 417d129
This check is insufficient for a Windows environment. The check should determine if the path is "rooted" (begins with a X:) or absolute (begins with a "" or "/"). In either case, the file path can be accepted as is.
A workaround for the current implementation is to prefix the fully qualified path with "//./" which will pass the current check and not interfere with Windows path processing.
The text was updated successfully, but these errors were encountered: