Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1870

ZK Does not set session in SessionCtrl when handling a Portlet Ajax request

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.5.2, 6.5.3
    • Fix Version/s: 6.5.4
    • Component/s: General
    • Labels:

      Description

      ZK Does not set session in SessionCtrl when handling a Portlet Ajax request - which effects in no session available for componentes, which can turn into NPE in some components.

      our case is:
      java.lang.NullPointerException
      at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.smartUpdate(LiveListboxDataLoader.java:266)
      at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader.access$100(LiveListboxDataLoader.java:60)
      at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader$1.onEvent(LiveListboxDataLoader.java:287)
      at org.zkoss.zkmax.zul.impl.LiveListboxDataLoader$1.onEvent(LiveListboxDataLoader.java:278)
      at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2748)
      at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2719)
      at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2660)
      at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1717)
      at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1502)
      at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1212)
      at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)
      at org.zkoss.zk.ui.http.DHtmlLayoutPortlet.serveResource(DHtmlLayoutPortlet.java:205)
      at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:118)
      at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
      at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)

      After debugging the code we found out that in DHtmlLayoutPortlet in serverResource method there is no call to:
      SessionsCtrl.setCurrent(sess);

      it is, however done in doView, but it is needed in serveResource as well.

        Activity

        Hide
        jumperchen jumperchen added a comment -

        Bug fixed since 7/29/2013. Please download the 6.5.4-FL-2013-07-29 freshly file to test - http://www.zkoss.org/download/freshly/

        Show
        jumperchen jumperchen added a comment - Bug fixed since 7/29/2013. Please download the 6.5.4-FL-2013-07-29 freshly file to test - http://www.zkoss.org/download/freshly/
        Hide
        kretes kretes added a comment -

        No download of build 2013-07-29 as of 2013-07-30

        Show
        kretes kretes added a comment - No download of build 2013-07-29 as of 2013-07-30
        Hide
        jumperchen jumperchen added a comment -

        The files are uploaded, please check again.

        Show
        jumperchen jumperchen added a comment - The files are uploaded, please check again.
        Hide
        kretes kretes added a comment -

        I checked it up, our problem is gone, thanks

        Show
        kretes kretes added a comment - I checked it up, our problem is gone, thanks

          People

          • Assignee:
            jumperchen jumperchen
            Reporter:
            kretes kretes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: