spring-projects / spring-projects/spring-security

SEC-2767: @PreAuthorize in combintation with @ModelAttribute fails

Open
#2,995 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.