Hi i am unable to set the “owner” of tickets when using the rest api. All other fields are created with values no problem, except the owner field. I have tried using the username, the email address, upper, lower, proper case, etc, i just cannot get the owner field to populate.
My response is 200 OK, ticket #n created, and i can see in the web interface that the ticket is created, just doesn’t have an owner.
Apache logs. Here are a portion of the access and error logs during my rest call that may contain the clue, i have bolded a line which seems relevant.
==> /var/log/httpd/error_log <==
[Mon Apr 10 06:40:56.838051 2017] [authz_core:error] [pid 28370] [client ipaddr:52306] AH01630: client denied by server configuration: /opt/rt4/share/html/REST/1.0/ticket/new
[29864] [Sun Apr 9 20:40:57 2017] [info]: Successful login for root from ipaddr (/opt/rt4/sbin/../lib/RT/Interface/Web.pm:831)
[29864] [Sun Apr 9 20:40:57 2017] [warning]: Use of uninitialized value $_ in split at /opt/rt4/sbin/../lib/RT/Interface/REST.pm line 288. (/opt/rt4/sbin/../lib/RT/Interface/REST.pm:288)
[29864] [Sun Apr 9 20:40:57 2017] [warning]: Use of uninitialized value $_ in split at /opt/rt4/sbin/../lib/RT/Interface/REST.pm line 288. (/opt/rt4/sbin/../lib/RT/Interface/REST.pm:288)
**[29864] [Sun Apr 9 20:40:57 2017] [error]: Couldn't get principal for an empty user (/opt/rt4/sbin/../lib/RT/User.pm:1282)**
[29864] [Sun Apr 9 20:40:57 2017] [info]: <domain> #233/3210 - Scrip 8 On Create Notify Owner and AdminCcs (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:285)
[29864] [Sun Apr 9 20:40:57 2017] [info]: <domain> No recipients found. Not sending. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:806)
[29864] [Sun Apr 9 20:40:57 2017] [info]: <domain> #233/3210 - Scrip 9 On Create Notify Ccs (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:285)
[29864] [Sun Apr 9 20:40:57 2017] [info]: <domain> No recipients found. Not sending. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:806)
[29864] [Sun Apr 9 20:40:57 2017] [info]: <domain> #233/3210 - Scrip 10 On Create Notify Other Recipients (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:285)
[29864] [Sun Apr 9 20:40:57 2017] [info]: <domain> No recipients found. Not sending. (/opt/rt4/sbin/../lib/RT/Interface/Email.pm:806)
[29864] [Sun Apr 9 20:40:57 2017] [info]: Ticket 233 created in queue 'desk' by root (/opt/rt4/sbin/../lib/RT/Ticket.pm:567)
==> /var/log/httpd/access_log <==
ipaddr - - [10/Apr/2017:06:40:56 +1000] "POST /rt/REST/1.0/ticket/new?user=root&pass=*** HTTP/1.1" 200 40 "-" "Mozilla/5.0 (Windows NT; Windows NT 10.0; en-AU) WindowsPowerShell/5.1.14393.953"