Subject: | RT::Extension::REST2 - Fields Creator,Owner, etc is null in Tickets and Transactions |
Date: | Tue, 5 Sep 2017 20:14:30 +0300 |
To: | bug-RT-Extension-REST2 [...] rt.cpan.org, modules [...] bestpractical.com |
From: | Max Kosmach <max [...] tcen.ru> |
Hi, RT Devs!
I want to use new REST2 module in our environment (RT 4.4.1, PG 9.4, Debian).
Module is working, but some fields are null in Ticket info and transaction info.
For example:
Ticket:
{ "Owner" : null, "TimeLeft" : "0", "TimeWorked" : "185", "Creator" : null, "LastUpdatedBy" : null, "Queue" : { "id" : "4", "type" : "queue", "_url" :
"https://rt.example.com/rt/REST/2.0/queue/4" }, "Starts" : "2017-08-28T08:09:25Z", "Priority" : "0", "FinalPriority" : "0",
....
Transaction:
https://rt.example.com/rt/REST/2.0/transaction/113
{
"id" : 113,
"_hyperlinks" : [
{
"_url" : "https://rt.example.com/rt/REST/2.0/transaction/113",
"type" : "transaction",
"ref" : "self",
"id" : "113"
}
],
"TimeTaken" : "120",
"Creator" : null,
"Object" : {
"id" : "17",
"type" : "ticket",
"_url" : "https://rt.example.com/rt/REST/2.0/ticket/17"
},
"Field" : "TimeWorked",
"OldValue" : "65",
"Type" : "Set",
"Created" : "2017-09-04T06:58:35Z",
"NewValue" : "185"
}
make test show similar problem:
....
t/transactions.t .. 1/?
# Failed test at t/transactions.t line 86.
# got: undef
# expected: 'test'
# Failed test at t/transactions.t line 87.
# got: undef
# expected: 'user'
# Failed test at t/transactions.t line 88.
# undef
# doesn't match '(?^:/REST/2.0/user/test$)'
t/transactions.t .. 40/?
...
Module version from git commit 746bb0c6308d4d016209e8eb0689a90b347a25fc
--
With best wishes
Max