{"action":"created","issue":{"url":"https://api.github.com/repos/Icinga/icinga2/issues/6682","repository_url":"https://api.github.com/repos/Icinga/icinga2","labels_url":"https://api.github.com/repos/Icinga/icinga2/issues/6682/labels{/name}","comments_url":"https://api.github.com/repos/Icinga/icinga2/issues/6682/comments","events_url":"https://api.github.com/repos/Icinga/icinga2/issues/6682/events","html_url":"https://github.com/Icinga/icinga2/issues/6682","id":370036723,"node_id":"MDU6SXNzdWUzNzAwMzY3MjM=","number":6682,"title":"API process-check-result fails in 2.10.0","user":{"login":"mphilipps","id":17722151,"node_id":"MDQ6VXNlcjE3NzIyMTUx","avatar_url":"https://avatars1.githubusercontent.com/u/17722151?v=4","gravatar_id":"","url":"https://api.github.com/users/mphilipps","html_url":"https://github.com/mphilipps","followers_url":"https://api.github.com/users/mphilipps/followers","following_url":"https://api.github.com/users/mphilipps/following{/other_user}","gists_url":"https://api.github.com/users/mphilipps/gists{/gist_id}","starred_url":"https://api.github.com/users/mphilipps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mphilipps/subscriptions","organizations_url":"https://api.github.com/users/mphilipps/orgs","repos_url":"https://api.github.com/users/mphilipps/repos","events_url":"https://api.github.com/users/mphilipps/events{/privacy}","received_events_url":"https://api.github.com/users/mphilipps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-15T07:42:34Z","updated_at":"2018-10-15T08:06:04Z","closed_at":null,"author_association":"NONE","body":"hi,\r\nIt appear that something has changed in 2.10.0 with regards to API process-check-results. The following config worked perfectly prior to 2.10.0.\r\nI have double checked the upgrade documentation, but from what I can see I don't use any functions that would be affected by the namespace change nor am I using path constants.\r\n\r\n**Request:**\r\n\r\n```\r\ncurl --cacert /var/lib/icinga2/certs/ca.crt --cert /var/lib/icinga2/certs/server-name.domain.tld.crt --key /var/lib/icinga2/cert\r\ns/server-name.domain.tld.key --connect-timeout 10 -H 'Accept: application/json' -X POST https://ip.v4.of.icingamaster:5665/v1/actions/pro\r\ncess-check-result -d '{ \"filter\": \"service.name==\\\"service_name\\\" && host.name==\\\"server-name.domain.tld\\\"\", \"type\": \"Service\", \"ex\r\nit_status\": 0, \"plugin_output\": \"test\" }'\r\n```\r\n\r\n**Answer:**\r\n\r\n`{\"error\":404.0,\"status\":\"No objects found.\"}`\r\n\r\n**master:**\r\n```\r\nobject Host \"server-name.domain.tld\" {\r\n  address = \"ip.v4.of.icingaclient\"\r\n  check_command = \"hostalive\"\r\n  check_interval = 60\r\n  retry_interval = 30\r\n}\r\n\r\nobject ApiUser \"server-name.domain.tld\" {\r\n  client_cn = \"server-name.domain.tld\"\r\n  permissions = [\r\n    {\r\n      permission  = \"actions/process-check-result\"\r\n      filter = {{ host.name==\"server-name.domain.tld\" }}\r\n    }, ]\r\n}\r\nobject Service \"service_name\" {\r\n  display_name = \"Test Service\"\r\n  check_command = \"passive_dummy\"\r\n  host_name = \"server-name.domain.tld\"\r\n  check_interval = 129600s\r\n  max_check_attempts = 1\r\n}\r\nobject CheckCommand \"passive_dummy\" {\r\n  import \"plugin-check-command\"\r\n  command = [ \"/usr/lib/nagios/plugins/check_dummy\", 3, \"Missing check results.\", ]\r\n}\r\n\r\n```\r\n\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the problem in -->\r\n* Version used (`icinga2 --version`):  2.10.0\r\n* Operating System and version: master is debian stretch, clients are ubuntus, debians and centos7\r\n* Enabled features (`icinga2 feature list`): master: api, checker, command, ido-pgsql, livestatus, mainlog, notifications\r\n"},"comment":{"url":"https://api.github.com/repos/Icinga/icinga2/issues/comments/429747042","html_url":"https://github.com/Icinga/icinga2/issues/6682#issuecomment-429747042","issue_url":"https://api.github.com/repos/Icinga/icinga2/issues/6682","id":429747042,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTc0NzA0Mg==","user":{"login":"dnsmichi","id":382049,"node_id":"MDQ6VXNlcjM4MjA0OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/382049?v=4","gravatar_id":"","url":"https://api.github.com/users/dnsmichi","html_url":"https://github.com/dnsmichi","followers_url":"https://api.github.com/users/dnsmichi/followers","following_url":"https://api.github.com/users/dnsmichi/following{/other_user}","gists_url":"https://api.github.com/users/dnsmichi/gists{/gist_id}","starred_url":"https://api.github.com/users/dnsmichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnsmichi/subscriptions","organizations_url":"https://api.github.com/users/dnsmichi/orgs","repos_url":"https://api.github.com/users/dnsmichi/repos","events_url":"https://api.github.com/users/dnsmichi/events{/privacy}","received_events_url":"https://api.github.com/users/dnsmichi/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T08:06:04Z","updated_at":"2018-10-15T08:06:04Z","author_association":"MEMBER","body":"I'm able to reproduce it, likely a regression from 1f4f6282c7d1d30c05aea257df9cebe1805550fa."}}
{"actor":{"display_login":"dnsmichi"}}