Flyway incorrectly handles paths with a + in their name #884
UrlUtils takes the URL given to it and applies URLDecode.decode() to the file path. This shouldn't be done. According to the javadocs:
The decoder should only applied to parameters included in the form. The problem manifests itself when a path passed to this method includes a '+'. For example, /foo/bar+baz/biz. When the path gets sent to this method, it replaces the '+' with a ' ' (space). The path becomes /foo/bar baz/biz.
My case is that I have my project on a path with a plus in it. When I try to run flyway, it doesn't find the migrations because the URL gets decoded incorrectly.
The text was updated successfully, but these errors were encountered:
Good catch, but it's actually not that easy...
Example: A file
This leaves us with:
This is almost certainly a JDK bug in the file.toURI().toURL() chain, that will need to be worked around.