[ https://issues.apache.org/jira/browse/PLUTO-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104784#comment-13104784 ]
Ate Douma edited comment on PLUTO-609 at 9/14/11 7:16 PM: ---------------------------------------------------------- com/sun/ts/tests/portlet/api/javax_portlet/PortletPreferences/URLClient.java#GetValueDefaultTest: --> com.sun.ts.tests.portlet.api.javax_portlet.PortletPreferences.GetValueDefaultTestPortlet.java: Expected default preference value= Java Actual default preference value = null com/sun/ts/tests/portlet/api/javax_portlet/PortletPreferences/URLClient.java#GetValuesDefaultTest: --> --> com.sun.ts.tests.portlet.api.javax_portlet.PortletPreferences.GetValuesDefaultTestPortlet.java: PortletPreference.getValues() did not return expected results Actual list returned is null. Expected list is not This test delegates to: was (Author: adouma): com/sun/ts/tests/portlet/api/javax_portlet/PortletPreferences/URLClient.java#GetValueDefaultTest: Expected default preference value= Java Actual default preference value = null com/sun/ts/tests/portlet/api/javax_portlet/PortletPreferences/URLClient.java#GetValuesDefaultTest: PortletPreference.getValues() did not return expected results Actual list returned is null. Expected list is not > PortletPreferencesImpl doesn't handle null preferences correctly > ---------------------------------------------------------------- > > Key: PLUTO-609 > URL: https://issues.apache.org/jira/browse/PLUTO-609 > Project: Pluto > Issue Type: Bug > Affects Versions: 2.0.2 > Reporter: Eric Dalquist > Assignee: Ate Douma > Fix For: 2.0.3, 2.1.0 > > > PLT.17.1 states "Preference attributes are String array objects. Preferences > attributes can be set to null." In Pluto if you call > PortletPreference.setValue("name", null), PortletPreference.setValues("name", > String[] {null}), or PortletPreference.setValues("name", null) the correct > data is passed to the underlying preference storage SPI. > The problem is when calling getValue("name", "DEFAULT") or getValues("name", > new String[] { "DEFAULT" }) for any of the three previous cases "DEFAULT" is > returned. From my reading of the spec this is not correct as in each case the > preference has been set but with a single null value or a null values array. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira