Skip to content
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

SEC-2941: Default RequestPostProcessor overrides additional DefaultRequestPostProcessor #3149

Closed
spring-projects-issues opened this issue Apr 22, 2015 · 3 comments
Assignees
Labels
in: test An issue in spring-security-test type: bug A general bug type: jira An issue that was migrated from JIRA
Milestone

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Apr 22, 2015

Rob Winch (Migrated from SEC-2941) said:

Spring Security's Default RequestPostProcessor implementations override additional RequestPostProcessor implementations.

For example the following fails:

mvc = MockMvcBuilders.webAppContextSetup(context)
        .apply(springSecurity())
        .defaultRequest(get("/").with(user("default")))
        .build();

mvc
    .perform(get("/admin/abc").with(user("user1").roles("ADMIN","USER")))
    .andExpect(status().isNotFound())
    .andExpect(authenticated().withUsername("user1"));

mvc
    .perform(get("/admin/abc"))
    .andExpect(status().isForbidden())
    .andExpect(authenticated().withUsername("default"));
@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jul 22, 2015

Rob Winch said:

Pushed back since this depends on Spring 4.2 which is not GA yet

@spring-projects-issues spring-projects-issues added in: test An issue in spring-security-test Closed type: bug A general bug type: jira An issue that was migrated from JIRA labels Feb 5, 2016
@spring-projects-issues spring-projects-issues added this to the 4.0.3 milestone Feb 5, 2016
@spring-projects-issues
Copy link
Author

spring-projects-issues commented Feb 6, 2016

This issue depends on https://jira.spring.io/browse/SPR-12945
This issue relates to #3061

1 similar comment
@spring-projects-issues
Copy link
Author

spring-projects-issues commented Feb 6, 2016

This issue depends on https://jira.spring.io/browse/SPR-12945
This issue relates to #3061

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test An issue in spring-security-test type: bug A general bug type: jira An issue that was migrated from JIRA
Projects
None yet
Development

No branches or pull requests

2 participants