CRM-2541 ACL Code Crashes CiviCRM For Some UF Group ACLs

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When using some profiles in non-registration contexts, the profiles will crash CiviCRM with a fatal when submitted. Error message is the "this profile cannot be used..." message. Which turns out to be bogus.

      Cause: CRM_ACL_BAO_ACL::group() returns the keys of a non-associative array rather than the values when there is an ACL granting access for all profiles to a role. This causes some UF ID to be out of range, and creates a bogus priv string upstream.

      Patch is enclosed.

        Attachments

          Activity

          [CRM-2541] ACL Code Crashes CiviCRM For Some UF Group ACLs
          Donald A. Lobo added a comment -

          Can u give us the backtrace and scenario where the above occurs. The array is supposed to be an associative array with the key being an id and the value the group title. I suspect you are hitting a bug where we dont follow the above

          Donald A. Lobo added a comment -
          Manish Zope added a comment -

          verify for 2.0

          Kiran Jagtap added a comment -

          Verified and Confirmed for 2.0 ( r - 12922 )

          Donald A. Lobo added a comment -


          Dont know the steps to reproduce this issue. Also the ACL code has had a significant rewrite

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Rob Thorne

              Dates

              • Created:
                Updated:
                Resolved: