Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException in HtmlResponsewriter (2.3.5.SP) #48

Open
mcbros opened this issue Oct 24, 2019 · 3 comments
Open

ArrayIndexOutOfBoundsException in HtmlResponsewriter (2.3.5.SP) #48

mcbros opened this issue Oct 24, 2019 · 3 comments

Comments

@mcbros
Copy link

mcbros commented Oct 24, 2019

Placing an EL expression that returns an empty String in a script element (and most certainly anywhere as CDATA) leads to an ArrayIndexOutOfBoundsException with index -2 in
jsf-ri/src/main/java/com/sun/faces/renderkit/html_basic/HtmlResponseWriter.java line 1499.
The case of an empty String is simply uncovered in the method.

@fjuma
Copy link

fjuma commented Oct 24, 2019

Thanks for creating this issue. Please create a corresponding issue on the upstream issue tracker:

https://github.com/eclipse-ee4j/mojarra/issues

Thanks!

@cmunier
Copy link

cmunier commented Jan 21, 2020

From my perspective, this is a severe problem that should be handled with high priority.

We are using a component framework where it is common that composite component attributes are used as parameters for encapsulated JavaScript for added functionality. It is a common case that the default value of an optional attribute is empty. So there you now always end up with an Exception. To my mind there is no useful workaround.

@aashay5
Copy link

aashay5 commented Jul 14, 2021

Hey How to participate in resolving an issue in github

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

No branches or pull requests

4 participants