Uploaded image for project: 'JBoss Portal'
  1. JBoss Portal
  2. JBPORTAL-2158

NullPointer exception when accessing non existing directory in CMS

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.6.6 Final
    • Fix Version/s: 2.7.1 Final, 2.6.8 Final
    • Component/s: Portal CMS
    • Labels:
      None
    • Environment:

      fedora 9, laptop t61, java version "1.5.0_16", firefox 3.0.1

      Description

      I know, that this is not very common case, but anyway, i find it dangerous.
      1.Login as admin -> click admin -> click CMS tab
      2. click on the "default folder:
      the address in address bar should be:
      http://localhost:8080/portal/auth/portal/admin/CMS/CMSAdminPortletWindow?op=main&action=2&path=%2Fdefault
      now, mess this address manually and retype it to (some non existing folder)
      http://localhost:8080/portal/auth/portal/admin/CMS/CMSAdminPortletWindow?op=main&action=2&path=%2Fdef111ault
      and press enter

      You should see :

      ERROR
      Cause: java.lang.NullPointerException
      StackTrace:

      java.lang.NullPointerException
      at org.jboss.portal.core.cms.ui.admin.CMSAdminPortlet.internalDoView(CMSAdminPortlet.java:244)
      at org.jboss.portal.core.cms.ui.admin.CMSAdminPortlet.doView(CMSAdminPortlet.java:184)
      at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:257)
      at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:244)
      at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:390)

      I don't consider this being so dangerous, but now, try to click on the CMS tab. You see the error again, form now, it is impossible to get into the CMS console again until you logout/login again.
      The case when this can be seen can be the situation, when the CMS console is opened in two firefox tabs, and you rename/delete the file/directory on one tab, and then try to continue working on the other tab clicking on the actually non-existing link...

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  soshah Sohil Shah
                  Reporter:
                  vrockai Viliam Rockai
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: