External backend - using a legacy customer user table
Moderator: crythias
-
- Znuny newbie
- Posts: 28
- Joined: 23 Jun 2014, 11:02
- Znuny Version: 3.3.7
External backend - using a legacy customer user table
I'm new to OTRS and I'm making some tests with release 3.3.7.
This question is the translation of the one I posted in the italian board, where I didn't get any answer. If this is not compatible with the forum policy please forgive me, I don't have any idea where is the best place to seek help.
In the admin book in chapter 4.5 "Using external backends" I read how to use a different Customer_user table, it looks very simple, but I have the same problems described here as the third point.
According to the admin book there are only 3 required fields (User login, Email address,Customer ID): create_time and change_time which are present in the default customer_user table are never mentioned nor mapped, but if my personalized customer table lacks those fields I get an empty list of customers.
Somebody suggested to try ForeignDB => 1 but it seems it is not supported for customer user data.
Am I missing something ?
Besides I don't know how to debug OTRS and in the effort to understand why my configuration was not working I used a network sniffer.
I'm very worried by the number of queries sent to the db. Don't know if it depends on poor configuration, but in order to fill the list of customers I noticed a first query to get all the Customer ID and then lots of query in order to get the details of each customer. It doesn't scale !
Thanks
Filippo
This question is the translation of the one I posted in the italian board, where I didn't get any answer. If this is not compatible with the forum policy please forgive me, I don't have any idea where is the best place to seek help.
In the admin book in chapter 4.5 "Using external backends" I read how to use a different Customer_user table, it looks very simple, but I have the same problems described here as the third point.
According to the admin book there are only 3 required fields (User login, Email address,Customer ID): create_time and change_time which are present in the default customer_user table are never mentioned nor mapped, but if my personalized customer table lacks those fields I get an empty list of customers.
Somebody suggested to try ForeignDB => 1 but it seems it is not supported for customer user data.
Am I missing something ?
Besides I don't know how to debug OTRS and in the effort to understand why my configuration was not working I used a network sniffer.
I'm very worried by the number of queries sent to the db. Don't know if it depends on poor configuration, but in order to fill the list of customers I noticed a first query to get all the Customer ID and then lots of query in order to get the details of each customer. It doesn't scale !
Thanks
Filippo
OTRS 4.0.1 on Ubuntu Linux and Mysql DB
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: External backend - using a legacy customer user table
Is it possible to restate your post as a question to be solved?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 28
- Joined: 23 Jun 2014, 11:02
- Znuny Version: 3.3.7
Re: External backend - using a legacy customer user table
The main question is:
can I use a legacy table as customer user table if it doesn't have create_time and change_time fields ?
From the documentation it is possible, but other people and I were not successful.
Thanks
Filippo
can I use a legacy table as customer user table if it doesn't have create_time and change_time fields ?
From the documentation it is possible, but other people and I were not successful.
Thanks
Filippo
OTRS 4.0.1 on Ubuntu Linux and Mysql DB
-
- 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: External backend - using a legacy customer user table
Yes this is possible (at least as Readonly). If you want to add CustomerUsers, the table needs those columns (IMHO this is a bug).
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 28
- Joined: 23 Jun 2014, 11:02
- Znuny Version: 3.3.7
Re: External backend - using a legacy customer user table
How can I do ?reneeb wrote:Yes this is possible (at least as Readonly).
At the moment I'm making tests, so what I called a 'legacy table' is in reality a test table. In the configuration mapping I wrote I don't have create_time and change_time . Anyway if they are fields in the table I get a list of customer, otherwise, if I remove these two fields, I get an empty list.
As stated above I'm using OTRS 3.3.7
Thanks
Filippo
OTRS 4.0.1 on Ubuntu Linux and Mysql DB
-
- 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: External backend - using a legacy customer user table
Please show us your configuration (please replace password and username with something else).
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- 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: External backend - using a legacy customer user table
Ok, I just discovered that this is a bug solely in the version you are using: https://github.com/OTRS/otrs/commit/c3a ... 4294367d2e
So please upgrade to OTRS 3.3.8
So please upgrade to OTRS 3.3.8
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 28
- Joined: 23 Jun 2014, 11:02
- Znuny Version: 3.3.7
Re: External backend - using a legacy customer user table
It is a bit sad when you find a bug during one of the first evaluation tests.
You really wonder if it worth to go further or it is better change software...Don't know...
At least the OTRS team has proven to be responsive...
You really wonder if it worth to go further or it is better change software...Don't know...
At least the OTRS team has proven to be responsive...
OTRS 4.0.1 on Ubuntu Linux and Mysql DB
-
- 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: External backend - using a legacy customer user table
Every single piece of software has bugs. Most bugs (in any software) will stay hidden for you as you do not use the buggy feature. You have to decide yourself whether you stick with OTRS or not. If it fits your needs (beside this bug), *I* would stick with it. As it is Open Source it's easy to fix the bug. If other software fits your needs better, use that software.
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 28
- Joined: 23 Jun 2014, 11:02
- Znuny Version: 3.3.7
Re: External backend - using a legacy customer user table
I have just moved to OTRS 3.3.8 and now create_time and change_time are no longer needed to list the customers.
So create_time, create_by, change_time, change_by are needed in a writable Customer table.
You said that from your point of view this is a bug: do you know if there are plans to fix it ?
It is still true. Here is the error message I got after trying to add a customer:reneeb wrote:If you want to add CustomerUsers, the table needs those columns (IMHO this is a bug).
Code: Select all
SQL: 'INSERT INTO persone ( Nome, Cognome, CodiceFiscale, email, ID_persona, Telefono, Cellulare, Via_Piazza, Cap, Localita, Note, create_time, create_by, change_time, change_by) VALUES ( 'piro', 'bello', 'piro12', 'piro@tin.it', 'pprtt90jk', '', '', '', '', '', '', '2014-07-17 10:08:06' , 1, '2014-07-17 10:08:06' , 1)'
You said that from your point of view this is a bug: do you know if there are plans to fix it ?
OTRS 4.0.1 on Ubuntu Linux and Mysql DB
-
- 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: External backend - using a legacy customer user table
In the repository this is already fixed: https://github.com/OTRS/otrs/commit/211 ... f2f9ca2ef3 This will be included in OTRS 3.4
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de