Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented May 23, 2022

It is possible for the fields API to return null objects when a field is set to ignore_malformed values and the values are actually malformed. This causes a NPE on vector tiles if trying to add the value as the value of a tag. This PR adds a guard so tags with null values are ignored.

@iverase iverase added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.3.0 v8.2.2 v7.17.5 labels May 23, 2022
@iverase iverase requested a review from craigtaverner May 23, 2022 15:07
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label May 23, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @iverase, I've created a changelog YAML for you.

Copy link
Contributor

@craigtaverner craigtaverner left a comment

Choose a reason for hiding this comment

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

LGTM - even the with_labels code path should use the same addPropertyToFeature method.

@iverase iverase merged commit 8cfac06 into elastic:master May 23, 2022
@iverase iverase deleted the fixBugIgnreMalformed2 branch May 23, 2022 16:06
iverase added a commit to iverase/elasticsearch that referenced this pull request May 23, 2022
 This commit adds a guard so tags with null values are ignored.
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.2
7.17 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 87051

iverase added a commit to iverase/elasticsearch that referenced this pull request May 23, 2022
 This commit adds a guard so tags with null values are ignored. # Conflicts: #	x-pack/plugin/vector-tile/src/javaRestTest/java/org/elasticsearch/xpack/vectortile/VectorTileRestIT.java
elasticsearchmachine pushed a commit that referenced this pull request May 23, 2022
This commit adds a guard so tags with null values are ignored. # Conflicts: #	x-pack/plugin/vector-tile/src/javaRestTest/java/org/elasticsearch/xpack/vectortile/VectorTileRestIT.java
elasticsearchmachine pushed a commit that referenced this pull request May 23, 2022
This commit adds a guard so tags with null values are ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Geo Indexing, search aggregations of geo points and shapes >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.17.5 v8.2.2 v8.3.0

4 participants