<!-- 
RSS generated by JIRA (9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b) at Mon Feb 12 00:03:11 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Magnolia - Issue tracker</title>
    <link>https://jira.magnolia-cms.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-uk</language>    <build-info>
        <version>9.4.2</version>
        <build-number>940002</build-number>
        <build-date>19-01-2023</build-date>
    </build-info>


<item>
            <title>[MGNLCMNT-103] PageCommentsNotification.ftl throws exception when retrieving page link</title>
                <link>https://jira.magnolia-cms.com/browse/MGNLCMNT-103</link>
                <project id="10310" key="MGNLCMNT">Commenting (closed)</project>
                    <description>&lt;p&gt;The PageCommentsNotification.ftl throws an exception when it tries to create the link for the page. &lt;/p&gt;

&lt;p&gt;The error and stack trace:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2014-03-28 13:32:57,211 ERROR freemarker.runtime                                : Template processing error: &quot;Method public java.lang.String info.magnolia.module.commenting.CustomPageCommentNotifModel.retrievePageLink(java.lang.String) threw an exception when invoked on info.magnolia.module.commenting.CustomPageCommentNotifModel@242cd4f8[id=\u003Cnull&amp;gt;,name=model,renderType=\u003Cnull&amp;gt;,description=\u003Cnull&amp;gt;,title=\u003Cnull&amp;gt;,templateScript=\u003Cnull&amp;gt;,autoGeneration=info.magnolia.rendering.template.configured.ConfiguredAutoGeneration@7b51f855[content={},generatorClass=\u003Cnull&amp;gt;]]&quot;

Method public java.lang.String info.magnolia.module.commenting.CustomPageCommentNotifModel.retrievePageLink(java.lang.String) threw an exception when invoked on info.magnolia.module.commenting.CustomPageCommentNotifModel@242cd4f8[id=&amp;lt;null&amp;gt;,name=model,renderType=&amp;lt;null&amp;gt;,description=&amp;lt;null&amp;gt;,title=&amp;lt;null&amp;gt;,templateScript=&amp;lt;null&amp;gt;,autoGeneration=info.magnolia.rendering.template.configured.ConfiguredAutoGeneration@7b51f855[content={},generatorClass=&amp;lt;null&amp;gt;]]
The problematic instruction:
----------
==&amp;gt; ${model.retrievePageLink(path)} [on line 2, column 84 in info/magnolia/module/commenting/CustomPageCommentsNotification.ftl]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: Method public java.lang.String info.magnolia.module.commenting.CustomPageCommentNotifModel.retrievePageLink(java.lang.String) threw an exception when invoked on info.magnolia.module.commenting.CustomPageCommentNotifModel@242cd4f8[id=&amp;lt;null&amp;gt;,name=model,renderType=&amp;lt;null&amp;gt;,description=&amp;lt;null&amp;gt;,title=&amp;lt;null&amp;gt;,templateScript=&amp;lt;null&amp;gt;,autoGeneration=info.magnolia.rendering.template.configured.ConfiguredAutoGeneration@7b51f855[content={},generatorClass=&amp;lt;null&amp;gt;]]
	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130)
	at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
	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:221)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:221)
	at freemarker.core.IfBlock.accept(IfBlock.java:82)
	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 freemarker.template.Template.process(Template.java:237)
	at info.magnolia.freemarker.FreemarkerHelper.render(FreemarkerHelper.java:153)
	at info.magnolia.freemarker.FreemarkerHelper.render(FreemarkerHelper.java:135)
	at info.magnolia.module.mail.templates.impl.FreemarkerEmail.setBodyFromResourceFile(FreemarkerEmail.java:91)
	at info.magnolia.module.mail.commands.MailCommand.execute(MailCommand.java:96)
	at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:81)
	at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:70)
	at info.magnolia.module.observation.commands.CommandEventListener.onEvent(CommandEventListener.java:119)
	at info.magnolia.cms.util.ObservationUtil$ObservationBasedDelayedExecutor$1.run(ObservationUtil.java:253)
	at info.magnolia.cms.util.DelayedExecutor$RunnableWrapper.run(DelayedExecutor.java:103)
	at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.IllegalStateException: Can only get the context path within a WebContext.
	at info.magnolia.context.MgnlContext.getContextPath(MgnlContext.java:201)
	at info.magnolia.link.AbsolutePathTransformer.prefixLink(AbsolutePathTransformer.java:97)
	at info.magnolia.link.AbsolutePathTransformer.transform(AbsolutePathTransformer.java:87)
	at info.magnolia.link.RelativePathTransformer.transform(RelativePathTransformer.java:89)
	at info.magnolia.module.commenting.CustomPageCommentNotifModel.retrievePageLink(CustomPageCommentNotifModel.java:55)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:866)
	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106)
	... 24 more
2014-03-28 13:33:53,957 ERROR info.magnolia.module.mail.commands.MailCommand    : Could not send email:Can only get the aggregation state within a WebContext.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To reproduce this issue:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Install the observation and commenting modules&lt;/li&gt;
	&lt;li&gt;Configure the sendMailOnPageComments as outlined &lt;a href=&quot;http://documentation.magnolia-cms.com/display/DOCS45/Commenting+module#Commentingmodule-Observationmodule&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Note: I encountered this issue &lt;a href=&quot;https://jira.magnolia-cms.com/browse/MGNLOBS-13&quot; title=&quot;Observation module deletes existing listener configurations during installation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MGNLOBS-13&quot;&gt;&lt;del&gt;MGNLOBS-13&lt;/del&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Enabled commenting on a page and create a comment&lt;/li&gt;
	&lt;li&gt;Observe the error in the log&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="37610">MGNLCMNT-103</key>
            <summary>PageCommentsNotification.ftl throws exception when retrieving page link</summary>
                <type id="1" iconUrl="https://jira.magnolia-cms.com/secure/viewavatar?size=xsmall&amp;avatarId=10883&amp;avatarType=issuetype">Bug</type>
                                            <priority id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/priorities/neutral.gif">Neutral</priority>
                        <status id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="rkovarik">Roman Kova&#345;&#237;k</assignee>
                                    <reporter username="rgange">Richard Gange</reporter>
                        <labels>
                            <label>Support</label>
                    </labels>
                <created>Fri, 28 Mar 2014 18:46:12 +0100</created>
                <updated>Tue, 13 May 2014 11:51:40 +0200</updated>
                            <resolved>Fri, 25 Apr 2014 16:12:01 +0200</resolved>
                                    <version>2.2</version>
                                    <fixVersion>2.2.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="83979" author="rkovarik" created="Mon, 28 Apr 2014 07:43:03 +0200"  >&lt;p&gt;TODO: correct commit message when integrating.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10040">
                    <name>causality</name>
                                                                <inwardlinks description="is causing">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10021">
                    <name>duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="38120">MGNLCMNT-104</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>relation</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="22714">MGNLOBS-13</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_14166" key="com.okapya.jira.checklist:checklist">
                        <customfieldname>Acceptance criteria</customfieldname>
                        <customfieldvalues>
                            
        <checklist>
        <![CDATA[
                            




                
                                    <div class="o-completion" style="display: flex; flex-shrink: 0;"><span  class="aui-lozenge aui-lozenge-complete" style="font-size: 12px; font-weight: normal; display: flex; flex-direction: row; align-items: center;" ><span style="padding-right: 4px; vertical-align: middle;"><svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" fill="white"><path clip-rule="evenodd" d="m10.41037,3.42544l-7.86501,0c-0.72395,0 -1.31084,0.58688 -1.31084,1.31084l0,7.86508c0,0.7239 0.58689,1.3108 1.31084,1.3108l7.86501,0c0.724,0 1.3109,-0.5869 1.3109,-1.3108l0,-7.86508c0,-0.72396 -0.5869,-1.31084 -1.3109,-1.31084zm-7.86501,-0.65542c-1.08593,0 -1.96626,0.88032 -1.96626,1.96626l0,7.86508c0,1.0859 0.88033,1.9662 1.96626,1.9662l7.86501,0c1.086,0 1.9663,-0.8803 1.9663,-1.9662l0,-7.86508c0,-1.08594 -0.8803,-1.96626 -1.9663,-1.96626l-7.86501,0z" fill-rule="evenodd"/><path d="m5.09049,10.18526l-1.82767,-1.82766l-0.78479,0.78479l2.61246,2.61246l5.38758,-5.38754l-0.78483,-0.78479l-4.60275,4.60274z"/></svg></span><span>Empty</span></span></div>
                        ]]>
    </checklist>


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10111" key="com.atlassian.jira.toolkit:reporterdomain">
                        <customfieldname>Company</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>magnolia-cms.com</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10031" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 28 Apr 2014 07:43:03 +0200</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12730" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14151" key="com.atlassian.jira.toolkit:message">
                        <customfieldname>Docu info</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10061" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comm is not jira-dev</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10071" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last participant</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>mmuehlebach</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13136" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 42 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10020" key="com.atlassian.jira.toolkit:attachments">
                        <customfieldname>Number of attachments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10150" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname>Number of comments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>rgange</customfieldvalue>
            <customfieldvalue>rkovarik</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10833" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i038nj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10244" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>18997</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_14145" key="com.intenso.jira.issue-templates:issue-templates-customfield">
                        <customfieldname>Template</customfieldname>
                        <customfieldvalues>
                            


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15131" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Time in Discovery</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>