Hallo,
ich habe die RT Extension gemäß folgender Anleitung installiert: https://i-doit.atlassian.net/wiki/pages/viewpage.action?pageId=7831603
Der RT läuft in der Version 4.2, i-doit ist allerdings schon in der Version 1.6 die in der Kompatibilitätsmatrix noch nicht erwähnt wird.
Die benutzerdefinierten Felder erscheinen im RT allerdings zeigt er mir beim Versuch ein Objekt aus i-doit zu wählen "Ladevorgang läuft…"
Hier mal der Ausschnitt aus dem error.log beim Aufrufen eines Tickets:
[6706] [Wed Feb 17 13:02:27 2016] [warning]: Odd number of elements in hash assignment at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects line 264. (/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects:264)
[6706] [Wed Feb 17 13:02:27 2016] [warning]: Use of uninitialized value in list assignment at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects line 264. (/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects:264)
[6706] [Wed Feb 17 13:02:27 2016] [warning]: Argument "KKS-IMB" isn't numeric in numeric eq (==) at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects line 205. (/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects:205)
[6706] [Wed Feb 17 13:02:27 2016] [warning]: Argument "KKS-IMB" isn't numeric in numeric eq (==) at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects line 205. (/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects:205)
[6706] [Wed Feb 17 13:02:27 2016] [warning]: Use of uninitialized value in substr at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects line 249. (/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/ShowIDoitObjects:249)
[6706] [Wed Feb 17 13:02:28 2016] [warning]: Use of uninitialized value in string eq at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 227. (/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm:227)
[6706] [Wed Feb 17 13:02:28 2016] [warning]: Use of uninitialized value in string eq at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 227. (/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm:227)
[6706] [Wed Feb 17 13:02:28 2016] [warning]: Use of uninitialized value in string eq at /opt/rt4/sbin/../lib/RT/Transaction.pm line 981. (/opt/rt4/sbin/../lib/RT/Transaction.pm:981)
[6706] [Wed Feb 17 13:02:28 2016] [warning]: Use of uninitialized value in string eq at /opt/rt4/sbin/../lib/RT/Transaction.pm line 994. (/opt/rt4/sbin/../lib/RT/Transaction.pm:981)
Der Versuch ein Objekt zuzuweisen hinterlässt folgende Fehler:
[6706] [Wed Feb 17 13:11:11 2016] [warning]: The Mason component /opt/rt4/share/html/Ticket/Elements/EditCustomFields is deprecated, and will be removed in RT 4.4. You should use /Elements/EditCustomFields instead. Call stack:
[/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Ticket/ModifyIDoitObjects.html:34]
[/opt/rt4/share/html/Widgets/TitleBox:56]
[/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Ticket/ModifyIDoitObjects.html:35]
[/opt/rt4/share/html/Ticket/autohandler:66]
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:681]
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:369]
[/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/../lib/RT.pm:954)
[6706] [Wed Feb 17 13:11:11 2016] [warning]: Odd number of elements in hash assignment at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/SelectIDoitObjects line 295. (/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/SelectIDoitObjects:295)
[6706] [Wed Feb 17 13:11:11 2016] [warning]: Use of uninitialized value in list assignment at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/SelectIDoitObjects line 295. (/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/SelectIDoitObjects:295)
[6706] [Wed Feb 17 13:11:11 2016] [warning]: Use of uninitialized value in substr at /opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/SelectIDoitObjects line 280. (/opt/rt4/local/plugins/RT-Extension-ReferenceIDoitObjects/html/Elements/SelectIDoitObjects:280)
Hat jemand eine Idee woran es liegen könnte?
Hilfreich sind vielleicht noch die zugehörigen Einträge in der RT_SiteConfig:
(IPs, Mandant und API wurden natürlich geändert)
_# i-doit Integration:::
Set(@Plugins,qw(RT::Extension::ReferenceIDoitObjects));
Set($IDoitURL, 'https://1.1.1.2/idoit/');
Set($IDoitAPI, 'http://1.1.1.1/html/i-doit_api_proxy.php');
Set(%IDoitMandatorKeys, (
'Mandant 1' => 'abc'
));
Set($IDoitDefaultMandator, 'Mandant 1');
Set($IDoitDefaultView, 'objects'); # 'objects', 'workplaces', 'devices', or 'selected'
Set($IDoitInstalledSoftware, 'relations'); # 'objects', or 'relations'
Set($IDoitShowCustomFields, 1); # 1 ('yes') or 0 ('no')_
Ergänzung: Das API-Log von i-doit zeigt nach einem Aufruf im RT folgendes:
[2016-02-17 15:06:51 0.85181900] ERROR: Invalid API Request. Post body is empty.
[2016-02-17 15:06:51 0.85187500] INFO: Transmitting response: {"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid request","data":{"error":"Invalid API Request. Post body is empty."}},"id":0}
[2016-02-17 15:06:51 0.85189900] INFO: Batch-Request transmitted.
Vielen Dank!!!
Marko