Look up final input before returning summary (#24421)

* Restore input ID assignment on create

* Add change log

* Revert input save changes, look up input after saving
This commit is contained in:
Dan Torrey
2025-12-04 13:59:47 -06:00
committed by GitHub
parent 13c663356f
commit 5e0ff7865b
3 changed files with 3 additions and 3 deletions

View File

@@ -2,4 +2,4 @@ type = "a"
message = "Improved Inputs Overview Page: The page has been revamped with pagination and various UI enhancements to improve navigation."
pulls = ["24245", "Graylog2/graylog-plugin-enterprise#12538"]
issues = ["12248"]
issues = ["12248", "graylog-plugin-enterprise#24421"]

View File

@@ -124,7 +124,7 @@ public class CloudTrailDriver {
final String newInputId = inputService.save(input);
LOG.info("New CloudTrail input created. id [{}] request [{}]", newInputId, request);
return input;
return inputService.find(newInputId);
} catch (NoSuchInputTypeException e) {
LOG.error("There is no such input type registered. {}", ExceptionUtils.getRootCauseMessage(e));
throw new NotFoundException("There is no such input type registered.", e);

View File

@@ -154,7 +154,7 @@ public class AWSService {
final Input input = this.inputService.create(messageInput.asMap());
final String newInputId = inputService.save(input);
LOG.debug("New AWS input created. id [{}] request [{}]", newInputId, request);
return input;
return inputService.find(newInputId);
} catch (NoSuchInputTypeException e) {
LOG.error("There is no such input type registered.", e);
throw new NotFoundException("There is no such input type registered.", e);