Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ActiveWeb: RequestDispatcher swallows exception with message if AppConfig is misconfigured #993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ipolevoy opened this issue Dec 18, 2019 · 0 comments

Comments

@ipolevoy
Copy link
Member

Example:

public class AppControllerConfig extends AbstractControllerConfig {

    public void init(AppContext context) {
        add(new CatchAllFilter());
        add(new AuthenticationFilter()).excludeActions("login");
        add(new DBConnectionFilter("default", true)).to(ApiController.class, EarlyAccessController.class);
    }
}

The line add(new AuthenticationFilter()).excludeActions("login"); is not allowed, and the exception is:

java.lang.IllegalArgumentException: controller classes not provided. Please call 'to(controllers)' before 'exceptAction(actions)'

However, this exception is swallowed, and no filters are added to the config

@ipolevoy ipolevoy changed the title ActiveWeb: RequestDispatched swallows exception with message if AppConfig is misconfigured ActiveWeb: RequestDispatcher swallows exception with message if AppConfig is misconfigured Dec 18, 2019
ipolevoy added a commit that referenced this issue Dec 18, 2019
ipolevoy added a commit that referenced this issue Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant