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

VelocityFactory sets invalid properties #512

Open
OrangeDog opened this issue Apr 13, 2021 · 0 comments
Open

VelocityFactory sets invalid properties #512

OrangeDog opened this issue Apr 13, 2021 · 0 comments

Comments

@OrangeDog
Copy link
Contributor

OrangeDog commented Apr 13, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant