Hi,

This code works properly in 3.1.5, but not loading image neither in 3.1.6 nor 3.2.0:

final String url = request.getRequestURI();
final File resource = new FileUrlResource(IMAGE_HOME_DIR + url).getFile();
final byte[] bytes = Files.readAllBytes(resource.toPath());
return ResponseEntity.ok().contentType(MediaType.IMAGE_JPEG).body(bytes);

comment: final HttpServletRequest request;

It works on my local machine with every version (including 3.1.6 and 3.2.0), but not working from docker container in a linux machine (server).

No error message in the logs. Browser says: 404 not found

Comment From: bclozel

Please share a minimal sample application (using the Spring Boot docker support) so that we can reproduce the problem.

Comment From: voodoo98

I have just checked the Win10 local docker desktop, and it is working. I will try to give more information later. Thank you!

Comment From: bclozel

Ok we'll reopen this issue once you manage to replicate the problem independently. Thanks!

Comment From: voodoo98

It was a permission denied problem in SB docker container to local files.
I solved by adding ":z" to end of volume defintion