AnsweredAssumed Answered

Folder rules issue

Question asked by ltardioli on Dec 27, 2012
Latest reply on Apr 29, 2014 by diegolopezcdm
Hello everyone!
I'm using Alfresco 4.0e and today when I tried to edit a folder's rule, this page appears instead the rules' page :

"A problem has occurred.
This page could not be rendered:
folder-rules
Please notify your system administrator."

I checked the log and it says that is a ftl exception:

———-
==> if-else  [on line 17, column 7 in org/alfresco/folder-rules.ftl]
in user-directive templateBody [on line 6, column 1 in org/alfresco/folder-rules.ftl]
———-

Java backtrace for programmers:
———-
freemarker.core.InvalidReferenceException: Expression ruleset is undefined on line 17, column 12 in org/alfresco/folder-rules.ftl.
        at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
        at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
        at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
        at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        at freemarker.core.ExistsExpression._getAsTemplateModel(ExistsExpression.java:71)
        at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        at freemarker.core.Expression.isTrue(Expression.java:138)
        at freemarker.core.IfBlock.accept(IfBlock.java:80)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.Environment.visit(Environment.java:406)
        at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.Macro$Context.runMacro(Macro.java:172)
        at freemarker.core.Environment.visit(Environment.java:614)
        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:221)
        at freemarker.core.Environment.process(Environment.java:199)
        at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
        at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:455)
        at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)

But this happens just with two or three folder, the other folders are okay.

Someone knows what could cause that?

Outcomes