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

Closed
mertsincan opened this Issue Dec 7, 2016 · 0 comments

Projects

None yet

1 participant

@mertsincan
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 this to the 6.1 milestone Dec 7, 2016
@mertsincan mertsincan added a commit that closed this issue Dec 7, 2016
@mertsincan mertsincan Fixed #1955 0dbac9a
@mertsincan mertsincan closed this in 0dbac9a Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment