Javascript Error when accessing RSS Feeds from a WebCenter Page in IE (Doc ID 1396123.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.5.0 and later
Information in this document applies to any platform.
Checked for relevance on 14-Jan-2014

Symptoms

There is a page style in WebCenter and added the following line to the head to expose an RSS Feed:

<link rel="alternate" type="application/rss+xml" title="RSS con context root" href="${contextRoot}/${idioma}/rss?tipoRss=2&wcnav.model=%2Foracle%2Fwebcenter%2Fportalapp%2Fnavigations%2Fnavegacion_es"/>

Here this HREF points to a navigation element, that is a page link to a JSPX page with the following code to generate RSS response:

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:gd="/webapp/generadorDirecciones">
  <jsp:Directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
      
         
      <!-- Guarda el tipo de RSS a generar -->
      <c:Set var="tipoRss" value="${param['tipoRss']}" scope="request"/>
      
      <!-- URL de la pagina actual -->
      <c:Set var="urlActual" value="${request.requestURI}" scope="request" />
      
      <!-- Genera RSS del tipo especificado en el parametro -->
      <af:-OutputText value="#{gd:generaRss(tipoRss, 'http://localhost:7101/context_root/es/rss?tipoRss=2&wcnav.model=%2Foracle%2Fwebcenter%2Fportalapp%2Fnavigations%2Fnavegacion_es')} <http://localhost:7101/context_root/es/rss?tipoRss=2&wcnav.model=/oracle/webcenter/portalapp/navigations/navegacion_es')}> " id="ot1" escape="false"/>
  </f:view>
</jsp:root>



When using the RSS icon of IE and choosing this particular RSS then there is a Javascript error on the page, where instead of the RSS the ADF redirection Javascript code is found in the HTML source. When requesting the exact same page in IE simply by going into the location field and hitting enter, then the RSS is correctly displayed.

The same problem does not occur in Firefox or Chrome.

Steps to Reproduce:

  1. Create a WebCenter App.
  2. Create a JSPX page to generate RSS response.
  3. Create a page style that exposes the link to the JSPX page to generate the RSS response with a code like this:

         Here the HREF may point to a navigation element or to the JSPX page directly.

     
      4. Create a new page based on the page style.
      5. Access the page in IE.
      6. Notice that the RSS button becomes active. Choose the RSS of the JSPX page.
      7. Notice the javascript error instead of the RSS content.
      8. Click to the location bar and hit enter to request the page once more.
          Notice that the RSS loads successfully.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms