mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
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:
@@ -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"]
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user