]
RH Bugzilla Integration updated GTNPC-103:
------------------------------------------
Bugzilla References:
PortletSession.getAttributeMap(APPLICATION_SCOPE) is returning null
valued map
------------------------------------------------------------------------------
Key: GTNPC-103
URL:
https://issues.jboss.org/browse/GTNPC-103
Project: GateIn Portlet Container
Issue Type: Bug
Components: API
Affects Versions: 2.4.0.Final
Reporter: Martin Weiler
Calling PortletSession.getAttributeMap(PortletSession.APPLICATION_SCOPE) returns a Map
with all application scoped keys, but with NULL values for each key.
The reason for this is that the scope parameter is not used to look up the attribute
values:
{code:java}
public Map<String, Object> getAttributeMap(int i)
{
Enumeration attributes = getAttributeNames(i);
Map<String, Object> attrs = new HashMap<String, Object>();
while (attributes.hasMoreElements())
{
String name = (String)attributes.nextElement();
attrs.put(name, getAttribute(name)); // <== missing scope
attribute, should be: getAttribute(name, i)
}
return Collections.unmodifiableMap(attrs);
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: