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

ParserRuntimeException for anonymous #1271

Open
Peter2121 opened this issue Dec 14, 2017 · 0 comments
Open

ParserRuntimeException for anonymous #1271

Peter2121 opened this issue Dec 14, 2017 · 0 comments

Comments

@Peter2121
Copy link

Peter2121 commented Dec 14, 2017

GitBlit crashes with the following exception:

2017-12-13 21:08:58 [ERROR] Failed to read default message from login.mkd! for anonymous
org.parboiled.errors.ParserRuntimeException: Error while parsing action 'Root/Sequence/ZeroOrMore/Sequence/Block/FirstOf/Heading/Fir
stOf/AtxHeading/OneOrMore/Sequence/AtxInline/Inline/Inline_Action1' at input position (line 1, pos 4):
## Please Login
   ^

org.pegdown.ParsingTimeoutException
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:366)
        at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
        at org.parboiled.matchers.MemoMismatchesMatcher.match(MemoMismatchesMatcher.java:41)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
        at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
        at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
        at org.parboiled.matchers.OneOrMoreMatcher.match(OneOrMoreMatcher.java:38)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
        at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
        at org.parboiled.matchers.FirstOfMatcher.match(FirstOfMatcher.java:41)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
        at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
        at org.parboiled.matchers.FirstOfMatcher.match(FirstOfMatcher.java:41)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
       at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
       at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
       at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
       at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
       at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
       at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
       at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
       at org.parboiled.matchers.ZeroOrMoreMatcher.match(ZeroOrMoreMatcher.java:39)
       at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
       at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
       at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
       at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
       at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
       at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
       at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
       at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
       at org.parboiled.parserunners.BasicParseRunner.run(BasicParseRunner.java:72)
       at org.parboiled.parserunners.ReportingParseRunner.runBasicMatch(ReportingParseRunner.java:86)
       at org.parboiled.parserunners.ReportingParseRunner.run(ReportingParseRunner.java:66)
       at org.parboiled.parserunners.AbstractParseRunner.run(AbstractParseRunner.java:81)
       at org.pegdown.Parser.parseToParsingResult(Parser.java:1517)
       at org.pegdown.Parser.parseInternal(Parser.java:1504)
       at org.pegdown.Parser.parse(Parser.java:85)
        at org.pegdown.PegDownProcessor.parseMarkdown(PegDownProcessor.java:181)
        at com.gitblit.utils.MarkdownUtils.transformMarkdown(MarkdownUtils.java:81)
        at com.gitblit.utils.MarkdownUtils.transformMarkdown(MarkdownUtils.java:68)
        at com.gitblit.utils.MarkdownUtils.transformMarkdown(MarkdownUtils.java:102)
        at com.gitblit.wicket.pages.MyDashboardPage.readDefaultMarkdown(MyDashboardPage.java:256)
        at com.gitblit.wicket.pages.MyDashboardPage.readMarkdown(MyDashboardPage.java:206)
        at com.gitblit.wicket.pages.MyDashboardPage.setup(MyDashboardPage.java:76)
        at com.gitblit.wicket.pages.MyDashboardPage.<init>(MyDashboardPage.java:57)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java
:234)
        at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
        at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1279)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
        at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:88)
        at com.gitblit.servlet.EnforceAuthenticationFilter.doFilter(EnforceAuthenticationFilter.java:99)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:88)
        at com.gitblit.servlet.ProxyFilter$1.doFilter(ProxyFilter.java:89)
        at com.gitblit.servlet.ProxyFilter.doFilter(ProxyFilter.java:92)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:88)
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)
        at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
        at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
        at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.pegdown.ParsingTimeoutException
        at org.pegdown.Parser.checkForParsingTimeout(Parser.java:1522)
        at org.pegdown.Action$cxzDYiA1YTOH9nKV.run(Unknown Source)
        at org.parboiled.matchers.ActionMatcher.match(ActionMatcher.java:96)
        at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
        at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
        ... 99 more

Note that the anonymous access is not allowed.

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

No branches or pull requests

2 participants