Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12741

ModelPermission should handle error responses from permission-services

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 22.01.01
    • 22.01.01
    • framework/service
    • None

    Description

      ModelPermission's evalPermissionService method will call a permission-service as part of checking whether a user is permitted to execute a service.

      If the permission service returns an error response then a Null Pointer Exception will be thrown by evalPermissionService since the error response is not trapped.

      Amend evalPermissionService to detect an error response from the permission service and return it unchanged to the caller.

      Further, amend evalPermissionService to check for the presence of the hasPermission attribute in the response before attempting to retrieve and convert it to a boolean.

      Attachments

        Issue Links

          Activity

            People

              danwatford Daniel Watford
              danwatford Daniel Watford
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: