{"record":{"id":"37eb8660c94665e9","repo":"apache/flink","slug":"bucket-name-must-not-be-null-or-empty","errorCode":null,"errorMessage":"Bucket name must not be null or empty","messagePattern":"Bucket name must not be null or empty","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3BucketConfig.java","lineNumber":237,"sourceCode":"            sb.append(\", assumeRoleExternalId='\").append(assumeRoleExternalId).append(\"'\");\n        }\n        if (assumeRoleSessionName != null) {\n            sb.append(\", assumeRoleSessionName='\").append(assumeRoleSessionName).append(\"'\");\n        }\n        if (assumeRoleSessionDurationSeconds != null) {\n            sb.append(\", assumeRoleSessionDurationSeconds=\")\n                    .append(assumeRoleSessionDurationSeconds);\n        }\n        if (credentialsProvider != null) {\n            sb.append(\", credentialsProvider='\").append(credentialsProvider).append(\"'\");\n        }\n        sb.append('}');\n        return sb.toString();\n    }\n\n    static Builder builder(String bucketName) {\n        if (StringUtils.isNullOrWhitespaceOnly(bucketName)) {\n            throw new IllegalArgumentException(\"Bucket name must not be null or empty\");\n        }\n        return new Builder(bucketName);\n    }\n\n    static final class Builder {\n        private final String bucketName;\n        @Nullable private String region;\n        @Nullable private String endpoint;\n        @Nullable private Boolean pathStyleAccess;\n        @Nullable private String accessKey;\n        @Nullable private String secretKey;\n        @Nullable private String sseType;\n        @Nullable private String sseKmsKeyId;\n        @Nullable private String assumeRoleArn;\n        @Nullable private String assumeRoleExternalId;\n        @Nullable private String assumeRoleSessionName;\n        @Nullable private Integer assumeRoleSessionDurationSeconds;\n        @Nullable private String credentialsProvider;","sourceCodeStart":219,"sourceCodeEnd":255,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3BucketConfig.java#L219-L255","documentation":"Error \"Bucket name must not be null or empty\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Bucket name must not be null or empty.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Bucket name must not be null or empty.","solutions":["Address the cause reported by the error message: Bucket name must not be null or empty","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Bucket name must not be null or empty\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}