-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Hex numbers in YAML requests are treated as strings #66555
Comments
I was curious so I started looking upstream and found FasterXML/jackson-dataformats-text#233 which appears to have been fixed in 2.12. elasticsearch/buildSrc/version.properties Line 12 in feab123
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Thanks for reporting and the investigation upstream @andrewkroh. It looks like 2.12 was just released a few weeks ago. I'm going to mark this as |
Bumped version of jackson and tested this. Please have a look @elasticmachine |
This commit upgrades the Azure SDK to 12.11.0 and Jackson to 2.12.2. The Jackson upgrade must happen at the same time due to Azure depending on this new version of Jackson. closes elastic#66555 closes elastic#67214
This commit upgrades the Azure SDK to 12.11.0 and Jackson to 2.12.2. The Jackson upgrade must happen at the same time due to Azure depending on this new version of Jackson. closes elastic#66555 closes elastic#67214
This commit upgrades the Azure SDK to 12.11.0 and Jackson to 2.12.2. The Jackson upgrade must happen at the same time due to Azure depending on this new version of Jackson. closes #66555 closes #67214 Co-authored-by: Francisco Fernández Castaño <[email protected]>
This commit upgrades the Azure SDK to 12.11.0 and Jackson to 2.12.2. The Jackson upgrade must happen at the same time due to Azure depending on this new version of Jackson. closes elastic#66555 closes elastic#67214 Co-authored-by: Francisco Fernández Castaño <[email protected]>
This commit upgrades the Azure SDK to 12.11.0 and Jackson to 2.12.2. The Jackson upgrade must happen at the same time due to Azure depending on this new version of Jackson. closes #66555 closes #67214 backport #72995 backport #73011 Co-authored-by: Francisco Fernández Castaño <[email protected]> Co-authored-by: Mark Vieira <[email protected]>
#72995 has to be reverted, so the upgrade of Jackson fixing this hex issue needs to be reopened. |
This grabs a new version of jackson and snakeyaml to get some bug fixes. It also updates azure to stay compatible with the new jackson. Closes elastic#66555 Closes elastic#67214 Closes elastic#80142
This grabs a new version of jackson and snakeyaml to get some bug fixes. It also updates azure to stay compatible with the new jackson. Closes elastic#66555 Closes elastic#67214 Closes elastic#80142
Elasticsearch version (
bin/elasticsearch --version
):Plugins installed: []
JVM version (
java -version
):OS version (
uname -a
if on a Unix-like system): Our official Docker container based on CentOS Linux 8Description of the problem including expected versus actual behavior:
When Elasticsearch unmarshals YAML scalar values in hexadecimal format it interprets the value as a string, but it should be a number. For example
0x1
becomes"0x01"
when it should a1
. This causes problems when you expected the data type to be a number (like when reading the param value within painless).Reference: https://yaml.org/spec/1.2/spec.html#id2766934
Relates: elastic/kibana#85486
Steps to reproduce:
Content-Type: application/yaml
. Include a hexidecimal number.Note that
number_base16
is"0x1"
. It should a 1.The text was updated successfully, but these errors were encountered: