chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Brackx (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CMIS-1051) OOM when parsing string with double quotes
Date Tue, 14 Nov 2017 12:03:00 GMT
Michael Brackx created CMIS-1051:
------------------------------------

             Summary: 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


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)

Mime
View raw message