You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Path should be decoded before passing it to NestedLocation.parse method. The URL passed to static method NestedLocation.fromUrl is also decoded before passed to NestedLocation.parse method.
URL can contains empty spaced encoded as %20, so it should be decoded
before passing it to NestedLocation. NestedLocation expects file system
path which should not contain URL encoded values.
Closesspring-projectsgh-39655
Hi,
after we migrated from Spring Boot 3.1.8 to 3.2.2, our applications installed in path containing empty space suddenly stoped working.
The problem seems to be in new "nested jar" mechanism used to resource locating in the jar/war file.
I tried to prepare simple test which fails in 3.2.2:
This works fine in 3.1.8:
I think that the problem is in implementation of the NestedUrlConnection class:
Path should be decoded before passing it to NestedLocation.parse method. The URL passed to static method NestedLocation.fromUrl is also decoded before passed to NestedLocation.parse method.
So I would propose this change:
Will create PR for that If you do not mind.
The text was updated successfully, but these errors were encountered: