AnsweredAssumed Answered

Mail notification error: Expression url is undefined ...

Question asked by sobotka on Dec 3, 2009
Latest reply on Mar 10, 2010 by asta-tu-da
Hi,
I created a new space rule whcih sends an email when a content is inserted. For the email itself I selected the "notify_user_email.ftl" template.
When a content is inserted, this error occurs:

Expression url is undefined on line 4, column 3 in workspace://SpacesStore/c366953d-cd4a-4ed5-92be-a5ed396c3f4c.
The problematic instruction:
———-
==> ${url.serverPath} [on line 4, column 1 in workspace://SpacesStore/c366953d-cd4a-4ed5-92be-a5ed396c3f4c]
———-

Java backtrace for programmers:
———-
freemarker.core.InvalidReferenceException: Expression url is undefined on line 4, column 3 in workspace://SpacesStore/c366953d-cd4a-4ed5-92be-a5ed396c3f4c.
        at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
        at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
        at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
        at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        at freemarker.core.Expression.getStringValue(Expression.java:93)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.Environment.process(Environment.java:188)
        at freemarker.template.Template.process(Template.java:237)


There was a similar post longer time ago (http://forums.alfresco.com/en/viewtopic.php?p=28204#28204).

Is there a simple solution for this problem ?

Petr

Outcomes