Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19012

log_user_id not recorded in log tables for REST calls

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.20, 4.7.9
    • Fix Version/s: 4.7.10
    • Component/s: CiviCRM API
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      When binary logging is enabled, normally any write action when the acting user is identifiable, gets their contact ID recorded in the log_user_id column in the respective log_ table. While investigating another issue at FF I noticed this wasn't happening for REST calls- the log_user_id is recorded as NULL. First seen on 4.4.20 but have confirmed it on a 4.7 buildkit.

      Looks like something between CRM-17413 and CRM-8965. I will submit a PR.

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              DaveFF David Knoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: