Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-27930

NullPointerException in AssetPublisher's RSSAction

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed

      Description

      Hi.

      I've found a problem in the RSS part of the Asset Publisher. In com.liferay.portlet.assetpublisher.action.RSSAction at line 231, the variable viewInContextURL can be null. This is the case for me at the moment. An NPE is thrown, but don't come up in the logs or other places (it's because of the try {} finally {} construct in com.liferay.portlet.assetpublisher.action.RSSAction#serveResource) . The result is an empty response. A simple check, if vieInContextURL is null works for me.

      The asset publisher is configured as follows:

      • Asset selection: dynamic
      • Scope to default Site
      • Asset Type: Web Content
        • Web Content Subtype: One of our structures
      • Filter should not contain one tag (out of the Global scope)
      • Display Style: A custom display style
      • Asset Link Behaviour: View in specific portlet
      • Maximum Items to display: 10
      • Pagination Type: One of our custom pagination types
      • Show Metadata Descriptions
      • Set as the Default Asset Publisher for This Page
      • Enable RSS Subscription:
      • RSS Feed Name: Press Releases
      • Maximum items to display: 20
      • Display Style: abstract
      • Format: RSS2.0

      The "patched" class is attached.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              paul.piao Paul Piao (Inactive)
              Reporter:
              hsteinhauer Holger Steinhauer (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 50 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2