Skip to content

Commit 5709909

Browse files
wmh1108-sasJinwooHwang
authored andcommitted
Disallow GET requests to /management/commands endpoint (#7910)
* Disallow GET requests to /management/commands endpoint (cherry picked from commit c8f9fd6)
1 parent ce3c6b1 commit 5709909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geode-web/src/main/java/org/apache/geode/management/internal/web/controllers/ShellCommandsController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class ShellCommandsController extends AbstractCommandsController {
7979

8080
private static final String DEFAULT_INDEX_TYPE = "range";
8181

82-
@RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}, value = "/management/commands")
82+
@RequestMapping(method = {RequestMethod.POST}, value = "/management/commands")
8383
public ResponseEntity<InputStreamResource> command(@RequestParam(value = "cmd") String command,
8484
@RequestParam(value = "resources", required = false) MultipartFile[] fileResource)
8585
throws IOException {

0 commit comments

Comments
 (0)