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

ClassCastException can occur when using registering a background task executor

    Details

      Description

      In LPS-58809, the background task executor registry was added. However, when one of the variable names was being changed, the incorrect variable was inserted. This leads to potential ClassCastExceptions if the API is used since the API otherwise expects the property map to be <String, String>.

      Reproduction Steps:

      1. Register a background task executor using the BackgroundTaskExecutorRegistryUtil registerBackgroundTaskExecutor API.

      2. Trigger either removeBackgroundTaskExecutor or addBackgroundTaskExecutor for this background task executor. 

      Expected Results:

      No errors.

      Actual Results:

      A java.lang.ClassCastException which says the executor cannot be cast to java.lang.String

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            lianne.louie Lianne Louie
            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, 9 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP88
                7.0.X
                7.1.10 DXP FP14
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                7.2.1 CE GA2
                7.3.10 DXP GA1
                Master