Skip to content

Conversation

yhs0092
Copy link
Member

@yhs0092 yhs0092 commented Nov 15, 2017

See details in https://servicecomb.atlassian.net/browse/JAV-495

If the RestServletInitializer is invoked and URL pattern is not specified, set a default URL pattern "/*" to avoid the initialization failure of JavaChassis servlet.

yaohaishi added 2 commits November 15, 2017 15:40
…ot specified, set a default URL pattern to the configuration.
@yhs0092
Copy link
Member Author

yhs0092 commented Nov 15, 2017

@wujimin 这样修改行吗?RestServletInjector在RestServletInitializer和CseXmlWebApplicationContext有调用,现在的修改方案应该只影响到RestServletInitializer。

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 86.443% when pulling 6d4369d on yhs0092:JAV-495_set_urlPattern_default_value into 8be387a on ServiceComb:master.


@Override
public void handle(Invocation invocation, AsyncResponse asyncResponse) throws Exception {
LOGGER.info("If you see this log, that means this demo project has been converted to ServiceComb framework.");
Copy link
Contributor

Choose a reason for hiding this comment

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

please make the case automatically
eg:
 if response type is User
 in handler, assign user.name = "myHandler"
 then consumer determine, if user.name is empty, means did not run with serviceComb handlers

wujimin and others added 16 commits November 16, 2017 14:28
…anged URL cause vertx found wrong failureHandler

solution:changed URL only saved in VertxServerRequestToHttpServletRequest, not save to HttpServerRequest
* JAV-492 Edge service not properly handle 404 requests

* JAV-492 Edge service not properly handle 404 requests

* Update TestEdgeInvocation.java

* Update TestEdgeInvocation.java
…ot specified, set a default URL pattern to the configuration.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 86.831% when pulling 3b22ac8 on yhs0092:JAV-495_set_urlPattern_default_value into 8be387a on ServiceComb:master.

@yhs0092
Copy link
Member Author

yhs0092 commented Nov 18, 2017

This PR is abandoned. And I will create another PR after improving the demo.

@yhs0092 yhs0092 closed this Nov 18, 2017
@yhs0092 yhs0092 deleted the JAV-495_set_urlPattern_default_value branch November 21, 2017 07:26
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.

6 participants