Graylog2 / Graylog2/graylog2-server
AuditLog exception when uninstalling a content pack with inputs
- Dominant language
- Java
- Stars
- 8.1k
- Forks
- 1.1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 217
Description
AuditLog exception is thrown when uninstalling a content pack with inputs.
## Expected Behavior
No exception
## Current Behavior
> 2024-04-12 13:39:15,913 WARN : org.graylog.plugins.auditlog.jersey.AuditLogFilter - Couldn't capture response entity
> java.lang.IllegalArgumentException: No serializer found for class org.graylog2.contentpacks.facades.AutoValue_InputWithExtractors and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.google.common.collect.RegularImmutableMap["uninstalled"]->org.graylog2.contentpacks.model.AutoValue_ContentPackUninstallation["entity_objects"]->com.google.common.collect.SingletonImmutableBiMap["f0b097ca-501b-4fc8-babe-6e5f170e69b0"])
> at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4624) ~[jackson-databind-2.17.0.jar:2.17.0]
> at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4565) ~[jackson-databind-2.17.0.jar:2.17.0]
> at org.graylog2.audit.jersey.ResponseEntityConverter.convertValue(ResponseEntityConverter.java:45) ~[classes/:?]
> at org.graylog.plugins.auditlog.jersey.AuditLogFilter.readResponseEntity(AuditLogFilter.java:185) ~[classes/:?]
> at org.graylog.plugins.auditlog.jersey.AuditLogFilter.lambda$filter$4(AuditLogFilter.java:145) ~[classes/:?]
> at java.base/java.util.Optional.ifPresent(Optional.java:178) [?:?]
> at org.graylog.plugins.auditlog.jersey.AuditLogFilter.filter(AuditLogFilter.java:116) [classes/:?]
>
## Possible Solution
## Steps to Reproduce (for bugs)
1. Install a content pack that includes an input, eg RandomHTTP
2. Uninstall the content pack
3. Observe exception
## Your Environment
* Graylog Version: 6.0.0 RC4
Contributor guide
Assessment
This issue has not been assessed yet.