You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2009/03/13 12:50:15 UTC

DO NOT REPLY [Bug 46848] New: Problem including pages of external publication

https://issues.apache.org/bugzilla/show_bug.cgi?id=46848

           Summary: Problem including pages of external publication
           Product: Lenya
           Version: 2.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Navigation Framework
        AssignedTo: dev@lenya.apache.org
        ReportedBy: geldner.list.reg@gmx.net


Hi,

we want to include a page of another publication into the current one.

* I added a new page to my publication called "includetest".

* In the body of that page I added only one div element:
  <div id="refsea"></div>

* In the XSLT stylesheet webapps/lenya/lenya/pubs/mypub/xslt/page2xhtml.xsl I
added the following template:
 <xsl:template match="xhtml:div[@id = 'refsea']">
    <ci:include
src="lenya-document:c420b7f0-5ed0-11dd-aaf2-d7972f130a48,pub=ecount?format=xhtml"/>
 </xsl:template>

* I added the transformer
<map:transform type="cinclude"/>
to the pattern
<map:match pattern="lenyabody-*/*/*/*/**"> just before
<map:transform type="uuid2url"/>.
It works fine when including pages of the same "mypub" publication (without pub
parameter). When referencing pages of other publications (see sample code
above) Lenya says "LinkException: The target doesn't exist!".

Here's an excerpt of the stack trace:
at
org.apache.avalon.excalibur.component.ComponentProxyGenerator$ComponentInvocationHandler.invoke(ComponentProxyGenerator.java:143)
    at $Proxy11.resolveURI(Unknown Source)
    at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
    at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
    at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
    at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558)
    at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:554)
    at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:541)
    at
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.resolveURI(MutableEnvironmentFacade.java:299)
    at
org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:522)
    ... 149 more
Caused by: java.lang.RuntimeException:
org.apache.lenya.cms.linking.LinkException: The target doesn't exist!
    at
org.apache.lenya.cms.cocoon.source.DocumentSourceFactory.getSource(DocumentSourceFactory.java:165)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 46848] Problem including pages of external publication

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46848





--- Comment #1 from Andreas Hartmann <an...@apache.org>  2009-03-13 06:25:24 PST ---
I added a test case in r753237 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=753237 ) It looks like 2.0.2 supports cross-publication
links. I'll run the test against 2.0 as well, maybe it was buggy.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 46848] Problem including pages of external publication

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46848


Andreas Hartmann <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 46848] Problem including pages of external publication

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46848





--- Comment #4 from Andreas Hartmann <an...@apache.org>  2009-03-13 07:28:45 PST ---
(In reply to comment #3)
> Ah, when the ?format=xhtml parameter is added the test fails (with 2.0 and the
> current 2.0.x branch).

The LinkResolver chokes on this parameter. I changed the test to use the source
resolver instead. The test succeeds with 2.0.x and fails with 2.0.

Would it be an option for you to try it with the current 2.0.x branch?

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 46848] Problem including pages of external publication

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46848





--- Comment #3 from Andreas Hartmann <an...@apache.org>  2009-03-13 06:53:24 PST ---
Ah, when the ?format=xhtml parameter is added the test fails (with 2.0 and the
current 2.0.x branch).

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 46848] Problem including pages of external publication

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46848





--- Comment #2 from Andreas Hartmann <an...@apache.org>  2009-03-13 06:45:40 PST ---
Interestingly, the test succeeds in 2.0 as well …

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org