You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by lenuser84114 <le...@log1.net> on 2005/03/08 21:06:27 UTC
Have I found a bug?
Dear All,
Using version Lenya 1.2.2
I was having a problem with image drawers and local link drawers in
kupu, when accessing externally mod_rewrite, but not when accessing the
site directly and locally through port 8080.
I tracked the problem down to two files in the directory:
./lenya/lenya/resources/kupu/apache-lenya/lenya/drawers
there are imagedrawer.xsl and linkdrawer.xsl
both these have a line in the xsl:
<xsl:import
href="${parameters.getParameter('import-stylesheet-url')}"/>
which when resolved by the xsl engine become:
<xsl:import
href="http://mytestsite:8080/lenya/kupu/common/kupudrawers/drawer.xsl"/>
the xsl arrives on the browser like that and so it can never the file
drawer.xsl through mod_rewrite and not at all if port 8080 or the
application server cannot be seen from the outside world.
Is this a known problem?
Thanks
Regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: lenya as portal ?
Posted by Franck Omrane <fm...@alfadimag.com>.
thanks,
i'll post what i have done for those who are interested in a working sample.
Gregor J. Rothfuss wrote:
>Franck Omrane said:
>
>
>
>>i wonder if i can use lenya to consolidate in one user interface 3
>>kind of apps :
>>
>>- jsp app with xhtml output
>>- servlet app with xml output
>>- external soap service
>>
>>for the jsp app :
>>
>>with cocoon i can use a pipeline with the proxygenerator (because it can
>>use the post method), a link rewriting transformer (rewrite the links
>>inside the pages --the tricky part).
>>i am trying to figure out a way to use a lenya doctype using this
>>pipeline instead of a lenya static xml doc. Since all internal links
>>are correctly rewritten, i can navigate inside this distant app, staying
>>within the same node of lenya's tree menu.
>>
>>
>
>cool, yes that sounds workable.
>
>
>
>>for the xml app
>>
>> I wonder if i can use cinclude transformer to gather xml fragments from
>>those apps. the cinclude would be inserted with the lenya's source
>>editor ( or from kupu ???).
>>
>>
>
>it would either have to be the source, form or bxe editor because kupu
>does not allow elements outside of the xhtml namespace at this time.
>
>
>
>>for the soap service.
>>
>>it seems that cforms can be used for gathering user input. i folow
>>with attention the Joe Grist experiments.
>>
>>
>
>ok
>
>
>
>>Unique login :
>>
>>all those apps use a ldap server for access control.
>>and each app has to control access without asking again and again.
>>since all those apps are in secure areas the login can be posted by
>>the apps.
>>with cocoon , wsproxy generator or cinclude post the user login from
>>the sitemap( session ..).
>>how can get lenya's user infos from the sitemap ?
>>
>>
>
><map:parameter name="userid" value="{access-control:user-id}"/>
>
>
>
Re: lenya as portal ?
Posted by "Gregor J. Rothfuss" <gr...@wyona.com>.
Franck Omrane said:
> i wonder if i can use lenya to consolidate in one user interface 3
> kind of apps :
>
> - jsp app with xhtml output
> - servlet app with xml output
> - external soap service
>
> for the jsp app :
>
> with cocoon i can use a pipeline with the proxygenerator (because it can
> use the post method), a link rewriting transformer (rewrite the links
> inside the pages --the tricky part).
> i am trying to figure out a way to use a lenya doctype using this
> pipeline instead of a lenya static xml doc. Since all internal links
> are correctly rewritten, i can navigate inside this distant app, staying
> within the same node of lenya's tree menu.
cool, yes that sounds workable.
> for the xml app
>
> I wonder if i can use cinclude transformer to gather xml fragments from
> those apps. the cinclude would be inserted with the lenya's source
> editor ( or from kupu ???).
it would either have to be the source, form or bxe editor because kupu
does not allow elements outside of the xhtml namespace at this time.
> for the soap service.
>
> it seems that cforms can be used for gathering user input. i folow
> with attention the Joe Grist experiments.
ok
> Unique login :
>
> all those apps use a ldap server for access control.
> and each app has to control access without asking again and again.
> since all those apps are in secure areas the login can be posted by
> the apps.
> with cocoon , wsproxy generator or cinclude post the user login from
> the sitemap( session ..).
> how can get lenya's user infos from the sitemap ?
<map:parameter name="userid" value="{access-control:user-id}"/>
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: lenya as portal ?
Posted by Franck Omrane <fm...@alfadimag.com>.
sorry for my zipped question.
i wonder if i can use lenya to consolidate in one user interface 3
kind of apps :
- jsp app with xhtml output
- servlet app with xml output
- external soap service
for the jsp app :
with cocoon i can use a pipeline with the proxygenerator (because it can
use the post method), a link rewriting transformer (rewrite the links
inside the pages --the tricky part).
i am trying to figure out a way to use a lenya doctype using this
pipeline instead of a lenya static xml doc. Since all internal links
are correctly rewritten, i can navigate inside this distant app, staying
within the same node of lenya's tree menu.
for the xml app
I wonder if i can use cinclude transformer to gather xml fragments from
those apps. the cinclude would be inserted with the lenya's source
editor ( or from kupu ???).
for the soap service.
it seems that cforms can be used for gathering user input. i folow
with attention the Joe Grist experiments.
Unique login :
all those apps use a ldap server for access control.
and each app has to control access without asking again and again.
since all those apps are in secure areas the login can be posted by
the apps.
with cocoon , wsproxy generator or cinclude post the user login from
the sitemap( session ..).
how can get lenya's user infos from the sitemap ?
I hope this is enough detailed.
I just want to know if someone has already done this with lenya and
can give tips.
thanks
Gregor J. Rothfuss wrote:
> Franck Omrane wrote:
>
>> i'd like to, using cinclude transformer and/or wsproxygenerator
>> getting informations from distants XML apps.
>>
>> i wonder how to get login information ( user name, user role ...)
>> and pass it to cform and POST it to distant apps ?
>
>
> can you explain in a bit more detail?
>
>
Re: lenya as portal ?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Franck Omrane wrote:
> i'd like to, using cinclude transformer and/or wsproxygenerator getting
> informations from distants XML apps.
>
> i wonder how to get login information ( user name, user role ...) and
> pass it to cform and POST it to distant apps ?
can you explain in a bit more detail?
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
lenya as portal ?
Posted by Franck Omrane <fm...@alfadimag.com>.
hi,
i'd like to, using cinclude transformer and/or wsproxygenerator getting
informations from distants XML apps.
i wonder how to get login information ( user name, user role ...) and
pass it to cform and POST it to distant apps ?
thanks
Re: Have I found a bug?
Posted by Franck Omrane <fm...@alfadimag.com>.
yes
there is a comment about this on usecase-kupu.xmap
Gregor J. Rothfuss wrote:
> Franck Omrane wrote:
>
>> it is for IE xslt processor. because he needs an absolute url to
>> transform an xml doc.
>>
>> then the problem is how to get the proxy configuration either from
>> usecase-kupu.xmap which is independant from publications or, at last
>> make a subsitemap :'(
>
>
> ah, so the XSL transform happens on the client side?
>
Re: Have I found a bug?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Franck Omrane wrote:
> it is for IE xslt processor. because he needs an absolute url to
> transform an xml doc.
>
> then the problem is how to get the proxy configuration either from
> usecase-kupu.xmap which is independant from publications or, at last
> make a subsitemap :'(
ah, so the XSL transform happens on the client side?
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Have I found a bug?
Posted by Franck Omrane <fm...@alfadimag.com>.
it is for IE xslt processor. because he needs an absolute url to
transform an xml doc.
then the problem is how to get the proxy configuration either from
usecase-kupu.xmap which is independant from publications or, at last
make a subsitemap :'(
Gregor J. Rothfuss wrote:
> Franck Omrane wrote:
>
>> the problem is in :
>> jakarta-tomcat-5.0.28/webapps/lenya/lenya/usecases/kupu/usecase-kupu.xmap
>>
>>
>> <map:parameter name="import-stylesheet-url"
>> value="{request:scheme}://{request:serverName}:{request:serverPort}{page-envelope:context-prefix}/kupu/common/kupudrawers/drawer.xsl"/>
>>
>>
>> if you use tomcat you can define your proxy configuration in server.xml.
>> it will work if you have only one domain to host.
>>
>> does anyone know how to get the proxy configuration from this
>> sitemap. for example in publication.xconf (<proxy url) ??
>
>
> what is really weird is that the XSL does not use the usual file
> system include. must have something to do with the XSL being generated
> dynamically.. we need to rework this so that it works without tricks
> like that.
>
Re: Have I found a bug?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Franck Omrane wrote:
> the problem is in :
> jakarta-tomcat-5.0.28/webapps/lenya/lenya/usecases/kupu/usecase-kupu.xmap
>
> <map:parameter name="import-stylesheet-url"
> value="{request:scheme}://{request:serverName}:{request:serverPort}{page-envelope:context-prefix}/kupu/common/kupudrawers/drawer.xsl"/>
>
>
> if you use tomcat you can define your proxy configuration in server.xml.
> it will work if you have only one domain to host.
>
> does anyone know how to get the proxy configuration from this sitemap.
> for example in publication.xconf (<proxy url) ??
what is really weird is that the XSL does not use the usual file system
include. must have something to do with the XSL being generated
dynamically.. we need to rework this so that it works without tricks
like that.
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Have I found a bug?
Posted by Franck Omrane <fm...@alfadimag.com>.
thanks
i'll have a try.
i am not yet familiar with the url rewriting transformer, but shouldn't
it do the job ?
Felix R�thenbacher wrote:
> I wrote an input module for this, at least for documents.
> Have a look at:
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=33742
>
> Maybe it can be extended with a parameter for fetching the
> proxy settings only.
>
> WDYT?
>
> - Felix
>
> Franck Omrane wrote:
>
>> the problem is in :
>> jakarta-tomcat-5.0.28/webapps/lenya/lenya/usecases/kupu/usecase-kupu.xmap
>>
>>
>> <map:parameter name="import-stylesheet-url"
>> value="{request:scheme}://{request:serverName}:{request:serverPort}{page-envelope:context-prefix}/kupu/common/kupudrawers/drawer.xsl"/>
>>
>>
>> if you use tomcat you can define your proxy configuration in server.xml.
>> it will work if you have only one domain to host.
>>
>> does anyone know how to get the proxy configuration from this
>> sitemap. for example in publication.xconf (<proxy url) ??
>>
>>
>>
>>
>>
>>
>> Gregor J. Rothfuss wrote:
>>
>>> lenuser84114 wrote:
>>>
>>>> which when resolved by the xsl engine become:
>>>> <xsl:import
>>>> href="http://mytestsite:8080/lenya/kupu/common/kupudrawers/drawer.xsl"/>
>>>>
>>>>
>>>> the xsl arrives on the browser like that and so it can never the file
>>>> drawer.xsl through mod_rewrite and not at all if port 8080 or the
>>>> application server cannot be seen from the outside world.
>>>
>>>
>>>
>>>
>>> thanks for spotting! this is indeed wrong and needs to be changed
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>
>
>
Re: Have I found a bug?
Posted by Felix Röthenbacher <fe...@wyona.com>.
I wrote an input module for this, at least for documents.
Have a look at:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33742
Maybe it can be extended with a parameter for fetching the
proxy settings only.
WDYT?
- Felix
Franck Omrane wrote:
> the problem is in :
> jakarta-tomcat-5.0.28/webapps/lenya/lenya/usecases/kupu/usecase-kupu.xmap
>
> <map:parameter name="import-stylesheet-url"
> value="{request:scheme}://{request:serverName}:{request:serverPort}{page-envelope:context-prefix}/kupu/common/kupudrawers/drawer.xsl"/>
>
>
> if you use tomcat you can define your proxy configuration in server.xml.
> it will work if you have only one domain to host.
>
> does anyone know how to get the proxy configuration from this sitemap.
> for example in publication.xconf (<proxy url) ??
>
>
>
>
>
>
> Gregor J. Rothfuss wrote:
>
>> lenuser84114 wrote:
>>
>>> which when resolved by the xsl engine become:
>>> <xsl:import
>>> href="http://mytestsite:8080/lenya/kupu/common/kupudrawers/drawer.xsl"/>
>>>
>>> the xsl arrives on the browser like that and so it can never the file
>>> drawer.xsl through mod_rewrite and not at all if port 8080 or the
>>> application server cannot be seen from the outside world.
>>
>>
>>
>> thanks for spotting! this is indeed wrong and needs to be changed
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
--
Felix Röthenbacher felix.roethenbacher@wyona.com
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Have I found a bug?
Posted by Franck Omrane <fm...@alfadimag.com>.
the problem is in :
jakarta-tomcat-5.0.28/webapps/lenya/lenya/usecases/kupu/usecase-kupu.xmap
<map:parameter name="import-stylesheet-url"
value="{request:scheme}://{request:serverName}:{request:serverPort}{page-envelope:context-prefix}/kupu/common/kupudrawers/drawer.xsl"/>
if you use tomcat you can define your proxy configuration in server.xml.
it will work if you have only one domain to host.
does anyone know how to get the proxy configuration from this sitemap.
for example in publication.xconf (<proxy url) ??
Gregor J. Rothfuss wrote:
> lenuser84114 wrote:
>
>> which when resolved by the xsl engine become:
>> <xsl:import
>> href="http://mytestsite:8080/lenya/kupu/common/kupudrawers/drawer.xsl"/>
>>
>> the xsl arrives on the browser like that and so it can never the file
>> drawer.xsl through mod_rewrite and not at all if port 8080 or the
>> application server cannot be seen from the outside world.
>
>
> thanks for spotting! this is indeed wrong and needs to be changed
>
Re: Have I found a bug?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
lenuser84114 wrote:
> which when resolved by the xsl engine become:
> <xsl:import
> href="http://mytestsite:8080/lenya/kupu/common/kupudrawers/drawer.xsl"/>
>
> the xsl arrives on the browser like that and so it can never the file
> drawer.xsl through mod_rewrite and not at all if port 8080 or the
> application server cannot be seen from the outside world.
thanks for spotting! this is indeed wrong and needs to be changed
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org