[jbosstools-issues] [JBoss JIRA] (JBIDE-5435) JSF Resource identifier validator
Alexey Kazakov (JIRA)
issues at jboss.org
Mon Dec 12 16:48:17 EST 2016
[ https://issues.jboss.org/browse/JBIDE-5435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov reassigned JBIDE-5435:
-------------------------------------
Assignee: Jeff MAURY (was: Alexey Kazakov)
> JSF Resource identifier validator
> ---------------------------------
>
> Key: JBIDE-5435
> URL: https://issues.jboss.org/browse/JBIDE-5435
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: jsf
> Reporter: Denis Golovin
> Assignee: Jeff MAURY
> Labels: jsf2, new_and_noteworthy
> Fix For: LATER
>
>
> Validator should check:
> 1. resource references in pages: xhtml, jsp, jspxand etc.
> 2. resource names defined in current project or related projects
> 3. resource names defined in jars
> It should perform verification for JSF2 resources as it is defined in spec's "2.6.1.3 Resource Identifiers" chapter: "<resourceIdentifier> consists of several segments, specified as follows.
> [localePrefix/][libraryName/][libraryVersion/]resourceName[/resourceVersion]
> The run-time must enforce the following rules to consider a <resourceIdentifier>s valid. A <resourceIdentifier> that does not follow these rules must not be considered valid and must be ignored silently.
> * Every character in a resource identifier must be a valid character suitable for use in a string passed to the constructor of java.io.File that takes a single String argument.
> * Segments in square brackets [] are optional.
> * The segments must appear in the order shown above.
> * If libraryVersion is present, it must be preceded by libraryName.
> * If libraryVersion is present, any leaf files under libraryName must be ignored.
> * If resourceVersion is present, it must be preceded by resourceName.
> * There must be a '/' between adjacent segments in a <resourceIdentifier>
> * If libraryVersion or resourceVersion are present, both must be a '_' separated list of integers, neither starting nor ending with '_'
> * If resourceVersion is present, it must be a version number in the same format as libraryVersion. An optional "file extension" may be used with the resourceVersion. If "file extension" is used, a "." character, followed by a "file extension" must be appended to the version number. See the following table for an example."
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jbosstools-issues
mailing list