<!-- 
RSS generated by JIRA (9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b) at Mon Feb 12 00:47:33 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>[MGNLDMS-8] &quot;Context Not Set, defaulting to System Context&quot; Exception In Document Management System - Any specific configuration need to be made?</title>
                <link>https://jira.magnolia-cms.com/browse/MGNLDMS-8</link>
                <project id="10112" key="MGNLDMS">Document Management System (closed)</project>
                    <description>&lt;p&gt;We upgraded our magnolia application instance from &quot;Magnolia 3.0-rc2-SNAPSHOT&quot; to &quot;Magnolia-3.0-rc3&quot;. In the &quot;Magnolia 3.0-rc2-SNAPSHOT&quot; version, we customized the Document List Tree module by extending the classes in the magnolia API. &lt;/p&gt;

&lt;p&gt;                             The documents list is shown properly in the &quot;3.0-rc2-SNAPSHOT&quot; version but in the new version an exception is thrown saying &quot;Context is not set, defaulting to System Context&quot;.  Should we make any specific configuration specifying the Context?&lt;/p&gt;

&lt;p&gt;Here are the details related to the classes:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;class AzulTree extends info.magnolia.cms.gui.control.Tree&lt;/li&gt;
	&lt;li&gt;class AzulTreeConfig  extends info.magnolia.module.dms.DMSAdminTreeConfig&lt;/li&gt;
	&lt;li&gt;class AzulTreeHandler extends info.magnolia.module.dms.DMSAdminTree&lt;/li&gt;
	&lt;li&gt;class AzulTreeControl extends AzulTree&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;EXCEPTION DETAILS:&lt;/p&gt;


&lt;p&gt;WARN info.magnolia.context.MgnlContext MgnlContext.java(getInstance:293) 26.10.2006 07:20:57  Context is not set, defaulting to System Context&lt;/p&gt;

&lt;p&gt;java.lang.Exception&lt;br/&gt;
        at info.magnolia.context.MgnlContext.getInstance(MgnlContext.java:293)&lt;br/&gt;
        at info.magnolia.cms.util.AlertUtil.isMessageSet(AlertUtil.java:78)&lt;br/&gt;
        at info.magnolia.cms.util.FreeMarkerUtil.process(FreeMarkerUtil.java:119)&lt;br/&gt;
        at info.magnolia.cms.util.FreeMarkerUtil.process(FreeMarkerUtil.java:61)&lt;br/&gt;
        at com.xumak.handler.tree.AzulTree.getHtmlFooter(AzulTree.java:594)&lt;br/&gt;
        at com.xumak.handler.tree.AzulTree.getHtml(AzulTree.java:567)&lt;br/&gt;
        at info.magnolia.module.admininterface.AdminTreeMVCHandler.renderTree(AdminTreeMVCHandler.java:769)&lt;/p&gt;

&lt;p&gt;        at info.magnolia.module.admininterface.AdminTreeMVCHandler.rend_erhtml(AdminTreeMVCHandler.java:721)&lt;/p&gt;

&lt;p&gt;        at c om .xumak.handler.tree.AzulTreeHandler.getHtml(AzulTreeHandler.java:35)&lt;/p&gt;

&lt;p&gt;        at org.apache.jsp.templates.ascs.templates.documentList.documentListC om ponent_jsp._jspService(documentListC om ponent_jsp.java:76)&lt;/p&gt;</description>
                <environment>Windows XP, JDK 1.5.0</environment>
        <key id="11915">MGNLDMS-8</key>
            <summary>&quot;Context Not Set, defaulting to System Context&quot; Exception In Document Management System - Any specific configuration need to be made?</summary>
                <type id="1" iconUrl="https://jira.magnolia-cms.com/secure/viewavatar?size=xsmall&amp;avatarId=10883&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.magnolia-cms.com/images/icons/priorities/critical.svg">Critical</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="pbaerfuss">Philipp B&#228;rfuss</assignee>
                                    <reporter username="davehickman">david hickman</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Oct 2006 06:06:30 +0200</created>
                <updated>Tue, 17 Mar 2009 19:40:56 +0100</updated>
                            <resolved>Thu, 26 Oct 2006 10:04:17 +0200</resolved>
                                                    <fixVersion>1.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="12583" author="scharles" created="Thu, 26 Oct 2006 09:52:10 +0200"  >&lt;p&gt;Its not a Bug!&lt;/p&gt;

&lt;p&gt;Its a bug in your templates or application which does not set context properly. with next release it wont default to system context and simply break the request.&lt;br/&gt;
You must set MgnlContext properly if you are using custom servlets or direct jsp calls.&lt;/p&gt;</comment>
                            <comment id="12585" author="pbracher" created="Thu, 26 Oct 2006 10:04:17 +0200"  >&lt;p&gt;If you are calling a jsp directly as you do here: ponent.jsp you need to set the context. In this case just use MgnlContext.initWebContext(request)&lt;/p&gt;</comment>
                            <comment id="12595" author="davehickman" created="Thu, 26 Oct 2006 15:30:20 +0200"  >&lt;p&gt;Thanks for the feedback. The issue is, it was working fine with version Magnolia 3.0-rc2-SNAPSHOT. This issue came up when we are ugrading to Magnolia-3.0-rc3.  When you say set Context properly, you mean this has to be set in MgnlContext.java file or do I set in the JSP page ? While debugging the error, I observed after calling setInstance function in MgnlContext, the context is becoming null. I am not sure whats causing this.  Please let me know if I am missing anything.&lt;/p&gt;</comment>
                            <comment id="12596" author="scharles" created="Thu, 26 Oct 2006 18:37:53 +0200"  >&lt;p&gt;It should be something like if you are creating a new mgnl context instance&lt;/p&gt;

&lt;p&gt;WebContext ctx = (WebContext) FactoryUtil.newInstance(WebContext.class);&lt;br/&gt;
ctx.init(request);&lt;br/&gt;
MgnlContext.setInstance(ctx);&lt;/p&gt;</comment>
                            <comment id="12601" author="davehickman" created="Fri, 27 Oct 2006 08:30:50 +0200"  >&lt;p&gt;Thanks for the code. &lt;/p&gt;

&lt;p&gt;We added the below specified code in the jsp page and now the application is not throwing the &quot;Context not set - defaulting to System Context&quot; exception. But the Document Tree is only displaying the parent directory folders which are created under the dms (document management system). It&apos;s not showing the end child nodes (documents) when click on a particular parent folder. In fact, it is showing multiple copies of parent folders when we click on a particular parent folder&lt;/p&gt;

&lt;p&gt; WebContext webContext = (WebContext) FactoryUtil.getInstance(WebContext.class); &lt;br/&gt;
 webContext.init(request);&lt;br/&gt;
 MgnlContext.setInstance(webContext);&lt;/p&gt;

&lt;p&gt;Do we need to make any other configurations or set other some values?&lt;/p&gt;
</comment>
                            <comment id="12602" author="kraft" created="Fri, 27 Oct 2006 11:26:34 +0200"  >&lt;p&gt;No bug of ours.&lt;/p&gt;</comment>
                            <comment id="12604" author="davehickman" created="Fri, 27 Oct 2006 12:01:33 +0200"  >&lt;p&gt;This was working fine in the version - Magnolia 3.0-rc2-SNAPSHOT. But does not work with the version - Magnolia-3.0-rc3, where its showing the parent folders again when I try to expand a folder. Do we need any different setting for the Magnolia-3.0-rc3 to display the documents properly.&lt;/p&gt;</comment>
                            <comment id="12608" author="davehickman" created="Fri, 27 Oct 2006 13:39:09 +0200"  >&lt;p&gt;One more thing I observed while debugging the code is, the path settings are completely ignored when the document tree is displayed. I am passing in parameter &quot;path=documents&quot; to display matching URL folders. But this completely ignored and it shows all the folders in the document tree. Am I missing anything or anything has to be configured?&lt;/p&gt;</comment>
                            <comment id="12613" author="davehickman" created="Fri, 27 Oct 2006 16:03:44 +0200"  >&lt;p&gt;Is there any support contact number I can call to get the issue resolved? This issue is delaying the production rollout of the new Magnolia version.&lt;/p&gt;</comment>
                    </comments>
                    <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>azulsystems.com</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10031" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 26 Oct 2006 09:52:10 +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>true</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>
                            17 years, 18 weeks, 2 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>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kraft</customfieldvalue>
            <customfieldvalue>davehickman</customfieldvalue>
            <customfieldvalue>pbaerfuss</customfieldvalue>
            <customfieldvalue>pbracher</customfieldvalue>
            <customfieldvalue>scharles</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10833" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i04bqv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10244" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>25345</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>