grishka / Smithereen

Federated, ActivityPub-compatible social network server with friends, walls, and groups.
The Unlicense
393 stars 31 forks source link

Group black list template rendering exception #37

Closed chiliec closed 3 years ago

chiliec commented 3 years ago

When I enter to Black list of my group, I get an error:

com.mitchellbosecke.pebble.error.ParserException: Positional arguments must be declared before any named arguments. (group_edit_blocking:15)
    at com.mitchellbosecke.pebble.parser.ExpressionParser.parseArguments(ExpressionParser.java:579)
    at com.mitchellbosecke.pebble.parser.ExpressionParser.parseArguments(ExpressionParser.java:534)
    at com.mitchellbosecke.pebble.parser.ExpressionParser.parseFunctionOrMacroInvocation(ExpressionParser.java:437)
    at com.mitchellbosecke.pebble.parser.ExpressionParser.parsePostfixExpression(ExpressionParser.java:426)
    at com.mitchellbosecke.pebble.parser.ExpressionParser.subparseExpression(ExpressionParser.java:339)
    at com.mitchellbosecke.pebble.parser.ExpressionParser.parseExpression(ExpressionParser.java:161)
    at com.mitchellbosecke.pebble.parser.ExpressionParser.parseExpression(ExpressionParser.java:92)
    at com.mitchellbosecke.pebble.parser.ParserImpl.subparse(ParserImpl.java:146)
    at com.mitchellbosecke.pebble.tokenParser.ForTokenParser.parse(ForTokenParser.java:40)
    at com.mitchellbosecke.pebble.parser.ParserImpl.subparse(ParserImpl.java:195)
    at com.mitchellbosecke.pebble.tokenParser.BlockTokenParser.parse(BlockTokenParser.java:49)
    at com.mitchellbosecke.pebble.parser.ParserImpl.subparse(ParserImpl.java:195)
    at com.mitchellbosecke.pebble.parser.ParserImpl.subparse(ParserImpl.java:104)
    at com.mitchellbosecke.pebble.parser.ParserImpl.parse(ParserImpl.java:97)
    at com.mitchellbosecke.pebble.PebbleEngine.getPebbleTemplate(PebbleEngine.java:169)
    at com.mitchellbosecke.pebble.PebbleEngine.lambda$getTemplate$2(PebbleEngine.java:151)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
    at com.mitchellbosecke.pebble.cache.template.ConcurrentMapTemplateCache.computeIfAbsent(ConcurrentMapTemplateCache.java:24)
    at com.mitchellbosecke.pebble.cache.template.ConcurrentMapTemplateCache.computeIfAbsent(ConcurrentMapTemplateCache.java:9)
    at com.mitchellbosecke.pebble.PebbleEngine.getTemplate(PebbleEngine.java:151)
    at com.mitchellbosecke.pebble.PebbleEngine.getTemplate(PebbleEngine.java:122)
    at smithereen.templates.Templates.getTemplate(Templates.java:114)
    at smithereen.templates.RenderedTemplateResponse.getAndPrepareTemplate(RenderedTemplateResponse.java:75)
    at smithereen.templates.RenderedTemplateResponse.renderToWriter(RenderedTemplateResponse.java:62)
    at smithereen.SmithereenApplication.lambda$main$36(SmithereenApplication.java:484)
    at smithereen.sparkext.ExtendedStreamingSerializer$Entry.serialize(ExtendedStreamingSerializer.java:42)
    at smithereen.sparkext.ExtendedStreamingSerializer.process(ExtendedStreamingSerializer.java:26)
    at spark.serialization.Serializer.processElement(Serializer.java:49)
    at spark.serialization.SerializerChain.process(SerializerChain.java:53)
    at spark.http.matching.Body.serializeTo(Body.java:72)
    at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:195)
    at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1584)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
    at org.eclipse.jetty.server.Server.handle(Server.java:501)
    at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
    at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
    at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
    at java.base/java.lang.Thread.run(Thread.java:832)