dengliming opened a new pull request, #7195:
URL: https://github.com/apache/shenyu/pull/7195

   Treat the request `rpc_type` header as valid only when a matching context 
decorator is registered. Unknown values now continue through normal metadata 
detection and ultimately fall back to the HTTP decorator instead of 
dereferencing null.
   
   If no matching or HTTP fallback decorator exists, the builder raises a 
descriptive `ShenyuException` rather than a bare `NullPointerException`. Tests 
cover both the HTTP fallback and missing-fallback cases.
   
   Tested with:
   `./mvnw -q -pl shenyu-plugin/shenyu-plugin-global -am -DskipTests=false 
-Dcheckstyle.skip=false -Dtest=DefaultShenyuContextBuilderTest 
-DfailIfNoTests=false test`
   
   Fixes #6629


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to