PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-32524

Subscriptions to a wiki node within the My Subscriptions porltet display as a numerical ID rather than a link

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
    • Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M4
    • Labels:
    • Environment:
      Liferay Version: 6.1 GA 2
      Operating System: Windows 7
      Application Server: Tomcat 7.0.x
      Java Virtual Machine: Java 6
      Database: MySQL 5.5
    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      2
    • Similar Issues:
      Show 5 results 

      Description

      Steps to Reproduce:

      1. Launch a clean bundle
      2. Install the My Subscriptions portlet
      3. Navigate to Control Panel -> Wiki
      4. Click on Actions and select Subscribe
      5. Navigate to Control Panel -> My Subscriptions

      Intended Result: the title field of the wiki node should be the name of the wiki (Main) and be a clickable link
      Actual Result: the title field is the numerical ID of the wiki and is plain text

        Issue Links

          Activity

          Hide
          Everest Liu (Inactive) added a comment -

          After further investigation, Wiki Nodes are not currently defined within the Asset Framework, and no AssetRendererFactory has been written for Wiki Nodes, as Wiki Nodes are containers for a set of wiki pages, but are not themselves content to be displayed.

          I haven't looked into the subscription code for the WikiNode, triggered by the Action button, "subscribe" as per the image.

          As per displaying the WikiNode name in the My Subscriptions portlet, adding the below code to MySubscriptionsUtil.java within the getTitleText() method below
          else if (className.equals(MBCategory.class.getName())) {:

          else if (className.equals(WikiNode.class.getName())) {
          	return WikiNodeLocalServiceUtil.getWikiNode(classPK).getName();
          }
          
          Show
          Everest Liu (Inactive) added a comment - After further investigation, Wiki Nodes are not currently defined within the Asset Framework, and no AssetRendererFactory has been written for Wiki Nodes, as Wiki Nodes are containers for a set of wiki pages, but are not themselves content to be displayed. I haven't looked into the subscription code for the WikiNode, triggered by the Action button, "subscribe" as per the image. As per displaying the WikiNode name in the My Subscriptions portlet, adding the below code to MySubscriptionsUtil.java within the getTitleText() method below else if (className.equals(MBCategory.class.getName())) {: else if (className.equals(WikiNode.class.getName())) { return WikiNodeLocalServiceUtil.getWikiNode(classPK).getName(); }
          Hide
          Everest Liu (Inactive) added a comment -

          Logic has been removed from WikiDisplay portlet as it can't display all_pages. It's designed to just show a wiki, whereas wiki portlet can display all wikis, and all pages within a specific wiki. Since the generated link is for the MySubscriptions portlet, all_pages view is necessary.

          Show
          Everest Liu (Inactive) added a comment - Logic has been removed from WikiDisplay portlet as it can't display all_pages. It's designed to just show a wiki, whereas wiki portlet can display all wikis, and all pages within a specific wiki. Since the generated link is for the MySubscriptions portlet, all_pages view is necessary.
          Hide
          Ginson Ren added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

          The title field is the numerical ID of the wiki.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 367deedcee5be99f96cf6b04735546c39520ef98.
          Plugins 6.1.x EE GIT ID: d9efe3596377139763dd5ba20f76799e36a3a7a4.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 436f9d674865a34c77eda88734d2ef1963f52e38.
          Plugins 6.2.x GIT ID: 2300ff0060b6a0c11a05334ac324167886a68c00.

          The title field of the wiki node will be the name of the wiki (Main).

          Show
          Ginson Ren added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. The title field is the numerical ID of the wiki. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 367deedcee5be99f96cf6b04735546c39520ef98. Plugins 6.1.x EE GIT ID: d9efe3596377139763dd5ba20f76799e36a3a7a4. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 436f9d674865a34c77eda88734d2ef1963f52e38. Plugins 6.2.x GIT ID: 2300ff0060b6a0c11a05334ac324167886a68c00. The title field of the wiki node will be the name of the wiki (Main).

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 28 weeks ago

                Development

                  Subcomponents

                    Structure Helper Panel