Skip to content

Provide detailed, path-specific validation errors in MaxMindDatabaseConfig.java #5865

@Sungyoun-Kim

Description

@Sungyoun-Kim

Problem

MaxMindDatabaseConfig.java validates database_paths with
@AssertTrue(message = "database_paths should be S3 URI or HTTP endpoint or local directory")

@AssertTrue(message = "database_paths should be S3 URI or HTTP endpoint or local directory")

No matter what is wrong—a nonexistent file, a directory instead of a file, an S3/HTTP URL where a local file is expected, etc.—users always see that single generic line.
Because the validator collapses every error into the same generic message, developers can’t see which specific database_paths entry failed or whether it’s missing, a directory, or an unsupported URI scheme.

Request

Replace the generic message with path-specific feedback, e.g.

Path does not exist: /foo/geoip.mmdb
Directory provided, but a file is required: /data/
S3 URI not allowed here: s3://bucket/geoip.mmdb

Even one clear, detailed message per failing path would make troubleshooting much faster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Unplanned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions