Bug 812385

Summary: Home Page - Links to PDF files do not work
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Miroslav Cupák <mcupak>
Component: PortalAssignee: Nobody <nobody>
Status: VERIFIED --- QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.2.1.CR02CC: epp-bugs, tkyjovsk
Target Milestone: ---   
Target Release: 5.2.1.GA   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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>