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

No item selector views found for image-journal when trying to upload an image passing thru I18nServlet

    Details

      Description

      Description:
      No item selector views found for image-journal when trying to upload an image passing through I18nServlet.java#L244 
      Seems that this code is cutting of on the URL and is not being able to open dialogue correctly:

      path.substring( friendlyURLSeparatorIndex + friendlyURLSeparator.length())

      Original URL:
      http://localhost:8080/es/group/guest/~/control_panel/manage/-/select/journal%2Cimage/_com_liferay_journal_web_portlet_JournalPortlet_selectDocumentLibrary?_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_0_json=%7B%22desiredItemSelectorReturnTypes%22%3A%22fileentry%22%2C%22folderId%22%3A%220%22%2C%22resourcePrimKey%22%3A%2240428%22%7D&_com_liferay_item_selector_web_portlet_ItemSelectorPortlet_1_json=%7B%22desiredItemSelectorReturnTypes%22%3A%22fileentry%22%7D&p_p_auth=4NYkTmbw&_undefined_bodyCssClass=dialog-iframe-popup

      Redirected URL:
      Redirect /group/guest/~/control_panel/manage/-/select/journal,image/_com_liferay_journal_web_portlet_journalportlet_selectdocumentlibrary

      Expected URL:
      Redirect /group/guest/~/control_panel/manage/-/select/journal-image/_com_liferay_journal_web_portlet_journalportlet_selectdocumentlibrary

      In the URL the part "/journal,image/" has a comma and the expected one should be as so, but gets changed with a line as "/journal-image/"

      Steps:
      1. Go to Content & Data > Web Content > Structures > create new structure by clicking +
      2. Add to this structure an image field and upload field
      3. Go to Web content and create a new one using the structure created at step 1
      4. Having the default language selected as English open the dialogue to upload an image (it should open correctly)
      5. Now go to the browser URL and add in front /es/ in order to change the display language from English to Spanish
      6. Open again the dialogue to upload an image or file (shouldn't work a dialogue is opened with a message "Selection is not available") 

      Actual:  A dialogue is opened with a message "Selection is not available" when adding language in the URL

      Expected: A dialogue to upload an image or file in a journal article is opened correctly when adding language in the URL

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              georgel.pop Georgel Vasile Pop
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Georgel Vasile Pop
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                50 weeks, 6 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP25
                  7.1.X
                  7.2.10 DXP FP14
                  7.2.10.5 DXP SP5
                  7.2.X
                  7.3.7 CE GA8
                  7.3.10 DXP FP2
                  7.3.X
                  7.4.1 CE GA2 DXP 7,4
                  7.4.13 DXP GA1
                  Master