spring-projects / spring-projects/spring-security

SEC-2610: spring-faces + probleme with url parameters

Open
#2,826 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: taglibs type: bug type: jira
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

AndreeTago (Migrated from SEC-2610) said:

i want to explor the spring security taglibs in my xhtml page so for that i do this steps:

  1. create a springsecurity.taglib.xml:
http://www.springframework.org/security/tags authorize org.springframework.faces.security.FaceletsA uthorizeTagHandler areAllGranted org.springframework.faces.security.FaceletsA uthorizeTagUtils boolean areAllGranted(java.lang.String) areAnyGranted org.springframework.faces.security.FaceletsA uthorizeTagUtils boolean areAnyGranted(java.lang.String) areNotGranted org.springframework.faces.security.FaceletsA uthorizeTagUtils boolean areNotGranted(java.lang.String) isAllowed org.springframework.faces.security.FaceletsA uthorizeTagUtils boolean isAllowed(java.lang.String, java.lang.String)
  1. Register the above file in web.xml
javax.faces.FACELETS_LIBRARIES /WEB-INF/springsecurity.taglib.xml

when i deploy my project I get an error that requires me to add a spring-faces to solve it, but i get a new problem that the jsf url parametred no longer works(like http://localhost:8080/projet/etudiant.jsf?idEtudiant=2 ). before adding the spring-faces dependency it work's fine, the problem begin when i add this dependency of spring-faces

have you any idea about this probleme and thank you

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

Reproduce the deployment using the springsecurity.taglib.xml Facelets library and the javax.faces.FACELETS_LIBRARIES entry in web.xml, then compare URL parameter handling before and after adding the spring-faces dependency. Trace the JSF request for etudiant.jsf?idEtudiant=2 and document the cause and a verified fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.