Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.21k stars 1.05k forks source link

Add missing exception handling for IpInfo*Resolver #19750

Closed patrickmann closed 6 days ago

patrickmann commented 6 days ago

Resolves Graylog2/graylog-plugin-enterprise#7602

IpInfo*Resolver classes only handle a specific set of exception types. Unknown exceptions bubble up, leading to processing failure. Extend exception handling to cover all types of exceptions.

Description

When an IP address cannot be resolved against the IPInfo DB, we may receive a com.maxmind.db.DeserializationException from IPinfoIPLocationDatabaseAdapter. This may occur in 2 places:

Motivation and Context

This affects all versions that support IPInfo DBs, i.e. 5.1 and up.

Types of changes

Checklist: