]
Sohil Shah resolved JBPORTAL-2158.
----------------------------------
Resolution: Done
NullPointer exception when accessing non existing directory in CMS
------------------------------------------------------------------
Key: JBPORTAL-2158
URL:
https://jira.jboss.org/jira/browse/JBPORTAL-2158
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Portal CMS
Affects Versions: 2.6.6 Final
Environment: fedora 9, laptop t61, java version "1.5.0_16", firefox
3.0.1
Reporter: Viliam Rockai
Assignee: Sohil Shah
Fix For: 2.7.1 Final, 2.6.8 Final
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?...
now, mess this address manually and retype it to (some non existing folder)
http://localhost:8080/portal/auth/portal/admin/CMS/CMSAdminPortletWindow?...
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...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: