yyqdbngt opened a new pull request, #3813:
URL: https://github.com/apache/rocketmq-dashboard/pull/3813

   ### Motivation
   
   The existing `DataSourceClientHttpRequestFactoryTest` verifies redirects are 
disabled for GET only. Since the SSRF posture relies on this factory for every 
datasource HTTP call, the guard should be locked for each verb the client can 
issue.
   
   ### Changes
   
   - `prepareConnectionShouldDisableRedirectsForEveryHttpMethod`: GET, POST, 
PUT and DELETE connections all end up with `setInstanceFollowRedirects(false)` 
after preparation (PATCH is excluded because `HttpURLConnection` rejects it 
natively).
   
   ### Verification
   
   ```
   mvn -B test -Dtest=DataSourceClientHttpRequestFactoryTest
   [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


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