[ http://jira.magnolia.info/browse/MAGNOLIA-616?page=all ]
     
Fabrizio Giustina closed MAGNOLIA-616:
--------------------------------------

    Fix Version: 3.0 RC1
     Resolution: Fixed
      Assign To: Fabrizio Giustina  (was: Boris Kraft)

fixed for 3.0 rc1, please test it on weblogic

> src/main/info/magnolia/cms/taglibs/SetNode.java Does not implement a proper 
> map for JSP page
> --------------------------------------------------------------------------------------------
>
>          Key: MAGNOLIA-616
>          URL: http://jira.magnolia.info/browse/MAGNOLIA-616
>      Project: magnolia
>         Type: Bug

>   Components: taglibs
>     Versions: 2.1.3
>  Environment: BEA Weblogic 9 
>     Reporter: Ramon Buckland
>     Assignee: Fabrizio Giustina
>      Fix For: 3.0 RC1
>  Attachments: SetNode.java
>
>
> The SetNode Taglib provides a Map of the node data as a JSP page attribute 
> when it is called.
> The way it does this is by "wrapping" a ContentNode in an inner Map 
> implementation
>      public static class NodeMapWrapper implements Map {
> It is suspected that the implementation of the map is done because the map is 
> needed to be
> read-only on the JSP page.
> As part of this quassi implementation of a Map, some of the methods are not 
> implemented.
> One of the methods that is not implemented is 
>         /**
>          * @see java.util.Map#entrySet()
>          */
>         public Set entrySet() {
>             // not implemented, only get() is needed
>             return null;
>         }
> However, Weblogic 9, when a Map is "accessed" in the JSP page, it uses the 
> entrySet method to see if the variable
> requested is actually there.
>    ${mymap.somevar}
> in Tomcat relates to a call of 
>    mymap.get("somevar")
> however Weblogic 9, appears to do something like
>    Set set = mymap.entrySet()
>    // and derives the value from the Set.
> But because a null object in the impl is returned, the value is then not 
> accessible.
> Solution: 
> Assumption : Because the Map provided to the JSP page is to be readonly,
> instead of  "implementing a map".
> Our fix was to return an Unmodifiable map (Jak commons) (and not have an 
> internal implementation of a Map)
>    

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to