MMBase

reuse of sub context results in stack-overflow exceptions

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.6
  • Fix Version/s: 1.8.7
  • Component/s: Taglib
  • Description:
    Hide
      <mm:context id="a" scope="request">
            <mm:import id="c">C</mm:import>
            <mm:context id="b" />
          </mm:context>

          <mm:context referid="a" scope="request">
            <mm:context referid="b" />
            <mm:write referid="c" />
          </mm:context>


    results:
    ava.lang.StackOverflowError
    org.mmbase.bridge.jsp.taglib.util.BasicBacking$1.iterator(BasicBacking.java:116)
    java.util.AbstractMap.containsKey(AbstractMap.java:123)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:258)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)
    org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)

    Show
      <mm:context id="a" scope="request">         <mm:import id="c">C</mm:import>         <mm:context id="b" />       </mm:context>       <mm:context referid="a" scope="request">         <mm:context referid="b" />         <mm:write referid="c" />       </mm:context> results: ava.lang.StackOverflowError org.mmbase.bridge.jsp.taglib.util.BasicBacking$1.iterator(BasicBacking.java:116) java.util.AbstractMap.containsKey(AbstractMap.java:123) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:258) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260) org.mmbase.bridge.jsp.taglib.util.ContextContainer.simpleContainsKey(ContextContainer.java:260)

Activity

Repository Revision Date User Message
MMBase SVN #31206 Tue Oct 07 11:53:09 CEST 2008 michiel test case for [MMB-1730]
Files Changed
ADD /mmbase/trunk/tests/taglib/jsps/mmb-1730.jspx
Repository Revision Date User Message
MMBase SVN #31208 Tue Oct 07 12:39:48 CEST 2008 michiel MMB-1730
Files Changed
MODIFY /mmbase/branches/MMBase-1_8/applications/taglib/src/org/mmbase/bridge/jsp/taglib/ContextTag.java
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/ContextTag.java
Repository Revision Date User Message
MMBase SVN #31215 Tue Oct 07 19:22:41 CEST 2008 michiel more fixes related to MMB-1730
Files Changed
MODIFY /mmbase/branches/MMBase-1_8/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/StandaloneContextContainer.java
MODIFY /mmbase/branches/MMBase-1_8/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/ContextContainer.java
MODIFY /mmbase/branches/MMBase-1_8/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/BasicBacking.java
MODIFY /mmbase/branches/MMBase-1_8/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/PageContextBacking.java
Repository Revision Date User Message
MMBase SVN #31216 Tue Oct 07 19:28:25 CEST 2008 michiel more fixes related to MMB-1730
Files Changed
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/BasicBacking.java
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/PageContextBacking.java
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/ContextContainer.java
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/PageContextContainer.java
Repository Revision Date User Message
MMBase SVN #31276 Mon Oct 13 14:04:31 CEST 2008 michiel Related to fix for MMB-1730. Make sure no pagecontexts and those kind of things are stored in requests and sessions and so on
Files Changed
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/BasicBacking.java
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/PageContextBacking.java
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/Backing.java
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/util/StandaloneContextContainer.java
MODIFY /mmbase/trunk/applications/taglib/src/org/mmbase/bridge/jsp/taglib/ContextTag.java

People

Dates

  • Created:
    2008-10-07 11:34
    Updated:
    2008-10-07 12:40
    Resolved:
    2008-10-07 12:40