Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

VelocityFactory sets invalid properties #512

@OrangeDog

Description

@OrangeDog

This may be (the deprecations certainly are) because I upgraded Velocity to 2.3 for a CVE (#511). I haven't checked the old version.

VelocityFactory has some issues:

  • RuntimeConstants.ENCODING_DEFAULT is "UTF-8". The property name is actually in RuntimeContants.INPUT_ENCODING. As the default is already UTF-8, this fortunately has no effect.
  • RuntimeConstants.RESOURCE_LOADER is deprecated. Replacement is RuntimeConstants.RESOURCE_LOADERS.
  • classpath.resource.loader.class is deprecated. Replacement is resource.loader.classpath.class.

Workaround is to ignore VelocityFactory and just make the bean yourself. See also #152.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions