Uploaded image for project: 'ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)'
  1. ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  2. LEP-3900

If you try to Preview a MessagBoard post in a NORMAL windowState, the portal drops all request parameters resulting in a NoSuchCategoryException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.3, 4.4.0
    • Fix Version/s: 4.3.5, 4.4.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat 5.5, HSQL

      Description

      To reproduce:

      • In edit_message.jsp, change WindowState.MAXIMIZED to WindowState.NORMAL

      <form action="<portlet:actionURL windowState="<%= WindowState.NORMAL.toString() %>"><portlet:param name="struts_action" value="/message_boards/edit_message" /></portlet:actionURL>" enctype="multipart/form-data" method="post" name="<portlet:namespace />fm" onSubmit="<portlet:namespace />saveMessage(); return false;">

      • Click "Preview"

      The following exception occurs:

      com.liferay.portlet.messageboards.NoSuchCategoryException: No MBCategory exists with the primary key 0

      If you remove enctype="multipart/form-data" it allows you to preview the messageboard post in a NORMAL WindowState:

      <form action="<portlet:actionURL windowState="<%= WindowState.NORMAL.toString() %>"><portlet:param name="struts_action" value="/message_boards/edit_message" /></portlet:actionURL>" method="post" name="<portlet:namespace />fm" onSubmit="<portlet:namespace />saveMessage(); return false;">

      Removing enctype="multipart/form-data" is not a proper fix though becuse you will no longer be able to upload attachments once it has been removed.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            edward.shin Edward Shin (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                4.3.5
                4.4.0