Graylog2 / Graylog2/graylog2-server

Improve data node directory compatibility check error response

Open
#20,138 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## Expected Behavior
All types of errors occuring during the directory compatibility check in the data node migration wizard should bubble up to the UI.

## Current Behavior
Currently, only `IncompatibleIndexVersionException` and `ValidationException` are wrapped into a parsable response. All others return a 500 message, causing JSON parsing to fail in Graylog.

## Possible Solution
Handle all exceptions

## Steps to Reproduce (for bugs)

1. Find a way to throw a exception other than the two above in `indices-directory/compatibility`
2. Try to run compatibility check in migration wizard

## Context
found during testing by https://community.graylog.org/t/be-a-part-of-graylog-development-call-for-testers/33125/4

## Your Environment

* Graylog Version: 6.1.0-alpha.6

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.