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

DL link validation is not working in WCM

    Details

    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Upload an image called testImage.
      2. View the testImage.
      3. Copy the current page url.
        eg.
        http://localhost:8080/group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName=%2Fdocument_library%2Fview_file_entry&_com_liferay_document_library_web_portlet_DLAdminPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fguest%2F~%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_document_library_web_portlet_DLAdminPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview&_com_liferay_document_library_web_portlet_DLAdminPortlet_fileEntryId=39569
        
      4. Add it as a link in WCM content
      5. Save
      6. It works
      7. Change the fileEntryId of the url (add some random numbers to it) or remove the fileEntryId as null.
      8. Save

      Expected: publication should fail since the file entry do not exist
      Current: publication is succesful but the file do not exist.

      Note: DL validation is failed when the groupId is wrong meanwhile DL validation will not fail when the fileEntryId is wrong.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              joyce.wang Joyce Wang
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 12 weeks, 2 days ago

                  Packages

                  Version Package