Mailing List Archive

Help with own Extension
Hello everybody.


I've created my own extension by using a simple one as a template and adding useful parts from other extensions.


Now the problem I'm facing is that when I enable it, the directories returned by 'RT::Interface::Web->ComponentRoots' are duplicated, so RT tells me that it has found more than one occurrence of the '/Callbacks/RTIR/autohandler/SuccessfulLogin' callback.


That is not true, the problem is that is checking the same directory twice, so it finds the same file twice.


With my extension disabled, 'RT::Interface::Web->ComponentRoots' returns:

'/opt/rt4/local/html'
'/opt/rt4/local/plugins/RT-IR/html'
'/opt/rt4/share/html'
and everything it's ok.

With my extension enabled, 'RT::Interface::Web->ComponentRoots'​ returns:
'/opt/rt4/local/html'
'/opt/rt4/local/plugins/RT-MyExtension/html'
'/opt/rt4/local/plugins/RT-IR/html'
'/opt/rt4/local/plugins/RT-MyExtension/html'
'/opt/rt4/local/plugins/RT-IR/html'
'/opt/rt4/share/html'

and the error is triggered.


Does anybody know the configuration error I have or any clue to guide me in the right direction?


Thanks in advance.


Iñaki de Eguía Díez
Desarrollador - Entornos Abiertos
inaki.deeguia@csa.es<mailto:inaki.deeguia@csa.es>



En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal, los datos personales reflejados en este documento se incluirán en una base de datos informatizada de titularidad de Centro Regional de Servicios Avanzados, S.A. Dicha base de datos se encuentra inscrita en el Registro General de Protección de Datos conforme a lo dispuesto en la legislación vigente y cumpliendo todas las medidas de seguridad del Real Decreto 994/1999, de 11 de junio, de medidas de seguridad de los ficheros automatizados que contengan datos de carácter personal. Asimismo, el cliente dispone en todo momento de los derechos de información, acceso, rectificación, cancelación y oposición, que podrá ejercitar por escrito mediante carta dirigida al Responsable de Seguridad, en la siguiente dirección: C/ López Bravo, 1. 09001 Burgos (España).
Re: Help with own Extension [ In reply to ]
On Thu, Jan 22, 2015 at 10:04:20AM +0000, Iñaki de Eguia Diez wrote:
> Now the problem I'm facing is that when I enable it, the directories returned
> by 'RT::Interface::Web->ComponentRoots' are duplicated, so RT tells me that it
> has found more than one occurrence of the '/Callbacks/RTIR/autohandler/
> SuccessfulLogin' callback.

Show how you enable it.

Show Plugins from the System Configuration page.

I'm guessing you're adding twice, since RT::IR is enabled twice.

-kevin

>
Re: Help with own Extension [ In reply to ]
I rebuilt my Extension from scracth, removing irrelevant parts I had added from other extensions (I initially thought there were necessary) and... problem solved!

Thanks, Kevin.

________________________________________
De: rt-devel <rt-devel-bounces@lists.bestpractical.com> en nombre de Kevin Falcone <falcone@bestpractical.com>
Enviado: jueves, 22 de enero de 2015 22:49
Para: rt-devel@lists.bestpractical.com
Asunto: Re: [rt-devel] Help with own Extension

On Thu, Jan 22, 2015 at 10:04:20AM +0000, Iñaki de Eguia Diez wrote:
> Now the problem I'm facing is that when I enable it, the directories returned
> by 'RT::Interface::Web->ComponentRoots' are duplicated, so RT tells me that it
> has found more than one occurrence of the '/Callbacks/RTIR/autohandler/
> SuccessfulLogin' callback.

Show how you enable it.

Show Plugins from the System Configuration page.

I'm guessing you're adding twice, since RT::IR is enabled twice.

-kevin

>


En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal, los datos personales reflejados en este documento se incluirán en una base de datos informatizada de titularidad de Centro Regional de Servicios Avanzados, S.A. Dicha base de datos se encuentra inscrita en el Registro General de Protección de Datos conforme a lo dispuesto en la legislación vigente y cumpliendo todas las medidas de seguridad del Real Decreto 994/1999, de 11 de junio, de medidas de seguridad de los ficheros automatizados que contengan datos de carácter personal. Asimismo, el cliente dispone en todo momento de los derechos de información, acceso, rectificación, cancelación y oposición, que podrá ejercitar por escrito mediante carta dirigida al Responsable de Seguridad, en la siguiente dirección: C/ López Bravo, 1. 09001 Burgos (España).