Uploaded image for project: 'COmanage'
  1. COmanage
  2. CO-2576

REST API unable to view all CO people

    XMLWordPrintable

Details

    Description

      Registry 4.1.0-RC1 returns 500 when attempting to view all CO people.

      Example request which returns 500 :

      curl -X GET --header "Content-Type:application/json" -u co_1.api-user:password 'https://comanage-registry:443/registry/co_people.json'

       

      Example request which works :

      curl -X GET --header "Content-Type:application/json" -u co_1.api-user:password 'https://comanage-registry:443/registry/co_people.json?coid=1'

      Error log :

      Warning: Undefined variable $requestKeys in [/srv/comanage-registry/app/Controller/CoPeopleController.php, line 768]
       
      Error: [TypeError] in_array(): Argument #2 ($haystack) must be of type array, null given
      Request URL: /registry/co_people.json
      Stack Trace:
      #0 /srv/comanage-registry/app/Controller/CoPeopleController.php(768): in_array('search_identifi...', NULL)
      #1 [internal function]: CoPeopleController->index()

      Attachments

        Activity

          People

            ioannis.e.igoumenos@at.internet2.edu Ioannis Eythymios Igoumenos (google.com)
            tom.zeller.5@at.internet2.edu Tom Zeller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: