{"record":{"id":"a0d184c55619c91a","repo":"quarkusio/quarkus","slug":"bad-input-a0d184","errorCode":null,"errorMessage":"bad input","messagePattern":"bad input","errorType":"exception","errorClass":"RuntimeException","httpStatus":500,"severity":"error","filePath":"integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java","lineNumber":31,"sourceCode":"    @GET\n    @Produces(MediaType.TEXT_PLAIN)\n    public String hello() {\n        return \"hello\";\n    }\n\n    @POST\n    @Produces(MediaType.TEXT_PLAIN)\n    @Consumes(MediaType.TEXT_PLAIN)\n    public String hello(String name) {\n        return \"hello \" + name;\n    }\n\n    @POST\n    @Produces(MediaType.APPLICATION_OCTET_STREAM)\n    @Consumes(MediaType.APPLICATION_OCTET_STREAM)\n    public byte[] hello(byte[] bytes) {\n        if (bytes[0] != 0 || bytes[1] != 1 || bytes[2] != 2 || bytes[3] != 3) {\n            throw new RuntimeException(\"bad input\");\n        }\n        byte[] rtn = { 4, 5, 6 };\n        return rtn;\n    }\n\n    @POST\n    @Path(\"empty\")\n    public void empty() {\n\n    }\n\n    @GET\n    @Path(\"error\")\n    public void error() {\n        throw new RuntimeException(\"Oups!\");\n    }\n\n}","sourceCodeStart":13,"sourceCodeEnd":49,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java#L13-L49","documentation":"Sentinel guard in a google-cloud-functions-http integration-test resource: the binary octet-stream POST body did not start with the expected bytes 0,1,2,3, so the test endpoint rejects it. Test-application input validation on the byte array payload.","triggerScenarios":"Thrown at integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java:31 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Send the exact expected 4-byte prefix in the request body","Check the client's binary encoding of the 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-14T00:17:10.932Z"}