[dev] Package building error on OTRS 5

2016-03-19 Thread Finetti, Stefano
Hi,

I'm trying to bulild an .opm file from a .sopm spec file, but
otrs.Console.pl continues to give me an error without any hint of where I
should look for the problem.

When I launch this command:

su -c "/opt/otrs/bin/otrs.Console.pl Dev::Package::Build
./LynxCustomersAddOn.sopm /tmp" -s /bin/bash otrs

I always obtain:

Building package...
Error: Package cannot be built.

I've double and triple-checked the .sopm file, and it contains all the
mandatory tags as well as all the necessary tags for the module, including
file list and database operations. I've created using an XML editor in
Aptana Studio 3 (syntax highlighting and completion), and it evidences no
errors.

Is there any way to enable a more "communicative" version of the Console
that gives a bit more output to help me understand where in the sopm file
the problem is?

Thanks

P.S.
I can paste the sopm here, but it's quite long so I avoided to do it on the
first post...

-- 
*Lynx International Srl*
*Stefano Finetti*
*http://www.lynx-international.com *

*Lynx International Srl is a part of AXED Group*
Via Pier Luigi Nervi e/3 - Torre 6 - 04100 Latina

-- 
This e-mail and any files transmitted contain documentation which is highly 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. All written data and other information in the 
documentation is and shall remain the property of the disclosing party. If 
you are not the intended recipient you are hereby formally notified that 
any disclosure, dissemination, forwarding, storing, copying or use of any 
of the information is strictly prohibited and will be legally pursued. If 
you received this in error, please contact the sender and destroy the 
documentation including deletion of the same from any computer. Thank you.
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Re: [dev] Package building error on OTRS 5

2016-03-18 Thread Finetti, Stefano
Thanks, but the real problem was the PackageIsDownloadable xml tag.

By the way --source-path and --target-directory are not flags to be used,
you just need to put the source path and the dest dir without -- flags:

bin/otrs.Console.pl Dev::Package::Build --module-directory /path/th
/source/path/sopm /target/dir

It works now, I have installed the package successfully

Thanks for the help though


2016-03-18 10:14 GMT+01:00 Renee B <otrs.l...@perl-services.de>:

> The command should look like this:
>
> su -c "/opt/otrs/bin/otrs.Console.pl Dev::Package::Build --source-path
> ./LynxCustomersAddOn.sopm  --target-directory /tmp --module-directory ." -s
> /bin/bash otrs
>
>
>
>
> Am 18.03.2016 um 09:35 schrieb Finetti, Stefano:
>
>> Maybe because the PackageIsDownloadable is set to 0?
>> I had a more clear error using the old package manager in otrs 4. But it
>> really should be better documented in the manual...
>>
>> 2016-03-18 9:30 GMT+01:00 Finetti, Stefano <
>> sfine...@lynx-international.com>
>> :
>>
>> Hi,
>>>
>>> I'm trying to bulild an .opm file from a .sopm spec file, but
>>> otrs.Console.pl continues to give me an error without any hint of where
>>> I
>>> should look for the problem.
>>>
>>> When I launch this command:
>>>
>>> su -c "/opt/otrs/bin/otrs.Console.pl Dev::Package::Build
>>> ./LynxCustomersAddOn.sopm /tmp" -s /bin/bash otrs
>>>
>>> I always obtain:
>>>
>>> Building package...
>>> Error: Package cannot be built.
>>>
>>> I've double and triple-checked the .sopm file, and it contains all the
>>> mandatory tags as well as all the necessary tags for the module,
>>> including
>>> file list and database operations. I've created using an XML editor in
>>> Aptana Studio 3 (syntax highlighting and completion), and it evidences no
>>> errors.
>>>
>>> Is there any way to enable a more "communicative" version of the Console
>>> that gives a bit more output to help me understand where in the sopm file
>>> the problem is?
>>>
>>> Thanks
>>>
>>> P.S.
>>> I can paste the sopm here, but it's quite long so I avoided to do it on
>>> the first post...
>>>
>>> --
>>> *Lynx International Srl*
>>> *Stefano Finetti*
>>> *http://www.lynx-international.com <http://www.lynx-international.com>*
>>>
>>> *Lynx International Srl is a part of AXED Group*
>>> Via Pier Luigi Nervi e/3 - Torre 6 - 04100 Latina
>>>
>>>
>>>
>>
>>
>> ___
>> OTRS mailing list: dev - Webpage: http://otrs.org/
>> Archive: http://lists.otrs.org/pipermail/dev
>> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
>>
>
>
>
> --
> Perl / OTRS development: http://perl-services.de
> OTRS AddOn repository: http://opar.perl-services.de
> ___
> OTRS mailing list: dev - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/dev
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
>



-- 
*Lynx International Srl*
*Stefano Finetti*
*http://www.lynx-international.com <http://www.lynx-international.com>*

*Lynx International Srl is a part of AXED Group*
Via Pier Luigi Nervi e/3 - Torre 6 - 04100 Latina

-- 
This e-mail and any files transmitted contain documentation which is highly 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. All written data and other information in the 
documentation is and shall remain the property of the disclosing party. If 
you are not the intended recipient you are hereby formally notified that 
any disclosure, dissemination, forwarding, storing, copying or use of any 
of the information is strictly prohibited and will be legally pursued. If 
you received this in error, please contact the sender and destroy the 
documentation including deletion of the same from any computer. Thank you.
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Re: [dev] Config.pm question

2016-03-10 Thread Finetti, Stefano
Hi Martin,

I just tried to do as you suggested, creating a file called AS400.pm into
Kernel/Config/Files with this:

package Kernel::Config::Files::AS400;
use strict;
use warnings;
no warnings 'redefine';
use utf8;
sub Load {
my ($File, $Self) = @_;

 $Self->{CustomerCompany} = {
CustomerCompanySearchFields => ['customer_id', 'name', 'as400',
'brand'],
Map   => [

# var, frontend, storage, shown (1=always,2=lite), required, storage-type,
http-link, readonly
[ 'CustomerTypeID', 'Customer Type',
 'customer_company_types_id',0, 0, 'int', '', 0 ],
[ 'CustomerCompanyAS400',   'System',   'as400',1,
0, 'var', '', 0 ],
[ 'CustomerCompanyBrand',   'Brand','brand',1,
0, 'var', '', 0 ],
[ 'CustomerCompanyParentCustID','Main Dealer Code',
'parent_custid',1, 0, 'var', '', 0 ],
[ 'CustomerCompanyParentCompName',  'Main Dealer Name',
'parent_compname',  1, 0, 'var', '', 0 ],
[ 'PaymentsID', 'Payments', 'payments_id',  0,
0, 'int', '', 0 ],
[ 'ValidID','Valid','valid_id', 0,
1, 'int', '', 0 ],
],
};

}
1;

Unfortunately, even after a RebuildConfig and DeleteCache those fields does
not show up in Customer Company creation.
Do I need to put the whole Self->{CustomerCompany} object here or only my
customization should be put in?


2016-03-10 15:27 GMT+01:00 Martin Gruner <martin.gru...@otrs.com>:

> Hi Stefano,
>
> this is possible. Just place a file in Kernel/Config/Files/*.pm that looks
> like ZZZAAuto.pm (implementing a Load method). $Self in there is the
> ConfigObject that you can modify as you wish.
>
> Best regards,
>
> Martin Gruner
> Team Lead R
>
> OTRS AG
> Bahnhofplatz 1a
> 94315 Straubing
>
> T: +49 (0)6172 681988 0
> F: +49 (0)9421 56818 18
> I:  www.otrs.com/
>
> Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.:
> DE256610065
> Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann
> (Vorsitzender), Christopher Kuhn, Sabine Riedel
>
> Mobile Kommunikation und transparente Prozesse - Mit der OTRS Business
> Solution™ Managed 5 schnell und ohne eigene IT-Ressourcen starten  - Jetzt
> neue Features entdecken und bestellen
>
> https://www.otrs.com/neu-in-otrs-business-solution-5-mobile-kommunikation-transparente-prozesse/?lang=de
>
> > Am 01.03.2016 um 12:27 schrieb Finetti, Stefano <
> sfine...@lynx-international.com>:
> >
> > Hi,
> >
> > a simple question (I think). Is it possible to move CustomerCompany
> configurations that are stored into main Config.pm file into a different
> file?
> >
> > What I'd like to achieve is a module that adds some option to the
> Customer Company management in OTRS (for example, type of customer, the erp
> system they use, and stuff like that. I can easily add this fields in the
> customer_company table and mapping fields in Config.pm, but this prevents
> me from creating an installable module, because I can't (or at least, I
> think I shouldn't) change Config.pm file during the installation of an OTRS
> module.
> >
> > It would be great to create a - let's say - CustomerCompanyConfig.pm in
> /Kernel/Config/ or Kernel/Config/Files/ storing details from
> CustomerCompany, to avoid tampering with Config.pm file.
> >
> > I think this is not possible now, am I wrong?
> > --
> > Lynx International Srl
> > Stefano Finetti
> > http://www.lynx-international.com
> >
> > Lynx International Srl is a part of AXED Group
> > Via Pier Luigi Nervi e/3 - Torre 6 - 04100 Latina
> >
> >
> > This e-mail and any files transmitted contain documentation which is
> highly confidential and intended solely for the use of the individual or
> entity to whom they are addressed. All written data and other information
> in the documentation is and shall remain the property of the disclosing
> party. If you are not the intended recipient you are hereby formally
> notified that any disclosure, dissemination, forwarding, storing, copying
> or use of any of the information is strictly prohibited and will be legally
> pursued. If you received this in error, please contact the sender and
> destroy the documentation including deletion of the same from any computer.
> Thank you.___
> > OTRS mailing list: dev - Webpage: http://otrs.org/
> > Archive: http://lists.otrs.org/pipermail/dev
> > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
>
> ___
> OTRS mailing list: dev - Webpage: http://otrs.org/
> Archive: http:/

[dev] Config.pm question

2016-03-01 Thread Finetti, Stefano
Hi,

a simple question (I think). Is it possible to move CustomerCompany
configurations that are stored into main Config.pm file into a different
file?

What I'd like to achieve is a module that adds some option to the Customer
Company management in OTRS (for example, type of customer, the erp system
they use, and stuff like that. I can easily add this fields in the
customer_company table and mapping fields in Config.pm, but this prevents
me from creating an installable module, because I can't (or at least, I
think I shouldn't) change Config.pm file during the installation of an OTRS
module.

It would be great to create a - let's say - CustomerCompanyConfig.pm in
/Kernel/Config/ or Kernel/Config/Files/ storing details from
CustomerCompany, to avoid tampering with Config.pm file.

I think this is not possible now, am I wrong?
-- 
*Lynx International Srl*
*Stefano Finetti*
*http://www.lynx-international.com *

*Lynx International Srl is a part of AXED Group*
Via Pier Luigi Nervi e/3 - Torre 6 - 04100 Latina

-- 
This e-mail and any files transmitted contain documentation which is highly 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. All written data and other information in the 
documentation is and shall remain the property of the disclosing party. If 
you are not the intended recipient you are hereby formally notified that 
any disclosure, dissemination, forwarding, storing, copying or use of any 
of the information is strictly prohibited and will be legally pursued. If 
you received this in error, please contact the sender and destroy the 
documentation including deletion of the same from any computer. Thank you.
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Re: [dev] Strange behavior in layout output

2016-02-19 Thread Finetti, Stefano
Hello Moritz, and thanks for your answer.

I've already checked and unless OTRS code has some debug options enabled by
default, in none of my files there is any debugging made without using
LogObject->Log.
And I'm pretty sure I don't have any row count used in my script because I
don't need it for my purposes.

I will try to check into DB.pm and all the objects I use in my module to
check for this strange output.


2016-02-19 15:54 GMT+01:00 Moritz Lenz <moritz.l...@noris.de>:

> Hi,
>
> On 02/19/2016 03:11 PM, Finetti, Stefano wrote:
>
>> Greetings to everyone, I posted this message in the general otrs list
>> but I think that the dev list is more appropriate for this kind of
>> questions. Let me know if I'm wrong, please.
>>
>> I must confess I'm a bit lost with something that never happened before
>> with other customizations I've done in OTRS.
>>
>> I'm trying to create a module for OTRS 4 to help my colleagues work with
>> our AS400 systems. Nothing very strange, just a new menu to be used to
>> check various informations about the systems.
>>
>> I'm not completely new to OTRS customizations, and I've managed to
>> create some custom module using LayoutObject, DBObject and so. This is
>> not a code problem, or at least, not an easy one to spot.
>>
>> When I access the page I created, I got the output correctly formatted
>> from the query I run on an external DB, and, - and this is the problem -
>> a long string just below the navigation menu containing a sequence of
>> numbers, that I've identified with the number of records that my queries
>> get.
>>
>
> Maybe some part of the code you use (like a library to the connect to the
> backend) has debugging print statements in it?
>
> You could try to run that code in isolation from the command line (that
> is, not through the browser and web server) and see if it produces output.
>
> And/or you can try a trick like described in here:
> http://stackoverflow.com/a/3508679/14132
> to capture output, but only from within Perl (if it calls a C library that
> prints to STDOUT, this won't capture it).
>
> Hope this helps,
> Moritz
>
> ___
> OTRS mailing list: dev - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/dev
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
>



-- 
*Lynx International Srl*
*Stefano Finetti*
*http://www.lynx-international.com <http://www.lynx-international.com>*

*Lynx International Srl is a part of AXED Group*
Via Pier Luigi Nervi e/3 - Torre 6 - 04100 Latina

-- 
This e-mail and any files transmitted contain documentation which is highly 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. All written data and other information in the 
documentation is and shall remain the property of the disclosing party. If 
you are not the intended recipient you are hereby formally notified that 
any disclosure, dissemination, forwarding, storing, copying or use of any 
of the information is strictly prohibited and will be legally pursued. If 
you received this in error, please contact the sender and destroy the 
documentation including deletion of the same from any computer. Thank you.
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

[dev] Strange behavior in layout output

2016-02-19 Thread Finetti, Stefano
Greetings to everyone, I posted this message in the general otrs list but I
think that the dev list is more appropriate for this kind of questions. Let
me know if I'm wrong, please.

I must confess I'm a bit lost with something that never happened before
with other customizations I've done in OTRS.

I'm trying to create a module for OTRS 4 to help my colleagues work with
our AS400 systems. Nothing very strange, just a new menu to be used to
check various informations about the systems.

I'm not completely new to OTRS customizations, and I've managed to create
some custom module using LayoutObject, DBObject and so. This is not a code
problem, or at least, not an easy one to spot.

When I access the page I created, I got the output correctly formatted from
the query I run on an external DB, and, - and this is the problem - a long
string just below the navigation menu containing a sequence of numbers,
that I've identified with the number of records that my queries get.

The absolutely strange thing is that I didn't put ANY print, echo or
something like that in the code, and that all the output is directed
through LayoutObject->Block with name and data.
The template files has the correct names for RenderBlockStart and Stop and
[% Data.Variables | html %] Section. In fact, inside the RenderBlocks all
the output is fine.

Since it's quite difficult even to explain the problem, I made a screenshot
of what I'm talking about.

[image: Immagine incorporata 1]

I've filtered out the output for privacy, but here is the strange output
just below "Dashboard".
I'm not using any customized layout (i.e. no .pm files in Output/HTML/,
only .tt files in Output/HTML/Standard/).

This has been haunting me for days now, without any luck.
I might also add that those numbers are inserted between two 
apparently outside from normal HTML code:

**
**
**
*1234567891011121314151617181920*
**

As you can see, the first div is the NavigationContainer (the OTRS Menu),
while the last is the MainBox container, which is used in OTRS to generate
the "main" contents page.

(The numbers are a sequence: 1 2 3 4 5 6 7 8 9 10 11 12 etc. etc.)

-- 
*Lynx International Srl*
*Stefano Finetti*
*http://www.lynx-international.com *

*Lynx International Srl is a part of AXED Group*
Via Pier Luigi Nervi e/3 - Torre 6 - 04100 Latina

-- 
This e-mail and any files transmitted contain documentation which is highly 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. All written data and other information in the 
documentation is and shall remain the property of the disclosing party. If 
you are not the intended recipient you are hereby formally notified that 
any disclosure, dissemination, forwarding, storing, copying or use of any 
of the information is strictly prohibited and will be legally pursued. If 
you received this in error, please contact the sender and destroy the 
documentation including deletion of the same from any computer. Thank you.
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev