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
2024-10-28T16:35:39,367 [main] ERROR org.opensearch.dataprepper.core.validation.LoggingPluginErrorsHandler - 1. rp-pipeline-file.processor.rename_keys: caused by: Parameter "entries.null.to_key" for plugin "rename_keys" is invalid: key "cs(host)" must contain only alphanumeric chars with .-_@/ and must follow JsonPointer (ie. 'field/to/key')
Expected behavior
The to_key argument "cs(host)" should be accepted as it conforms to the documented syntax.
Screenshots
N/A
Environment (please complete the following information):
OS: macOs
Version 14.5
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Perhaps we can make use of escape sequences to allow parenthesis. Right now, our validation just looks for the characters themselves. But, we do not allow them to be escaped.
@dlvenable yes, I am trying to produce field names compatible with w3c's extended log file format, that uses the format prefix(header) to designate headers sent in the request or the response. For instance, cs(user-agent) is the field for the user-agent header sent in the request.
Describe the bug
The escaped syntax for json pointers define how to build json pointers for fields that include special characters.
However, the
isValidKey()
method inJacksonEventKey
only checks the basic character set and keys defined with the escaped syntax are rejected.To Reproduce
Steps to reproduce the behavior:
rename_keys
processor using an escaped syntax:Expected behavior
The
to_key
argument"cs(host)"
should be accepted as it conforms to the documented syntax.Screenshots
N/A
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: