Skip to content

SCB-373 change Rest args code/encoding to HttpClientFilter/HttpServer…#578

Merged
liubao68 merged 3 commits into
apache:masterfrom
hwcse:SCB-373
Mar 14, 2018
Merged

SCB-373 change Rest args code/encoding to HttpClientFilter/HttpServer…#578
liubao68 merged 3 commits into
apache:masterfrom
hwcse:SCB-373

Conversation

@jeho0815
Copy link
Copy Markdown
Contributor

@jeho0815 jeho0815 commented Mar 8, 2018

…Filter,so some body can do something through writing other Filters around args coding

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 8, 2018

Coverage Status

Coverage increased (+0.04%) to 87.21% when pulling 4df15a0 on hwcse:SCB-373 into c301036 on apache:master.

try {
RestCodec.argsToRest(invocation.getArgs(), swaggerRestOperation, restClientRequest);
requestEx.setBodyBuffer(restClientRequest.getBodyBuffer());
} catch (Exception e) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it's better to catch throwable

produceProcessor.encodeResponse(output, body);

responseEx.setBodyBuffer(output.getBuffer());
} catch (Exception e) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it's better to catch throwable

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, i'll repair this

@liubao68 liubao68 merged commit bc61800 into apache:master Mar 14, 2018
@zhengyangyong
Copy link
Copy Markdown

If user direct invoke rest producer by explorer, explorer will try to get favicon first,then producer will throw an null point exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants