Uploaded image for project: 'Magnolia RSS Aggregator Module'
  1. Magnolia RSS Aggregator Module
  2. MGNLRSSAGG-150

Link to a feed is stored as a path but requested as an identifier in the code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.2.3
    • 2.2.1
    • None
    • None

    Description

      Dialogs store the link to a feed as a path, not an uiid (no converted defined). However the methode AbstractFeedModel:getFeedTitle access this attribute as a UIID:

       public String getFeedTitle(String feedLink) {
              try {
                  if (content.hasProperty("feed")) {
                      Node rssParent = SessionUtil.getNodeByIdentifier(RSSAggregatorConstants.WORKSPACE, content.getProperty("feed").getString());
                      return getFeedProperty(rssParent, FEEDS_NODE, "link", feedLink, "title");
                  }
              } catch (RepositoryException e) {
                  log.error("Problem while fetching feed title for statistics: " + e.getMessage());
              }
              return null;
          }
      

      The method SessionUtil.getNode should be used instead.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                apchelintcev Aleksandr Pchelintcev
                nbarbe Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD