-
Enhancement
-
Resolution: Done
-
Major
-
None
In certain cases it is useful to send back, to client, some sort of context information about the outcome of operation. For instance, when change in configuration warrants another one and without it, after reload/restart server could not operate properly. For instance JBEAP-7284.
Scope of this enhancement are:
a) way to send back information
b) control level of "information" - just like in case of loggers
a) Information will be sent in response headers, under "warnings" key. Each entry, "warning" will contain operation, address, level/severity and i18n string with proper ID.
b) default level threshold would be "WARNING", if user requires more detailed information, he can request it via operation-headers->warninig-level
Example:
{ "outcome" => "success", "response-headers" => { "warnings" => [ { "warning" => "WFLYCTL0436: Couldn't convert 'XXX' into proper warning level, threshold falling back to 'ALL'. Possible values: SEVERE,WARNING,INFO,CONFIG,FINE,FINER,FINEST", "level" => "ALL", "operation" => { "address" => [ ("subsystem" => "undertow"), ("server" => "default-server"), ("http-listener" => "default") ], "operation" => "write-attribute" } }, { "warning" => "WFLYUT0090: Worker used in http-listener: 'puppet-master', must be used in remoting subsystem.", "level" => "WARNING", "operation" => { "address" => [ ("subsystem" => "undertow"), ("server" => "default-server"), ("http-listener" => "default") ], "operation" => "write-attribute" } } ], "operation-requires-reload" => true, "process-state" => "reload-required" } }
- blocks
-
JBEAP-7284 [QA](7.1.0) Unable to define specific worker for undertow when using http-upgrade for remoting.
- Closed
-
WFLY-8053 Warn user when configuration change might make server inoperable
- Closed
- is cloned by
-
JBEAP-12812 (7.0.x) Create request/response reporting mechanism
- Closed
- relates to
-
CMTOOL-113 Add warning/alter worker value if it does not match between undertow and remoting
- Closed
-
HAL-1287 Display warnings as message/popup
- Closed