{"record":{"id":"c0e1798db55f97f0","repo":"quarkusio/quarkus","slug":"no-post-data-c0e179","errorCode":null,"errorMessage":"No post data","messagePattern":"No post data","errorType":"exception","errorClass":"RuntimeException","httpStatus":500,"severity":"error","filePath":"integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/RootResource.java","lineNumber":19,"sourceCode":"package io.quarkus.it.undertow.elytron;\n\nimport jakarta.ws.rs.Consumes;\nimport jakarta.ws.rs.GET;\nimport jakarta.ws.rs.POST;\nimport jakarta.ws.rs.Path;\nimport jakarta.ws.rs.Produces;\nimport jakarta.ws.rs.core.Context;\nimport jakarta.ws.rs.core.MediaType;\nimport jakarta.ws.rs.core.SecurityContext;\n\n@Path(\"/rest\")\npublic class RootResource {\n\n    @POST\n    @Consumes(MediaType.TEXT_PLAIN)\n    public String posts(String data, @Context SecurityContext sec) {\n        if (data == null) {\n            throw new RuntimeException(\"No post data\");\n        }\n        if (sec.getUserPrincipal().getName() == null) {\n            throw new RuntimeException(\"Failed to get user principal\");\n        }\n        return \"post success\";\n    }\n\n    @GET\n    @Produces(MediaType.TEXT_PLAIN)\n    public String approval(@Context SecurityContext sec) {\n        if (sec.getUserPrincipal().getName() == null) {\n            throw new RuntimeException(\"Failed to get user principal\");\n        }\n        return \"get success\";\n    }\n}\n","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/RootResource.java#L1-L36","documentation":"Sentinel guard in an elytron-undertow integration-test JAX-RS resource: the POST body parameter 'data' arrived as null, so the test endpoint refuses to proceed. This is test-application validation of request input, not framework code.","triggerScenarios":"Thrown at integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/RootResource.java:19 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Send a non-empty text/plain body with the POST request","Check the client posts the expected payload"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}