Modify GenericInterface.xml on OTRS 6.0.3

Moderator: crythias

Post Reply
fpaco
Znuny newbie
Posts: 17
Joined: 18 Aug 2017, 14:45
Znuny Version: OTRS 6s Patch Level

Modify GenericInterface.xml on OTRS 6.0.3

Post by fpaco »

Hello everyone :)

I recently upgraded my version of OTRS from 5 to 6 and I want now to add to it a module I wrote for the 5th version. My problem is that the sysconfig panel does not show the settings I added to the GenericInterface.xml file.

In brief, I want to add a new transport module. So following the documentation here : http://doc.otrs.com/doc/manual/develope ... ce-modules I added the following codes to the config file.

Code: Select all

    <Setting Name="GenericInterface::Transport::Module###HTTP::REST2" Required="0" Valid="1">
        <Description Translatable="1">GenericInterface module registration for the transport layer.</Description>
        <Navigation>GenericInterface::Transport::ModuleRegistration</Navigation>
        <Value>
            <Hash>
                <Item Key="Name">REST2</Item>
                <Item Key="Protocol">HTTP</Item>
                <Item Key="ConfigDialog">AdminGenericInterfaceTransportHTTPREST2</Item>
            </Hash>
        </Value>
    </Setting>
But when checking the system configuration panel, I still have the default 3 transport modules : REST, SOAP and Test ...

So I came back to my old config file to see if I missed something and I added this code to my config file :

Code: Select all

    <Setting Name="Frontend::Module###AdminGenericInterfaceTransportHTTPREST2" Required="0" Valid="1">
        <Description Translatable="1">Frontend module registration for the agent interface.</Description>
        <Navigation>Frontend::Admin::ModuleRegistration</Navigation>
        <Value>
            <Item ValueType="FrontendRegistration">
                <Hash>
                    <Item Key="GroupRo">
                        <Array>
                        </Array>
                    </Item>
                    <Item Key="Group">
                        <Array>
                            <Item>admin</Item>
                        </Array>
                    </Item>
                    <Item Key="Description">Admin</Item>
                    <Item Key="Title" Translatable="1">GenericInterface TransportHTTPREST2 GUI</Item>
                    <Item Key="NavBarName"></Item>
                </Hash>
            </Item>
        </Value>
    </Setting>
    <Setting Name="Loader::Module::AdminGenericInterfaceTransportHTTPREST2###002-GenericInterface" Required="0" Valid="1">
        <Description Translatable="1">Loader module registration for the agent interface.</Description>
        <Navigation>Frontend::Admin::ModuleRegistration::Loader</Navigation>
        <Value>
            <Hash>
                <Item Key="CSS">
                    <Array>
                        <Item>Core.Agent.Admin.GenericInterface.css</Item>
                    </Array>
                </Item>
            </Hash>
        </Value>
    </Setting>
And still no module REST2 ... :(

So I decided to remove some code from the file to see how otrs would react, guess what ? Nothing happened :) And out of curiosity I removed the file form the directory ... otrs did not bat an eye to this ... Now I wonder if this config file is really use by otrs ...

I am out of ideas, does anyone know how to do that ?

Many thanks !
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: Modify GenericInterface.xml on OTRS 6.0.3

Post by reneeb »

Did you

Code: Select all

perl bin/otrs.Console.pl Maint::Config::Rebuild
after the XML was changed?
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
fpaco
Znuny newbie
Posts: 17
Joined: 18 Aug 2017, 14:45
Znuny Version: OTRS 6s Patch Level

[SOLVED]Re: Modify GenericInterface.xml on OTRS 6.0.3

Post by fpaco »

Many many thanks renneb !! It works!!

But I wonder how I did before without using this command ...
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: Modify GenericInterface.xml on OTRS 6.0.3

Post by reneeb »

In OTRS5 all the XML files in Kernel/Config/Files were parsed and added to Kernel/Config/Files/ZZZAAuto.pm as soon as someone called the sysconfig. In OTRS6 the system configuration is stored in the database and the command parses the XML files and the current settings and stores it in the database. That way it's easier to have multiple instances of OTRS running on the same configuration (useful for load balancing,...).
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
kishormali
Znuny newbie
Posts: 12
Joined: 20 Jan 2020, 12:12
Znuny Version: 6.0
Real Name: Kishor Mali

Re: Modify GenericInterface.xml on OTRS 6.0.3

Post by kishormali »

Hello,

I have removed the Invoker xml code added in GenericInterface.xml.
I done with Rebuild thing. But still the Invoker is available in WebServices.

I want to remove that service from there.

Path: Admin -> Web Services -> My Web Service -> Go to Requester Block -> The last textbox having following values.
Test::Test
Test::TestSimple
Test::TestSugar


I want to remove "TestSugar" which is added by me.
Any help is appreciated.

Thanks
skullz
Znuny superhero
Posts: 621
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Modify GenericInterface.xml on OTRS 6.0.3

Post by skullz »

1. Maint::Config::Rebuild --cleanup

2. Maint::Config::Sync
Post Reply