Skip to content

The rest-messages resource bundle mechanics are at bit odd #2392

@cpoulsen-dezide

Description

@cpoulsen-dezide

I wanted to customize some stuff in my HalForms responses (prompt for example).

So I added rest-messages.properties assuming that this was where the defaults go.

When I start my application the file is not considered, I dive into the code and see that a rest-default-messages.properties is mentioned.

As far as I read the code, then if I add an empty rest-default-messages.properties then my rest-messages.properties is loaded / taken into account? A bit surprising...

The culprit seems to be in the HateoasConfiguration.loadResourceBundleResources - where the context.getResources("classpath:rest-messages*.properties") does not match the base-file, it just looks for any translations (which I did not have).

If this is mentioned in the docs I did clearly not find it... But it looks a bit like a bug to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions