Bug 812385 - Home Page - Links to PDF files do not work
Summary: Home Page - Links to PDF files do not work
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.1.CR02
Hardware: i686
OS: Linux
unspecified
low
Target Milestone: ---
: 5.2.1.GA
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-13 14:51 UTC by Miroslav Cupák
Modified: 2020-04-27 01:32 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Miroslav Cupák 2012-04-13 14:51:08 UTC
Description of problem:
Links to PDF files in Home Page portlet do not work.

Namely the problems are:
- "What Does JBoss EPP 5 Mean To Me?" points to http://[IP_ADDR]:8080/portal/docs/gatein-3-10.pdf
- "Portals The Red Hat Way" points to http://[IP_ADDR]:8080/portal/docs/JBoss_Portals_0310.pdf

Clicking on any of the links leads to HTTP status 404 and the following error in the server log:

ERROR [WebAppController] Could not associate the request path=/docs/gatein-3-10.pdf with an handler

(ERROR [WebAppController] Could not associate the request path=/docs/JBoss_Portals_0310.pdf with an handler)

Comment 1 Michal Vanco 2012-04-13 17:54:29 UTC
Can be fixed by updating pattern of staticResource handler at controller.xml:

<!-- Static resource handler needs to be before the portal handler -->
  <route path="/{gtn:path}">
    <route-param qname="gtn:handler">
      <value>staticResource</value>
    </route-param>
    <path-param qname="gtn:path" encoding="preserve-path">
      <pattern>.*\.(jpg|png|gif|ico|css|pdf)</pattern>
    </path-param>
  </route>


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