DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41183

           Summary: [PATCH] Live documents with unpublished links fail
           Product: Lenya
           Version: 1.4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Miscellaneous
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


If a live document has internal links to unpublished documents, when viewed an
error is thrown. I have been able to create a patch that gets around the issue,
and will still display notifications upon publication. A better method may
exist. LinkTarget throws an exception if the target doesn't exist.
LinkRewritingTransformer looks for null as an indicator of the link existing or
not, not exception. Patch catches the exception and keeps the variable at null
if an exception is thrown. To reproduce, publish only the Home page from the
default publication and view under live.

org.apache.lenya.cms.linking.LinkException: The target doesn't exist!
        at 
org.apache.lenya.cms.linking.LinkTarget.getDocument(LinkTarget.java:62)
        at
org.apache.lenya.cms.cocoon.transformation.LinkRewritingTransformer.startElement(LinkRewritingTransformer.java:212)
        at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:95)
        at
org.apache.cocoon.transformation.I18nTransformer.startElement(I18nTransformer.java:1156)
        at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:95)
        at
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:466)
        at
org.apache.lenya.cms.cocoon.transformation.MetaDataTransformer.startElement(MetaDataTransformer.java:155)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to