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

Loose exceptions on idempotent services

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 CE GA1, 6.2.10 EE GA1
    • Fix Version/s: None
    • Labels:
      None

      Description

      In the following invocation

      {
        "$message = /mbmessage/get-message": {
          "messageId": 1234,
          "$group = /group/get-group": {
            "@groupId": "$message.groupId"
          }
        }
      }
      

      if get-group fails the whole invocation will fail.

      I propose the following syntax (notice the question mark):

      {
        "$message = /mbmessage/get-message": {
          "messageId": 1234,
          "$group? = /group/get-group": {
            "@groupId": "$message.groupId"
          }
        }
      }
      

      If get-group fails the content of group will be the mangled exception. This way we can, as consumers, better understand what went wrong in the invocation.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                5 years, 20 weeks, 3 days ago

                Packages

                Version Package