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

Web Content creation action is still sent to the server when required general fields are empty

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      2
    • Fix Priority:
      4
    • Similar Issues:
      Show 5 results 

      Description

      1. Go to Control Panel > Web Content
      2. Add > Basic Web Content
      3. Leave the Title field empty and publish the web content

      Even though the WC will not be created, the request will be sent to the server upon publishing, instead of avoiding the publication on the client side, because the Javascript based form validator is not used. The right behavior can be inspected e.g. on the user creation page, or on trunk where this is already fixed for web contents also.

      The solution is to "backport" the changes of commit https://github.com/liferay/liferay-portal/commit/3647577b2b58d30b9e0cc1d46e7a70282c4e0415 from trunk, which is part of LPS-30963 but is a standalone fix for this issue (the entire LPS-30963 is a big new feature which should not be entirely backported for a specific bugfix).

        Issue Links

          Activity

          Hide
          Mark Jin 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 request is sent to the server upon publishing. The page will be refreshed, then you can see the message like: [Please enter a valid name.]

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: f6bfdf784b571ea7b692c3b4b2215e5b03b5b32e.

          When publish web content without title, the error message [This field is required.] will be appear before publish.

          Show
          Mark Jin 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 request is sent to the server upon publishing. The page will be refreshed, then you can see the message like: [Please enter a valid name.] Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: f6bfdf784b571ea7b692c3b4b2215e5b03b5b32e. When publish web content without title, the error message [This field is required.] will be appear before publish.

            People

            • Assignee:
              Mark Jin
              Reporter:
              Gergely Mathe
              Recent user:
              Kenneth Chang (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 49 weeks, 5 days ago

                Development

                  Structure Helper Panel