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

Not possible to create link to another wiki page in wiki content.

    Details

      Description

      Steps to reproduce:

      1. Create new wiki.
      2. Add new page to the wiki.
      3. Add another page to the wiki. This time, in the content field of the wiki, try to create a link, by selecting portion of text and then choosing link icon from popup.
      4. In another popup that will open, choose 'browse' icon.
      5. A popup opens with a list of all wiki pages in the current wiki

      Expected result
      We can select a page and click 'add' - this will create a link to it in current page

      Actual result
      The 'add' button is always disabled even if we select some page

      LPS-102346 introduced shorter Item Selector URLs. The ItemSelectedEventName are no more stored in the URL as a parameter, but rather as part of the route. For example:
      http://localhost:8080/group/guest/~/control_panel/manage/-/select/file%2Clayout/_com_liferay_wiki_web_portlet_WikiAdminPortlet_contentEditorselectItem?p_p_auth=ZKd4GtYb&_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_0_json=%7B%22desiredItemSelectorReturnTypes%22%3A%22com.liferay.item.selector.criteria.URLItemSelectorReturnType%22%7D

      Here the _com_liferay_wiki_web_portlet_WikiAdminPortlet_contentEditorselectItem part is the ItemSelectedEventName.
      Currently, ItemSelectorImpl.getItemSelectedEventName(String itemSelectorURL) cannot extract ItemSelectedEventName from the URL as it assumes that it is stored as a parameter.

      Hence ItemSelectedEventName cannot be extracted from the Item Selector URL.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              istvan.dezsi Istvan Dezsi
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                33 weeks, 3 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP7
                  7.2.X
                  7.3.4 CE GA5
                  7.3.10 DXP GA1
                  Master