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

API filtering by api_key column does not work as expected

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      It may be that not working is how this should behave, but reporting since the behaviour is unexpected.

      If I use API to filter as eg "first_name LIKE 'a%'", I get results.

      If I use API explorer similarly to query "api_key LIKE 'a%'", I get:

      {
          "error_code": "not-found",
          "entity": "Contact",
          "action": "get",
          "is_error": 1,
          "error_message": "Error in call to Key_get : API (Key, get) does not exist (join the API team and implement it!)"
      }
      

      IMO we probably don't want people to be able to query API keys via API anyway (until there are permissions around that sort of usage) so we should special case this.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: