You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jann Forrer <ja...@id.unizh.ch> on 2005/02/24 12:32:09 UTC

Problem with LinkRewritingTransformer

Hi

Probably, due to our setup we have problem with the
LinkRewritingTransformer under 1.2.x.
We have a authoring server, where lenya runs under the /lenya context
and a live server, where lenya runs under the /ROOT context.

If I publish a site the hrefs in the respective document (in the live
area) looks like: href="/lenya/unicms/authoring/support/pubrequest.html"

and in the LinkRewritingTransformer class I see:

 if (href.startsWith(context + "/" + publication.getId()))

so the URL will not be rewritten  ....

Has anyone an idea how to solve this problem

Jann

---------------------------------------------------------------
Jann Forrer
Informatikdienste
Universität Zürich
Winterthurerstr. 190
CH-8057 Zuerich

oooO   mail:  jann.forrer@id.unizh.ch
(  )   phone: +41 1 63 56772
 \ (   fax:   +41 1 63 54505
  \_)  http://www.id.unizh.ch

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


Re: Problem with LinkRewritingTransformer

Posted by Michael Wechner <mi...@wyona.com>.
Jann Forrer wrote:

>Hi
>
>Probably, due to our setup we have problem with the
>LinkRewritingTransformer under 1.2.x.
>We have a authoring server, where lenya runs under the /lenya context
>and a live server, where lenya runs under the /ROOT context.
>
>If I publish a site the hrefs in the respective document (in the live
>area) looks like: href="/lenya/unicms/authoring/support/pubrequest.html"
>
>and in the LinkRewritingTransformer class I see:
>
> if (href.startsWith(context + "/" + publication.getId()))
>  
>

as a workaround you might just want to patch the LinkRewritingTransfomer
within your Live instance.

Michi

>---------------------------------------------------------------
>Jann Forrer
>Informatikdienste
>Universität Zürich
>Winterthurerstr. 190
>CH-8057 Zuerich
>
>oooO   mail:  jann.forrer@id.unizh.ch
>(  )   phone: +41 1 63 56772
> \ (   fax:   +41 1 63 54505
>  \_)  http://www.id.unizh.ch
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>For additional commands, e-mail: dev-help@lenya.apache.org
>
>
>  
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


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


Re: Problem with LinkRewritingTransformer

Posted by Andreas Hartmann <an...@apache.org>.
Jann Forrer wrote:
> Hi
> 
> Probably, due to our setup we have problem with the
> LinkRewritingTransformer under 1.2.x.
> We have a authoring server, where lenya runs under the /lenya context
> and a live server, where lenya runs under the /ROOT context.
> 
> If I publish a site the hrefs in the respective document (in the live
> area) looks like: href="/lenya/unicms/authoring/support/pubrequest.html"
> 
> and in the LinkRewritingTransformer class I see:
> 
>  if (href.startsWith(context + "/" + publication.getId()))
> 
> so the URL will not be rewritten  ....

Hmm, I already answered some hours ago, but my mail seems to be lost :(

The problem is described here:

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


-- Andreas


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