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

Value containing double quotes generates an error on OrderList and PickList #1955

Closed
mertsincan opened this issue Dec 7, 2016 · 0 comments
Closed
Labels
6.0.11 🐞 defect Bug...Something isn't working
Milestone

Comments

@mertsincan
Copy link
Member

Reported by PRO User;

The UI allows all characters at the moment, but if someone enters double quotes and saves the data and brings it back up, an error is generated:
10:59:17,704 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost/127.0.0.1:443-10) Index: 0, Size: 0: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653) [rt.jar:1.8.0_65]
at java.util.ArrayList.get(ArrayList.java:429) [rt.jar:1.8.0_65]
at org.primefaces.component.orderlist.OrderList.validate(OrderList.java:273) [primefaces-6.0.jar:6.0]
at javax.faces.component.UIInput.executeValidate(UIInput.java:1237) [jboss-jsf-api_2.1_spec-2.1.28.SP1-redhat-1.jar:2.1.28.SP1-redhat-1]
...

If I change the value in the db to single quotes, the page comes up and shows all the values as expected.

@mertsincan mertsincan added 6.0.11 🐞 defect Bug...Something isn't working labels Dec 7, 2016
@mertsincan mertsincan added this to the 6.1 milestone Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.0.11 🐞 defect Bug...Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant