On Feb 14, 2007, at 7:03 AM, Vitaly Baranovsky wrote:
I'd need to look into the site/profiling code to see how we could get
this to act differently, as its been a while.
David, have you looked into the site/profiling code already?
Have you tried changing the flag on constructor arg 3 (in
pipelines.xml):
<bean id="profilerValve"
class="org.apache.jetspeed.profiler.impl.ProfilerValveImpl"
init-method="initialize"
>
<constructor-arg index="0">
<ref bean="org.apache.jetspeed.profiler.Profiler" />
</constructor-arg>
<constructor-arg index="1">
<ref bean="org.apache.jetspeed.portalsite.PortalSite" />
</constructor-arg>
<constructor-arg index="2">
<ref bean="org.apache.jetspeed.page.PageManager" />
</constructor-arg>
<!--
request fallback to root folder/page enabled by default;
if set to false, requests generate HTTP 403/404 errors
for access errors or missing pages
-->
<constructor-arg index="3"><value>true</value></constructor-arg>
<!--
2006/12/4, David Sean Taylor <[EMAIL PROTECTED]>:
NZViking New Zealander wrote:
> Hello All!
>
> How can I operate page not exists situation correctly (using 404
http
> code)?
>
> Jetspeed shows me main page (/jetspeed/portal/default-
page.psml), when I
> enter non-existing page of my site in browser. But I want jetspeed
displays
> me 404 page.
>
> For example, i entered
> http://localhost:8080/jetspeed/portal/blablabla.psml,
> but this page doesn't exists on portal. Jetspeed shows me main page
> (located
> at /jetspeed/portal/default-page.psml) instead of 404 page, and
returns
to
> me status code 200/ok instead of 404/not found.
>
> How can I force jetspeed shows me 404.html in this case (with
status
code
> 404/not found instead of 200/ok)?
>
The general behavior of the profiler is to always find the best
page for
your request. If it fails to find one, it returns to your home page
I'd need to look into the site/profiling code to see how we could get
this to act differently, as its been a while. Its possible, but I
think
we would have to make this an optional feature
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: jetspeed-user-
[EMAIL PROTECTED]
--
With best regards,
Vitaly Baranovsky
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]