I'm trying to create a custom operation module for using with my OTRS's webservice as a provider. In order not to mess with the original files, I decided to create a new folder under Kernel/GenericInterface/Operation/ called MyOp.
Just for testing matters to check if I could register and use this new operation, I copied the two files from Kernel/GenericInterface/Operation/Session/ to my new folder and renamed SessionCreate.pm to MyAuth.pm. So, my folder Kernel/GenericInterface/Operation/MyOp/ has the files: Common.pm and MyAuth.pm.
In Common.pm, I changed only the package line with the correct new package name:
Code: Select all
package Kernel::GenericInterface::Operation::MyOp::Common;
Code: Select all
package Kernel::GenericInterface::Operation::MyOp::MyAuth;
use base qw(
Kernel::GenericInterface::Operation::Common
Kernel::GenericInterface::Operation::MyOp::Common
);
I also put this inside GenericInterface.xml:
Code: Select all
<ConfigItem Name="GenericInterface::Operation::Module###MyOp::MyAuth" Required="0" Valid="1">
<Description Translatable="1">GenericInterface module registration for the operation layer.</Description>
<Group>GenericInterface</Group>
<SubGroup>GenericInterface::Operation::ModuleRegistration</SubGroup>
<Setting>
<Hash>
<Item Key="Name">MyAuth</Item>
<Item Key="Controller">MyOp</Item>
<Item Key="ConfigDialog">AdminGenericInterfaceOperationDefault</Item>
</Hash>
</Setting>
</ConfigItem>
Code: Select all
Dec 7 16:21:00 localhost GenericInterfaceProvider-10[16795]: [Error][Kernel::GenericInterface::Operation::new][Line:92]: ???
Dec 7 16:21:00 localhost GenericInterfaceProvider-10[16795]: [Error][Kernel::GenericInterface::Debugger::DebugLog][Line:219]: DebugLog error: Summary: Can't load operation backend module Kernel::GenericInterface::Operation::MyOp::MyAuth! Data : No data provided.
Dec 7 16:21:00 localhost GenericInterfaceProvider-10[16795]: [Error][Kernel::GenericInterface::Debugger::DebugLog][Line:219]: DebugLog error: Summary: Operation could not be initialized Data : $VAR1 = { 'ErrorMessage' => 'Can\'t load operation backend module Kernel::GenericInterface::Operation::MyOp::MyAuth!', 'Success' => 0};.
Sorry for the long post but I tried to explain everything. Any ideas??
Using OTRS 4.0.8 and trasnport as HTTP::Rest.