Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

<protected-views><url-pattern> does not work as per Servlet 12.1 and is compared against JSF view ID instead of request URL #1369

Closed
glassfishrobot opened this issue Mar 18, 2015 · 3 comments

Comments

@glassfishrobot
Copy link

Trigger: http://stackoverflow.com/q/29104597/157882

Problem 1: does not work as per Servlet 12.1. It does merely an exact match and wildcards are not supported. It's also nowhere in JSF 2.2 specification documented how exactly this should be used in faces-config.xml.

Problem 2: During generating action URL, is not compared against final action URL, but against JSF view ID, causing failures when there's a virtual URL based mapping like .faces or /faces/.

Another non-related problem 3: the current approach is inefficient. It's for every single view checked on a per-request basis while it could easily be (lazily) checked and stored in view/facelet metadata on an application wide basis.

Affected Versions

[2.2]

@glassfishrobot
Copy link
Author

Reported by @BalusC

@glassfishrobot
Copy link
Author

This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1369

@glassfishrobot
Copy link
Author

Closing this as this issue is migrated to jakartaee/faces#1369

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant