My Oracle Support Banner

JavaScript Error when accessing RSS Feeds from a WebCenter (WCC) Page in Internet Explorer (IE) (Doc ID 1396123.1)

Last updated on OCTOBER 30, 2019

Applies to:

Oracle WebCenter Portal - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms

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

<link rel="alternate" type="application/rss+xml" title="RSS with context root" href="${contextRoot}/${language}/rss?xxxRss=2&wcnav.model=/oracle/webcenter/xxxx/xxxx/navigation_xx"/>

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>
      
         
      <!-- Save the type of RSS to generate -->
      <c:Set var="xxxRss" value="${param['xxxRss']}" scope="request"/>
      
      <!-- URL of the current page -->
      <c:Set var="urlActual" value="${request.requestURI}" scope="request" />
      
      <!-- Generates RSS of the type specified in the parameter -->
      <af:-OutputText value="#{gd:generaRss(xxxRss, 'http://localhost:7101/context_root/es/rss?xxxRss=2&wcnav.model=/oracle/webcenter/xxxx/xxxx/navigation_xx')} <http://localhost:7101/context_root/xx/rss?xxxRss=2&wcnav.model=/oracle/webcenter/xxxx/xxxx/navigate_xx')}> " id="xxx" 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.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.