Coder Social home page Coder Social logo

api-search-query-lexer's People

Contributors

jordanpadams avatar nutjob4life avatar pdsen-ci avatar testpersonal avatar tloubrieu-jpl avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-search-query-lexer's Issues

parsing of string does not succeed

Describe the bug
Given the simple URL from pds-api 54 /products?q="lid eq *text*" and expectation (acceptance criteria), the registry-api-service when nuts and blew up with out of memory. Tracked it down to this module. Turns out there is a simple infinite loop in ANTLR 4.9.2 and earlier that is most likely a fault of the language or how it is being parsed because the ANTL FAQ suggests that not terminating the stream is the biggest problem and the infinite loop is caused by never finding the end of the stream even though all data has been read.

To Reproduce
Run/Debug in Eclipse api.pds.nasa.gov.api_search_query_lexer.TestParsing.

Expected behavior
TestParsing should run to completion and successfully parse the lid eq *text* string without running out of memory.

Version of Software Used
ANTLR 4.3, 4.7, 4.9.

parsing right hand side of operator does not behave as desired

๐Ÿ› Describe the bug

The search string a eq b does not parse while a eq "b" does. The expectation is that both parse to the same result.

๐Ÿ“œ To Reproduce

See TestParsing.isParsable() a unit test for this module.

๐Ÿ•ต๏ธ Expected behavior

Should pass,


** ๐Ÿฆ„ Applicable requirements**

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.