Generic Interface REST funktioniert nicht

Hilfe zu OTRS Problemen aller Art
Post Reply
roan
Znuny newbie
Posts: 5
Joined: 29 Apr 2016, 10:47
Znuny Version: 5.0.9

Generic Interface REST funktioniert nicht

Post by roan »

Hallo,

Ich möchte OTRS als Provider für einen REST Web Service nutzen.
Leider bekomme ich dabei immer folgenden Fehler, unabhängig von der REST Anfrage:

Code: Select all

Backend Kernel::GenericInterface::Transport::HTTP::REST not found. (2016-04-29 10:46:20, error)
  No data provided
TransportObject could not be initialized (2016-04-29 10:46:20, error)
  $VAR1 = {
    'ErrorMessage' => 'Backend Kernel::GenericInterface::Transport::HTTP::REST not found.',
    'Success' => 0
  };
Ich habe bereits ".../otrs/Kernel/GenericInterface/Transport/HTTP" geprüft für den Fall, dass die "REST.pm" fehlt.
Außerdem ist REST in der SysConfig unter "GenericInterface::Transport::ModuleRegistration" registriert.

Ich nutze OTRS 5.0.9 mit ITSM auf Debian Jessie.

Im folgenden die Config des REST Web Service:

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: Ticket Connector REST Sample
FrameworkVersion: 5.0.9
Provider:
  Operation:
    SessionCreate:
      Description: Creates a Session
      MappingInbound: {}
      MappingOutbound: {}
      Type: Session::SessionCreate
    TicketCreate:
      Description: Creates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketCreate
    TicketGet:
      Description: Retrieves Ticket data
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketGet
    TicketSearch:
      Description: Search for Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketSearch
    TicketUpdate:
      Description: Updates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketUpdate
  Transport:
    Config:
      KeepAlive: ''
      MaxLength: '100000000'
      RouteOperationMapping:
        SessionCreate:
          RequestMethod:
          - POST
          Route: /Session
        TicketCreate:
          RequestMethod:
          - POST
          Route: /TicketCreate
        TicketGet:
          RequestMethod:
          - GET
          Route: /TicketGet/:TicketID
        TicketSearch:
          RequestMethod:
          - GET
          Route: /TicketSearch
        TicketUpdate:
          RequestMethod:
          - PATCH
          Route: /TicketUpdate/:TicketID
    Type: HTTP::REST
RemoteSystem: ''
Requester:
  Transport:
    Type: ''
Kann mir bitte jemand helfen das Problem zu lösen? Ein SOAP Web Service funktioniert übrigens mit OTRS.

VG
OTRS 5.0.9 with ITSM on Linux & PostgreSQL 9.4
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Generic Interface REST funktioniert nicht

Post by jojo »

sind alle benötigten Perl Module installiert?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
roan
Znuny newbie
Posts: 5
Joined: 29 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Generic Interface REST funktioniert nicht

Post by roan »

Ja, laut Service Center sind alle Perl Module installiert
OTRS 5.0.9 with ITSM on Linux & PostgreSQL 9.4
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Generic Interface REST funktioniert nicht

Post by reneeb »

Hast Du mit SetPermissions die Rechte gesetzt? Kannst Du Dir mal die Berechtigungen auf die REST.pm anschauen?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
roan
Znuny newbie
Posts: 5
Joined: 29 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Generic Interface REST funktioniert nicht

Post by roan »

Ich habe mit der SetPermissions.pl die Rechte gesetzt und sie auch nochmal manuell überprüft: 664 otrs:www-data.
Außerdem habe ich die REST.pm sicherheitshalber nochmal durch die die REST.pm vom OTRS Github in der entsprechenden Version ersetzt, auch ohne Erfolg. In der SysConfig ist Rest auch im Generic Interface unter Module Registration vorhanden. SOAP funktioniert wie gesagt problemlos und hier sind die Rechte auf der SOAP.pm identisch mit der REST.pm.
OTRS 5.0.9 with ITSM on Linux & PostgreSQL 9.4
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: Generic Interface REST funktioniert nicht

Post by Rooobaaat »

Moin,

ist das Modul REST::Client installiert?
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
roan
Znuny newbie
Posts: 5
Joined: 29 Apr 2016, 10:47
Znuny Version: 5.0.9

Re: Generic Interface REST funktioniert nicht

Post by roan »

Danke für den Hinweis! Es lag tatsächlich an dem fehlenden REST::Client Modul.
OTRS 5.0.9 with ITSM on Linux & PostgreSQL 9.4
Post Reply