Closed weidongxu-microsoft closed 3 years ago
thanks @weidongxu-microsoft and @xccc-msft working to make another repo
the key issue is RequestHeaderNames with header "Referer" https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer
.withExclusions(Arrays.asList(new ApplicationGatewayFirewallExclusion().withSelector("Referer")
.withMatchVariable("Equals").withMatchVariable("RequestHeaderNames"))))
I got same error even if I try to create the application gateway
webApplicationFirewallConfiguration.exclusions.selectorMatchOperator is required and cannot be null. java.lang.IllegalArgumentException: webApplicationFirewallConfiguration.exclusions.selectorMatchOperator is required and cannot be null
After investigation, the swagger definition of ApplicationGatewayFirewallExclusion
shows all properties are required here while the server only returns matchVariable
if the exclusion rule is with Equals any
and *
. Add Service Attention
so the service team could help check if they should update swagger or add missing properties in the response.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @surajmb, @appgwsuppgithub.
Author: | weidongxu-microsoft |
---|---|
Assignees: | xccc-msft |
Labels: | `Mgmt`, `Network - Application Gateway`, `Service Attention` |
Milestone: | - |
Java SDK 1.35 ( I can repo also with 1.38.1)
If I have a application gateway v2 sku waf_v2 with exclusion setup at WAF level
And run backend update
Error: