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

Setting a past date or time breaks Update Due Date function, allows for non-numerical value in Workflow.

    Details

      Description

      Steps to Reproduce:
      1. Go to Site Admin > Web Content
      2. Click on the Info icon > Edit
      3. Under Default Workflow for All Structures, select Single Approver > Save
      4. Create a Web Content Content > Submit for Publication
      5. Go to Avatar Icon > Notifications
      6. Click on the recent notification
      7. Click on the kebab icon > Update Due Date
      8. For the date, add a nonnumerical value (ex: test) & set time in the past > Save
      9. Assert an Error Message
      10. Click on the kebab icon > Update Due Date
      11. Set Due Date to a new date > Save
      12. Click on the kebab icon > Update Due Date
      13. Set to a new future date > Save
      14. Click on the kebab icon > Update Due Date
      15. Assert Due Date is the one chosen in Step 14

      Expected Results:
      To receive validation error message and to not have non-numerical values saved

      Actual Results:
      Can save nonnumerical values with a Success Message and display wrong value for date

      Environment:
      Tomcat 9.0.17 + MySQL 5.7 + Portal 7.2.x GIT ID:
      0c346b627514af36785fd8f06befb86f10a584a8
      Base Branch Commit: c8164d415304a63bfe7e8370a726fd44596c625e

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                randolph.do Randolph Do (Inactive)
                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:
                  1 year, 4 weeks, 3 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP1
                  7.2.X
                  7.2.1 CE GA2
                  Master