[JBoss JIRA] (GTNPC-103) PortletSession.getAttributeMap(APPLICATION_SCOPE) is returning null valued map
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/GTNPC-103?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration updated GTNPC-103:
------------------------------------------
Bugzilla Update: Perform
Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=920546
> 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: http://www.atlassian.com/software/jira
11 years, 8 months
[JBoss JIRA] (GTNPC-103) PortletSession.getAttributeMap(APPLICATION_SCOPE) is returning null valued map
by Martin Weiler (JIRA)
Martin Weiler created GTNPC-103:
-----------------------------------
Summary: 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: http://www.atlassian.com/software/jira
11 years, 8 months
[JBoss JIRA] (GTNPORTAL-2844) Exception updating home navigation node via REST API
by Nick Scavelli (JIRA)
Nick Scavelli created GTNPORTAL-2844:
----------------------------------------
Summary: Exception updating home navigation node via REST API
Key: GTNPORTAL-2844
URL: https://issues.jboss.org/browse/GTNPORTAL-2844
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: REST API
Reporter: Nick Scavelli
Assignee: Nick Scavelli
Fix For: 3.6.0.Final
An exception occurs when including the localized values of the home navigation node as part of the body of the REST request. This is because jboss-dmr cannot properly parse the localized value गृह पृष्ठ
--
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: http://www.atlassian.com/software/jira
11 years, 9 months