Skip to content

Conversation

pyth0n1c
Copy link
Contributor

@pyth0n1c pyth0n1c commented Sep 6, 2024

Trailing newline(s) in string fields may cause issues with some parsers when written to conf file. In particular, it causes issues with this open source splunk conf file parser: https://github.com/splunk/addonfactory-splunk-conf-parser-lib
Note that this issue does NOT occur in the Splunk product itself.

This PR removes leading AND trailing whitespace when long string fields are serialized to conf file.

Copy link
Contributor

@cmcginley-splunk cmcginley-splunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed that this fix does indeed resolve any in product parsing errors

@pyth0n1c pyth0n1c merged commit 90db899 into main Sep 13, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants