I have a small problem that I can’t figure out the answer for. I tried stackoverflow.com but as usual, at least for my questions there (0-5), crickets.
To summarize the problem, I have a download folder that is setup to permitAll() access and this works great.
The problem is that when the folder is empty and someone tries to get the file that should be there, rather than letting the exception happen or returning an error code, spring preempts the error and redirects to the login page, even when told to ignore resource errors. This in turn leads to a response code of 200 even though there was a problem.
I am not sure if this is a bug in spring due to the resource being outside the classpath, ie not inside the webapp or resources folder where static files usually reside or something extra I need to do to bypass the redirect.
If anyone is familiar enough with spring-boot and can help with the question, or maybe even direct me towards a different approach, Id appreciate it.