Bug 109963
| Summary: | Unable to create an instance of the ContentItemPortlet | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Enterprise CMS | Reporter: | Daniel Berrangé <berrange> |
| Component: | other | Assignee: | Richard Li <richardl> |
| Status: | CLOSED RAWHIDE | QA Contact: | Jon Orris <jorris> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | nightly | CC: | jparsons |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-01-26 21:34:03 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 106481 | ||
|
Description
Daniel Berrangé
2003-11-13 14:42:39 UTC
Relevant stack trace: java.lang.NullPointerException at com.arsdigita.cms.dispatcher.SimpleItemResolver.getItem(SimpleItemResolver.java:105) at com.arsdigita.cms.ui.portlet.ContentItemPortletEditor$1.initialValue(ContentItemPortletEditor.java:73) Looks like the underlying impl of ContentSection.getSectionFromNode has changed, and no longer throws a DataObjectNotFoundException; instead the section is returned null, leading to the NPE. I implemented a partial fix @39176. All this does is check if the dispatcher prefix exists, and, if so, removes it. The other issue that needs to be resolved is support for multilingual content items/URLs -- I just noticed your example above, and that case isn't handled right now. @39177 switches to using the MultilingualItemResolver. Dan, does this fix the problems? In the short term yes. Ideally we should be calling ContentSection#getItemResolver IIRC to return the currently configured item resolver for the section. |