spring-projects / spring-projects/spring-security
SEC-2767: @PreAuthorize in combintation with @ModelAttribute fails
Open
Nobody has claimed this yet.
in: core
type: bug
type: jira
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
uxbux hulan (Migrated from SEC-2767) said:
using: spring & spring-mvc 4.1.0.RELEASE
when annotated controllers with @ModelAttribute and @PreAuthorize autowired dependencies are null. found out that removing @ModelAttribute works.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the reported interaction between Spring MVC annotated controllers, @ModelAttribute, and @PreAuthorize on Spring 4.1.0.RELEASE. Reproduce the case and trace where autowired dependencies become null; done means the combination works correctly with a regression test covering the controller scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100