XnLemon opened a new pull request, #3563:
URL: https://github.com/apache/dubbo-go/pull/3563

   ### Description
   
   Fixes #3554
   
   This change removes panic-prone type assertions from the affected Apollo, 
registry, directory, Dubbo codec, and accesslog paths.
   
   本次修改修复了 Apollo、registry、directory、Dubbo codec 和 accesslog 路径中可能导致 panic 
的不安全类型断言问题。
   
   - Validate Apollo configuration values before converting them to strings.  
     在转换 Apollo 配置值为字符串前增加类型校验。
   
   - Safely handle unexpected registry and invoker cache values.  
     安全处理 registry 和 invoker 缓存中的异常类型。
   
   - Avoid eager registry creation on cache hits.  
     避免缓存命中时重复创建 registry。
   
   - Support both `result.RPCResult` and `*result.RPCResult` in Dubbo response 
encoding.  
     Dubbo 响应编码同时支持 `result.RPCResult` 和 `*result.RPCResult`。
   
   - Return an error for unsupported response result types.  
     对不支持的响应结果类型返回错误。
   
   - Skip invalid accesslog attachments and fall back from `interface` to 
`path`.  
     跳过非法的 accesslog attachment,并在 `interface` 无效时回退到 `path`。
   
   - Add regression tests covering all affected locations.  
     为所有受影响位置补充回归测试。
   
   ### Checklist
   
   - [x] I confirm the target branch is `develop`  
   - [x] Code has passed local testing  
   - [x] I have added tests that prove my fix is effective or that my feature 
works  


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to