[ https://issues.apache.org/jira/browse/CMIS-1051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Hübel resolved CMIS-1051. ------------------------------ Resolution: Fixed > OOM when parsing string with double quotes > ------------------------------------------ > > Key: CMIS-1051 > URL: https://issues.apache.org/jira/browse/CMIS-1051 > Project: Chemistry > Issue Type: Bug > Components: opencmis-server > Affects Versions: OpenCMIS 1.1.0 > Reporter: Michael Brackx > Assignee: Jens Hübel > > parsing a query with an incorrect string literal using double quotes (") iso > of single quotes (') leads to an OOM exception > example query: > {noformat} > SELECT * FROM cmis:document WHERE cmis:name = "a" > {noformat} > testcase for TestParserStrict > {noformat} > @Test > public void queryDoubleQuotes() throws Exception { > testParserFail("query", "SELECT * FROM cmis:document WHERE cmis:name > = \"a\""); > } > {noformat} > stacktrace: > {noformat} > java.lang.OutOfMemoryError: Java heap space > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > at > org.apache.chemistry.opencmis.server.support.query.AbstractParserTest.execParser(AbstractParserTest.java:188) > at > org.apache.chemistry.opencmis.server.support.query.AbstractParserTest.testParserFail(AbstractParserTest.java:95) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)