Bug 112428 - PersistenceException when assigning a template to a content type and category
Summary: PersistenceException when assigning a template to a content type and category
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise CMS
Classification: Retired
Component: ui
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks: 108447
TreeView+ depends on / blocked
 
Reported: 2003-12-19 16:20 UTC by Carsten Clasohm
Modified: 2007-04-18 17:00 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-12 09:07:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Carsten Clasohm 2003-12-19 16:20:55 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925

Description of problem:
When one tries to assign a template to a content type and a category
using the "Categories" tab of the content section admin UI, the system
throws an exception.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create a template (content section admin page, "Content types" tab,
select one content type, click on "Add template").
2. Go the admin pages of a content section and select the Categories tab.
3. Select a category on the left-hand side.
4. Click on the "Assign Template" button.
5. Click on the "Assign this template" link.


Actual Results:   (root cause: cursor does not fetch path: template.label)
com.arsdigita.persistence.PersistenceException:  (root cause:
com.redhat.persistence.NotFetchedException: cursor does not fetch
path: template.label)
	at
com.arsdigita.persistence.PersistenceException.newInstance(PersistenceException.java:137)
	at
com.arsdigita.persistence.PersistenceException.newInstance(PersistenceException.java:109)
	at com.arsdigita.persistence.DataQueryImpl.get(DataQueryImpl.java:389)
	at
com.arsdigita.toolbox.ui.DataTable$DataQueryTableModel.getElementAt(DataTable.java:790)
	at com.arsdigita.bebop.Table.generateXML(Table.java:719)


Expected Results:  The template should be assigned and listed afterwards.

Additional info:

As you can see, the exception occurs when the system tries to list the
assigned templates. The reason for the exception is that the
definition of CategoryTemplateMapping in Template.pdl does not list
template.label as an attribute which should be loaded aggressively,
while some code in the CMS UI assumes that this attribute is available.

A fix for this can be found in changelist 38975.

Comment 1 Richard Li 2004-02-13 14:35:47 UTC
on dev @40356

Comment 2 Carsten Clasohm 2006-07-12 09:07:46 UTC
Closing old tickets.


Note You need to log in before you can comment on or make changes to this bug.