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

Fix the confusion of registering JSON WebServices with the same 'signature'

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE RC6
    • Fix Version/s: 6.2.0 CE GA1
    • Component/s: Web Services
    • Labels:
      None

      Description

      On portal startup the following debug messages are shown:

      12:59:07,215 DEBUG [localhost-startStop-1][JSONWebServiceActionsManagerImpl:275] A JSON web service action is already registered at /permission/check-permission
      12:59:07,539 DEBUG [localhost-startStop-1][JSONWebServiceActionsManagerImpl:275] A JSON web service action is already registered at /expandovalue/add-value
      12:59:07,573 DEBUG [localhost-startStop-1][JSONWebServiceActionsManagerImpl:275] A JSON web service action is already registered at /journalfeed/delete-feed
      12:59:07,575 DEBUG [localhost-startStop-1][JSONWebServiceActionsManagerImpl:275] A JSON web service action is already registered at /journalfeed/get-feed
      12:59:07,637 DEBUG [localhost-startStop-1][JSONWebServiceActionsManagerImpl:275] A JSON web service action is already registered at /mdrrule/add-rule
      

      This happens because of overloading - we have methods with the same name and same parameter names, and only one such method can be registered. It is not guaranteed which one.

      This LPS cleans up this confusion by exposing only one of the overloaded methods and excluding the others.

      Also, this should be a WARN message, not a DEBUG one.

        Attachments

          Activity

            People

            • Assignee:
              hugo.huijser Hugo Huijser
              Reporter:
              igor.spasic Igor Spasic (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 41 weeks, 4 days ago

                Packages

                Version Package
                6.2.0 CE GA1