Bug 807961 - Displaying custom File Not Found page (404) for http://localhost:8080/portal/private/available-portal/not-available-page
Summary: Displaying custom File Not Found page (404) for http://localhost:8080/portal/...
Keywords:
Status: ASSIGNED
Alias: None
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.0.GA
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 5.2.x
Assignee: Peter Palaga
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-29 09:02 UTC by abhishek vijra
Modified: 2018-11-28 20:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Feature Request
Embargoed:


Attachments (Terms of Use)

Description abhishek vijra 2012-03-29 09:02:55 UTC
on the EPP 5.X it is required to assign a error page to the url as shown below.

http://localhost:8080/portal/private/available-portal/not-available-page

the key issue is when a page is accessed which is actually not present under the available-portal for example http://localhost:8080/portal/private/classic/somepage.html (somepage.html actually doesn't exists) the portal doesn't show 404 rather it returns to the home page http://localhost:8080/portal/private/classic.

Since on 5.1.1 this was not possible, I tried on EPP 5.2
I tried configuring the error page according to https://community.jboss.org/wiki/CustomErrorPages but I was only successful the /portal level
but not in /portal/classic.

I tried modifying controller.xml <route path="/error.html"> to <route path="/classic/error.html"> but this did not help too.
I guess above mentioned approach only works when there is 404 response but in case of /classic/somepage.html 404 is not received.

I tried analysing  http://anonsvn.jboss.org/repos/gatein/epp/portal/tags/EPP_5_2_0_GA/component/web/controller/src/main/java/org/exoplatform/web/WebAppController.java but no avail.


Note You need to log in before you can comment on or make changes to this bug.