Bug 108968 - Published Multi Part Article section links have no effect
Summary: Published Multi Part Article section links have no effect
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise CMS
Classification: Retired
Component: content types
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks: 106597
TreeView+ depends on / blocked
 
Reported: 2003-11-03 21:59 UTC by Jon Orris
Modified: 2007-04-18 16:59 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-11-14 14:42:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Jon Orris 2003-11-03 21:59:59 UTC
Description of problem:
@37632/postgres/resin

Published MPA section links have no effect. Clicking the links doesn't
change the page view, or bring up the particular section. Only the
summary info is displayed

Comment 1 Daniel Berrangé 2003-11-03 22:13:01 UTC
FYI, the MPA content type requires its own custom JSP to be uploaded
and published. THis JSP is same as the standard item.jsp, but with the
addition of the ArticleSectionPanel bebop component which renders the
currently selected section.

Comment 2 Daniel Berrangé 2003-11-05 10:53:57 UTC
Previously the CMS SectionInitializer had code which would upload a
JSP template for a content type when mapping it to a section.
Multipart article and the formbuilder types both used this capability
to register a custom template, replacing the standard item.jsp.

For MPA, the template would look like:

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:define="/WEB-INF/bebop-define.tld" 
          xmlns:show="/WEB-INF/bebop-show.tld"
          version="1.2">

  <define:page name="itemPage" application="content" 
    title="CMS" cache="true">

    <define:component name="itemXML"
      classname="com.arsdigita.cms.dispatcher.ContentPanel"/>
    <define:component name="sectionXML"
classname="com.arsdigita.cms.contenttypes.ui.mparticle.ArticleSectionPanel"/>
  </define:page>

  <show:all/>
</jsp:root>


The new loader classes which map the contnet type into /content don't
create this JSP template, so MPA published view is missing the XML
from the ArticleSectionPanel component.

I tried uploading the above template to MPA, but then encountered
another problem.

The CMS template root is '/packages/content-section/templates', but
p2fs is publishing into '/work/templates'. We can't simply change the
CMS template root, since then it won't pick up the default 'item.jsp'
or any other 'default' templates a project may pre-populate. For
exmaple, APLAWS creates a 'subsite-item.jsp' in
/packages/content-section/templates to provide an alternate view for
Virtual Hosted subsites.

Thus, before to resolve this ticket two things need to be done:

1. Add back in code to populate a template for MPA when mapping it to
a content section (or some equivalent solution)
2. Resolve the difference in directory location between CMS & p2fs.

Comment 3 Justin Ross 2003-11-13 08:44:15 UTC
Status update:

I have done items one and two, but they're not the real culprit.  I
still don't get any extra output from clicking a section link.  I'm
now thinking it may be a stylesheet issue.

This has been a quizical bug.  Best I can tell and contrary to what
Dan suggests above, neither 5.2 or Troika ever actually used the
default type template registration code they had.  At least I can't
find any configuration we shipped that would have caused us too.  Nor
can I find any JSPs that used ArticleSectionPanel.  Anybody have any
clues for me?



Comment 4 Justin Ross 2003-11-13 20:44:19 UTC
Status again:

The real problem was that the proper XML traversal logic was not in
place.  That was fixed in perforce change 37981.

Underneath this, there is another bug: the section links are
incorrect.  They link to /ccm/content/?page=1 instead of
/ccm/content/mympa?page=1.

I'm going to hand this off to Dan at this point, since these bugs have
to do with change 35489, the one that swapped in page factory and item
JSPs for the existing index page and mparticle transforms.  I figure
his familiarity with the code will make him a lot faster at fixing it. 

Comment 5 Daniel Berrangé 2003-11-14 11:39:45 UTC
The XSL for ArticleSection had not been updated to follow the new
content type standards for styling so was displaying as a pink box.
I also removed the XML traversal rules for 'sections/text' and
'sections/image' against MultiPartArticle, since they were only
required for ArticleSection. From my testing now, MPA is working as
I'd expect it to. This is at p4 38026

I couldn't reproduce the other problem with section links being
incorrect. The link href is generated to be:

   <a href="?page=2">

which according to the rules for procesing relative hyperlinks should
cause the current URL to be reloaded with the new parameter. So i vote
for syncing to tip & sending to QA again.

Comment 6 Jon Orris 2003-11-14 14:42:06 UTC
Confirmed that section links now work, and the MPA renders correctly.
There is still an issue with P2FS not publishing it correctly, but
this is not a concern for this release.



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