Skip to content

Conversation

@mate1983
Copy link

What's this PR do/fix?

add log and try/catch for find StackOverflowError in which api and method。

Are there unit tests? If not how should this be manually tested?

have unit tests

Any background context you want to provide?

yes

What are the relevant issues?

…e infinite loop in ModelAttributeParameterExpander StackOverflowError
…e infinite loop in ModelAttributeParameterExpander StackOverflowError
} catch (Error e) {
String contentMsg = "Process path[" + path + "],method[" + methodName + "] error";
log.error(contentMsg, e);
throw new Error(contentMsg, e);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

becase the log impl is slf4j,but not all log impl is it ,so new Error object and join the msg

@codecov
Copy link

codecov bot commented Oct 10, 2017

Codecov Report

Merging #2066 into master will decrease coverage by 0.06%.
The diff coverage is 84.61%.

@@ Coverage Diff @@ ## master #2066 +/- ## ============================================ - Coverage 95.77% 95.71% -0.07%  - Complexity 2734 2735 +1  ============================================ Files 317 317 Lines 5995 6001 +6 Branches 494 494 ============================================ + Hits 5742 5744 +2  - Misses 146 150 +4  Partials 107 107
@springfox springfox deleted a comment Oct 10, 2017
@dilipkrish dilipkrish added this to the 2.8.0 milestone Dec 13, 2017
@dilipkrish dilipkrish merged commit 5b67436 into springfox:master Dec 13, 2017
@ghost ghost removed the current label Dec 13, 2017
@dilipkrish dilipkrish changed the title add StackOverflowError error catch and log for easy find reason Added error handling around "duplicate" request handlers Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants