Elasticsearch Version
8.x, main
Installed Plugins
No response
Java Version
bundled
OS Version
all
Problem Description
user-agent processor with a user-agent as Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 produces versions with trailing .. The issue is made worse due to #116946 which causes the produced value to be mapped as a date if date detection and dynamic mapping are enabled.
Steps to Reproduce
PUT _ingest/pipeline/user_agent
{
"description" : "Add user agent information",
"processors" : [
{
"user_agent" : {
"field" : "agent"
}
}
]
}
PUT testagentbug/_doc/my_id?pipeline=user_agent
{
"agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
}
GET testagentbug/_doc/my_id // The `user_agent.version` field has the value of `128.0.`
Expectation is for the user_agent.version to be correctly detected (without the trailing .)
Logs (if relevant)
No response
Elasticsearch Version
8.x, main
Installed Plugins
No response
Java Version
bundled
OS Version
all
Problem Description
user-agent processor with a user-agent as
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0produces versions with trailing.. The issue is made worse due to #116946 which causes the produced value to be mapped as adateif date detection and dynamic mapping are enabled.Steps to Reproduce
Expectation is for the
user_agent.versionto be correctly detected (without the trailing.)Logs (if relevant)
No response