spring-projects / spring-projects/spring-boot
Suppress "Circular view path [error]" error message
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
- clone simple project: https://github.com/stepancheg/spring-boot-whitelabel
project contains controller with function
@RequestMapping("/throw")
@ResponseBody
public String t() {
throw new RuntimeException();
}
and project calls
System.setProperty("error.whitelabel.enabled", "false");
before main.
- run main class (demo.Application)
- point browser to http://localhost:8080/throw
Browser displays white page. Expecting something more sensible. Tomcat default error handler would be perfect.
Using spring-boot 1.2.0.RC2.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked simple project and its demo.Application entry point, then reproduce the request to /throw after setting error.whitelabel.enabled to false. Compare the resulting white page with the expected Tomcat default error handling; the issue is done when the circular view path message is suppressed and a more useful error response is shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100