Skip to content

Commit c8f9fd6

Browse files
authored
Disallow GET requests to /management/commands endpoint (#7910)
* Disallow GET requests to /management/commands endpoint
1 parent 8e0fdc2 commit c8f9fd6

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)