You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/04/29 11:32:13 UTC
DO NOT REPLY [Bug 49217] New: Accepting java keyword in EL
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Summary: Accepting java keyword in EL
Product: Tomcat 5
Version: 5.5.17
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: minor
Priority: P2
Component: Servlet & JSP API
AssignedTo: dev@tomcat.apache.org
ReportedBy: ysekharbabu@gmail.com
According to EL, the Whatever comes to the right of the dot operator must
follow normal Java naming rules for identifiers. For example it must not be a
Java Key word (Here the example is shown for int, which is a Java key word).
// Java Bean
package library;
public class Book {
private String title;
public void setInt(String title) {
this.title = title;
}
public String getInt() {
return title;
}
}
// JSP
<%
library.Book book = new library.Book();
book.setInt("sample title");
request.setAttribute("book", book);
%>
${book.int}
//OUTPUT
sample title
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #3 from Konstantin Kolinko <kn...@gmail.com> 2010-07-06 06:34:01 EDT ---
Reading jsp-2_1-fr-spec-el.pdf (Expression Language Specification Version 2.1,
Final Release),
1) page 21: (35/122)
"An identifier is constrained to be a Java identifier - e.g., no -, no /, etc."
I think that it says nothing about reserved Java keywords. It is just about
syntax, not the reserved names.
2) page 15: (29/122)
chapter 1.14 ReservedWords
has a list of reserved words that is far shorter than the one implemented in
r960712
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #9 from Konstantin Kolinko <kn...@gmail.com> 2010-11-15 10:59:45 EST ---
Note, that in 6.0 this check is off by default.
One has to set org.apache.el.parser.SKIP_IDENTIFIER_CHECK property to "false"
to enable it.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #14 from Konstantin Kolinko <kn...@gmail.com> 2011-03-02 10:56:12 EST ---
(In reply to comment #13)
> OK, can you point me to the "users list"?
http://tomcat.apache.org/bugreport.html#Bugzilla_is_not_a_support_forum
has the link
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks|50850 |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Mark Thomas <ma...@apache.org> 2010-11-03 14:37:38 UTC ---
The updated patch has been applied to 6.0.x and will be included in 6.0.30
onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-07-05 17:47:39 EDT ---
Thanks for the report. This has been fixed in 7.0.x and will be in 7.0.1
onwards. It has also been proposed for 6.0.x
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #18 from Jackie Rosen <ja...@hushmail.com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Servlet & JSP API |Jasper
Version|5.5.17 |6.0.26
Product|Tomcat 5 |Tomcat 6
Target Milestone|--- |default
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-05-18 17:27:24 EDT ---
For Tomcat 5, the EL support is provided by commons EL so you'll need to raise
a bug in that issue tracker - https://issues.apache.org/jira/browse/EL. Given
the lack activity, I doubt it will get fixed.
For Tomcat 6/7 Tomcat has a new EL parser implementation. It should be possible
to fix this for those versions so I am moving this issue to Tomcst 6.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |joker8achtung1@googlemail.c
| |om
--- Comment #8 from Konstantin Kolinko <kn...@gmail.com> 2010-11-15 10:57:23 EST ---
*** Bug 50120 has been marked as a duplicate of this bug. ***
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
eldar.kamalov@db.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |50850
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #5 from Mark Thomas <ma...@apache.org> 2010-07-07 05:19:44 EDT ---
Created an attachment (id=25726)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25726)
Patch for 6.0.x
Back port of changes to 7.0.x with an additional option to disable the check
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
eldar.kamalov@db.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #11 from eldar.kamalov@db.com 2011-03-02 04:06:44 EST ---
Does not work in 7.0.4
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eldar.kamalov@db.com
--- Comment #10 from Konstantin Kolinko <kn...@gmail.com> 2011-03-01 13:36:54 EST ---
*** Bug 50850 has been marked as a duplicate of this bug. ***
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #16 from Marcio Lucca <ma...@gmail.com> 2011-09-02 13:57:44 UTC ---
I don't know guys, I just ran into the same problem and I'll have to agree with
Konstantin on comment 3: both specs 2.1 and 2.2 have that "Reserved Words"
section, and neither contains "class" as a keyword. It makes you wonder: "why
would both specifications contain that section anyway?" .It seems to me the
specification is contradicting itself, so both interpretations might be
considered correct. Still this is something I think needs clarification from
the JCP. Otherwise be certain that this bug will continue being duplicated over
and over again.
Just my 2 cents.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Konstantin Kolinko <kn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adolfo.benedetti@gmail.com
--- Comment #15 from Konstantin Kolinko <kn...@gmail.com> 2011-08-26 21:59:15 UTC ---
*** Bug 51728 has been marked as a duplicate of this bug. ***
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
eldar.kamalov@db.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #13 from eldar.kamalov@db.com 2011-03-02 08:29:37 EST ---
>
> If you have any further questions on this, the users list is the place to seek
> help.
OK, can you point me to the "users list"?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #12 from Mark Thomas <ma...@apache.org> 2011-03-02 04:51:19 EST ---
(In reply to comment #11)
> Does not work in 7.0.4
Tomcat's 7's behaviour is as per the EL specification although the identifier
check can be disabled as a temporary work-around for non-specification
compliant applications.
If you have any further questions on this, the users list is the place to seek
help.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #17 from Mark Thomas <ma...@apache.org> 2011-09-02 14:12:33 UTC ---
The EL specification, Tomcat's implementation, the EL TCK and the EL expert
group are all in agreement. EL identifiers must be valid Java identifiers as
per the Java language specification. No further clarification is required.
The org.apache.el.parser.SKIP_IDENTIFIER_CHECK is provided for
non-specification compliant applications but is is strongly recommended that
applications fix any bugs that rely on this feature for a work-around.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
--- Comment #4 from Mark Thomas <ma...@apache.org> 2010-07-06 08:08:57 EDT ---
Java identifier is defined by the Java Language Specification and explicitly
states keywords are not permitted. The definition is actually even stricter
than currently implemented. I'll look at tightening that up.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49217] Accepting java keyword in EL
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49217
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #25726|0 |1
is obsolete| |
--- Comment #6 from Mark Thomas <ma...@apache.org> 2010-07-07 07:33:17 EDT ---
Created an attachment (id=25727)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25727)
Patch for 6.0.x v2
Updated patch
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org