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

Docet >illegalArgumentException while search a script: script example (<script type="text/vbscript">alert(kappa)</script>) #49

Open
hamadodene opened this issue Oct 4, 2018 · 2 comments

Comments

@hamadodene
Copy link

18-10-04-12-25-00 java.lang.IllegalArgumentException: expected '>' at position 26
java.lang.IllegalArgumentException: expected '>' at position 26
at org.apache.lucene.util.automaton.RegExp.parseSimpleExp(RegExp.java:1127)
at org.apache.lucene.util.automaton.RegExp.parseCharClassExp(RegExp.java:1090)
at org.apache.lucene.util.automaton.RegExp.parseComplExp(RegExp.java:1078)
at org.apache.lucene.util.automaton.RegExp.parseRepeatExp(RegExp.java:1047)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1040)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseConcatExp(RegExp.java:1041)
at org.apache.lucene.util.automaton.RegExp.parseInterExp(RegExp.java:1033)
at org.apache.lucene.util.automaton.RegExp.parseUnionExp(RegExp.java:1027)
at org.apache.lucene.util.automaton.RegExp.(RegExp.java:405)
at org.apache.lucene.search.RegexpQuery.(RegexpQuery.java:108)
at org.apache.lucene.search.RegexpQuery.(RegexpQuery.java:93)
at org.apache.lucene.queryparser.classic.QueryParserBase.newRegexpQuery(QueryParserBase.java:580)
at org.apache.lucene.queryparser.classic.QueryParserBase.getRegexpQuery(QueryParserBase.java:781)
at org.apache.lucene.queryparser.classic.QueryParserBase.handleBareTokenQuery(QueryParserBase.java:851)
at org.apache.lucene.queryparser.classic.QueryParser.Term(QueryParser.java:348)
at org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:247)
at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:202)
at org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:160)
at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:117)
at docet.engine.SimpleDocetDocSearcher.searchForMatchingDocuments(SimpleDocetDocSearcher.java:104)
at docet.engine.DocetManager.searchPagesByKeywordAndLangWithRerencePackage(DocetManager.java:796)
at docet.engine.DocetManager.serveSearchRequest(DocetManager.java:1129)
at docet.engine.DocetManager.serveRequest(DocetManager.java:1023)
at docet.engine.DocetManager.serveRequest(DocetManager.java:907)
at magnews.gateway.docet.DocetSimpleServlet.processRequest(DocetSimpleServlet.java:69)
at magnews.gateway.docet.DocetSimpleServlet.doGet(DocetSimpleServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:645)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
:

@hamadodene hamadodene changed the title Docet >illegalArgumentException while search a script: example (<script type="text/vbscript">alert(kappa)</script>) Docet >illegalArgumentException while search a script: script example (<script type="text/vbscript">alert(kappa)</script>) Oct 4, 2018
@eolivelli
Copy link
Contributor

Thank you for reporting this.
We are going to create a new release soon. We can work on a fix.
Or maybe you can try to fix and sned a PR

@eolivelli
Copy link
Contributor

@diegosalvi did you solve this one ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants