I've found some issues while writing integration tests for the hystrix plugin. This is one of them.
In shenyu's code, hystrix needs to configure all parameters. If there are parameters that are not configured, the background will report a java.lang.NullPointerException: null error.
There is a problem when GroupKey and CommandKey are set in the backend
Expected Behavior
If the frontend runs without setting these two parameters, the backend should handle it correctly.
or
Remind the user that these two parameters must be set when the front end submits
Steps To Reproduce
run shenyu-admin and shenyu-bootstrap
Open the hystrix plugin
Add SelectorList (just add it, this step is not the most important)
Add rules
Do not fill in the parameters in the box. The current version allows such submitted rules.
Is there an existing issue for this?
Current Behavior
I've found some issues while writing integration tests for the hystrix plugin. This is one of them.
In shenyu's code, hystrix needs to configure all parameters. If there are parameters that are not configured, the background will report a java.lang.NullPointerException: null error.
There is a problem when
GroupKey
andCommandKey
are set in the backendExpected Behavior
If the frontend runs without setting these two parameters, the backend should handle it correctly. or Remind the user that these two parameters must be set when the front end submits
Steps To Reproduce
run shenyu-admin and shenyu-bootstrap
Add rules
Do not fill in the parameters in the box. The current version allows such submitted rules.
run http://localhost:9195/http/test/waf/pass
Environment
Debug logs
The most important log should be this part
Here is the full log
Anything else?
I think this bug needs to be fixed on both frontend and backend.