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

CoreApi requests apparently misrouted

    XMLWordPrintable

Details

    Description

      Requests for CoreApi endpoints are returning 401 errors, apparently as a result of being routed through the ApiSource plugin

      We added debug code to monitor route loading and request routing – in our case it seems that GET requests for the CO Person Read API via this URL:

        /registry/api/co/4/core/v1/people/A53083XXX

      were somehow being processed through ApiSource/Controller/ApiController.php

      The actual 401 response is being thrown in beforeFilter()

       

      [Mon Feb 13 11:19:42.736445 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.736450 2023] [php:notice] [pid 4519] [client ::1:45920] ApiProvisioner
      [Mon Feb 13 11:19:42.736463 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/local/Plugin/ApiProvisioner/\n)\n
      [Mon Feb 13 11:19:42.736500 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.736505 2023] [php:notice] [pid 4519] [client ::1:45920] ApiSource
      [Mon Feb 13 11:19:42.736510 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/local/Plugin/ApiSource/\n)\n
      [Mon Feb 13 11:19:42.737768 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.737795 2023] [php:notice] [pid 4519] [client ::1:45920] ChangelogProvisioner
      [Mon Feb 13 11:19:42.737805 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/local/Plugin/ChangelogProvisioner/\n)\n
      [Mon Feb 13 11:19:42.737838 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.737842 2023] [php:notice] [pid 4519] [client ::1:45920] CoreApi
      [Mon Feb 13 11:19:42.737847 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/CoreApi/\n)\n
      [Mon Feb 13 11:19:42.739857 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.739887 2023] [php:notice] [pid 4519] [client ::1:45920] CoreJob
      [Mon Feb 13 11:19:42.739898 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/CoreJob/\n)\n
      [Mon Feb 13 11:19:42.739929 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.739934 2023] [php:notice] [pid 4519] [client ::1:45920] DataScrubberFilter
      [Mon Feb 13 11:19:42.739939 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/local/Plugin/DataScrubberFilter/\n)\n
      [Mon Feb 13 11:19:42.739969 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.739974 2023] [php:notice] [pid 4519] [client ::1:45920] DefaultNormalizer
      [Mon Feb 13 11:19:42.739979 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/DefaultNormalizer/\n)\n
      [Mon Feb 13 11:19:42.739990 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.739993 2023] [php:notice] [pid 4519] [client ::1:45920] EnvSource
      [Mon Feb 13 11:19:42.739997 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/EnvSource/\n)\n
      [Mon Feb 13 11:19:42.740011 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.740016 2023] [php:notice] [pid 4519] [client ::1:45920] FileSource
      [Mon Feb 13 11:19:42.740021 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/local/Plugin/FileSource/\n)\n
      [Mon Feb 13 11:19:42.740036 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.740040 2023] [php:notice] [pid 4519] [client ::1:45920] GrouperProvisioner
      [Mon Feb 13 11:19:42.740046 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/GrouperProvisioner/\n)\n
      [Mon Feb 13 11:19:42.740057 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.740061 2023] [php:notice] [pid 4519] [client ::1:45920] LdapProvisioner
      [Mon Feb 13 11:19:42.740066 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/LdapProvisioner/\n)\n
      [Mon Feb 13 11:19:42.740076 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.740080 2023] [php:notice] [pid 4519] [client ::1:45920] Linkable
      [Mon Feb 13 11:19:42.740085 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/Linkable/\n)\n
      [Mon Feb 13 11:19:42.740099 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.740103 2023] [php:notice] [pid 4519] [client ::1:45920] NamespaceAssigner
      [Mon Feb 13 11:19:42.740107 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/local/Plugin/NamespaceAssigner/\n)\n
      [Mon Feb 13 11:19:42.740120 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.740123 2023] [php:notice] [pid 4519] [client ::1:45920] OrcidSource
      [Mon Feb 13 11:19:42.740128 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/OrcidSource/\n)\n
      [Mon Feb 13 11:19:42.740138 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.740142 2023] [php:notice] [pid 4519] [client ::1:45920] SqlProvisioner
      [Mon Feb 13 11:19:42.740148 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/local/Plugin/SqlProvisioner/\n)\n
      [Mon Feb 13 11:19:42.740161 2023] [php:notice] [pid 4519] [client ::1:45920] In routes
      [Mon Feb 13 11:19:42.740165 2023] [php:notice] [pid 4519] [client ::1:45920] SshKeyAuthenticator
      [Mon Feb 13 11:19:42.740176 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [ignoreMissing] => 1\n    [bootstrap] => 1\n    [routes] => 1\n    [path] => /opt/comanage/comanage-registry-develop/app/Plugin/SshKeyAuthenticator/\n)\n
      [Mon Feb 13 11:19:42.792202 2023] [php:notice] [pid 4519] [client ::1:45920] Array\n(\n    [0] => /registry/api/co/4/core/v1/people/A53083XXX\n)\n
      [Mon Feb 13 11:19:43.078491 2023] [php:notice] [pid 4519] [client ::1:45920] In ApiSource/Controller
      [Mon Feb 13 11:19:43.078516 2023] [php:notice] [pid 4519] [client ::1:45920] co_4.iam
      [Mon Feb 13 11:19:43.078519 2023] [php:notice] [pid 4519] [client ::1:45920] xxxx-xxxx-xxxx-xxxx
      [Mon Feb 13 11:19:43.078526 2023] [php:notice] [pid 4519] [client ::1:45920] 401 from ApiSource

      Attachments

        Issue Links

          Activity

            People

              benn.oshrin@at.internet2.edu Benn Oshrin (internet2.edu)
              allan.kim@at.internet2.edu Allan Kim
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: