Comments (10)
- Issue Imported From: https://github.com/javaee/servlet-spec/issues/34
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @shingwaichan
- Original Issue Closed By:@glassfishrobot
from servlet.
@glassfishrobot Commented
Reported by elygre
from servlet.
@glassfishrobot Commented
@shingwaichan said:
According to JSR 115 MR2, "*" means all the roles defined for the web app.
It is not any users there.
from servlet.
@glassfishrobot Commented
elygre said:
Shing Wai Chan Yes, that is correct. This issue is an enhancement request for a new auth-constraint that does not require roles, but instead just requires any valid user.
The use case is very common. As show above, the google app-engine deviates from the servlet spec and redefines this aspect of web.xml to support the use case. That should be a strong argument that there is a market requirement.
from servlet.
@glassfishrobot Commented
@shingwaichan said:
"*" is for any roles rather than users as defined in JSR 115.
We need to investigate a backward compatible solution.
One way to achieve this is to have the realm to add a universal role to any authenticated users. This is how GlassFish resolve this issue.
You can find more details in
https://blogs.oracle.com/swchan/entry/assign_groups
from servlet.
@glassfishrobot Commented
elygre said:
I totally agree that we need a backward compatible solution. The jira issue does not suggest using the role name "*" at all, but clearly states that this "conflicts with the current spec", and suggests that something else is needed, "maybe the something like this would work":
<auth-constraint anyAuthenticatedUserAllowed="true" />
The GlassFish solutions is interesting. I would hope for a servlet-level solution (which would then be supported by all appservers), but at least it serves to further validate the requirement
from servlet.
@glassfishrobot Commented
@shingwaichan said:
A special role "**" is added to achieve this in the spec.
Please see section 13.3 of the Servlet 3.1 PFD for details.
from servlet.
@glassfishrobot Commented
@shingwaichan said:
See also section 13.4.1.3 in Servlet 3.1 PFD.
from servlet.
@glassfishrobot Commented
This issue was imported from java.net JIRA SERVLET_SPEC-34
from servlet.
@glassfishrobot Commented
Marked as fixed on Thursday, February 28th 2013, 4:29:20 pm
from servlet.
Related Issues (20)
- Some ServletContext getters still throw UnsupportedOperationException HOT 1
- TCK Challenge: Cookie setMaxAgePositiveTest using incorrect CookiePolicy for Date parsing HOT 7
- TCK Challenge: doHeadTest shouldn't validate optional payload header fields HOT 7
- TCK Challenge: isTrailerFields JavaDoc and default implementation inconsistent HOT 7
- Add read/write from/to ByteBuffer HOT 1
- [TCK Challenge] invalidateHttpSessionxTest HOT 4
- [TCK Challenge] A number of cross context HTTP session tests are failing HOT 14
- [TCK Challenge] dispatchAfterCommitTest4 HOT 2
- [TCK Challenge] dispatchAfterCommitTest5 HOT 2
- [TCK Challenge] object identity test on ServletRequests in listeners vs servlets HOT 6
- [TCK Challenge] inconsistent testing of cookies HOT 7
- Is the maintenance plan updated for jakarta servlet-4.0.x? HOT 3
- Add PATCH support in HttpServlet.java HOT 3
- Session 9 (Dispatching Requests) is missing information on jakarta.servlet.*.mapping request attributes
- HttpServletRequest and changes to attributes event HOT 1
- ServletContext - getContext(String uripath) method confusing javadoc HOT 4
- [TCK Challenge] check for object identity in dispatcher test HOT 2
- [TCK Challenge] attempting to writing more than content-length bytes HOT 1
- License oddities in `jakarta.servlet-api-6.0.0.jar`
- Couldn't resolve specified result-set mapping name HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servlet.