-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[backend] Fix Server-Side Request Forgery #2136
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2136 +/- ##
============================================
- Coverage 35.12% 35.08% -0.05%
Complexity 1418 1418
============================================
Files 535 536 +1
Lines 16189 16208 +19
Branches 1037 1039 +2
============================================
Hits 5686 5686
- Misses 10209 10228 +19
Partials 294 294 ☔ View full report in Codecov by Sentry. |
@@ -143,6 +145,13 @@ public Executor registerExecutor( | |||
produces = MediaType.APPLICATION_OCTET_STREAM_VALUE) | |||
public @ResponseBody ResponseEntity<byte[]> getOpenBasAgentExecutable( | |||
@PathVariable String platform, @PathVariable String architecture) throws IOException { | |||
if (!AVAILABLE_PLATFORMS.contains(platform)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the string collections are constructed with case-lowered names, is it ok to require callers to use lower case path parts as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers for the docs
992a2f1
to
1002ad4
Compare
Related issues