Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-374

Category Permission Cache is calculated incorrectly on PHP5

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.0.2-B1
    • Component/s: Permissions
    • Labels:
      None

      Description

      Noticed that allow/deny category permissions are used for categories,
      then they are incorrectly inherited (at least CATEGORY.VIEW permission). To
      inherit permission kPermCacheUpdater class assigns permission object without
      reference to copy it. This approach works in PHP4, because "=" is used
      instead of "=&". PHP5 always passes objects by reference even if "=&"
      operator is not used. This way we got random inheritance logic.

      To solve this in PHP5 "clone" operator is used, but since this should work
      in PHP4 too, then serialize/unserialize is used.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: