RotherOSS / otobo

OTOBO is one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. https://otobo.io/
GNU General Public License v3.0
262 stars 75 forks source link

Enhance quick_setup.pl so that a test customer user is created #1844

Closed bschmalhofer closed 2 years ago

bschmalhofer commented 2 years ago

Just to avoid the hassle of creating a customer test user manually when developping and testing the customer interface.

bschmalhofer commented 2 years ago

Got started on that. It kind of works, but I still get errors during destruction:

Finished running bin/docker/quick_setup.pl
ERROR: quick_setup-10 Perl: 5.36.0 OS: linux Time: Mon Jul 18 13:54:24 2022

 Message: Error creating DateTime object ().

 Traceback (28):
   Module: Kernel::System::DateTime::new Line: 190
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 322
   Module: Kernel::System::ObjectManager::Create Line: 253
   Module: Kernel::GenericInterface::Debugger::new Line: 138
   Module: Kernel::GenericInterface::Requester::Run Line: 151
   Module: Kernel::GenericInterface::Event::Handler::Run Line: 214
   Module: (eval) Line: 232
   Module: Kernel::System::EventHandler::EventHandler Line: 226
   Module: Kernel::System::EventHandler::EventHandlerTransaction Line: 279
   Module: Kernel::System::CustomerUser::DESTROY Line: 1569
   Module: (eval) Line: 597
   Module: Kernel::System::ObjectManager::ObjectsDiscard Line: 597
   Module: Kernel::System::ObjectManager::DESTROY Line: 659

ERROR: quick_setup-10 Perl: 5.36.0 OS: linux Time: Mon Jul 18 13:54:24 2022

 Message: 9900-GenericInterface died with: Can't call method "ToEpoch" on an undefined value at /opt/otobo/bin/docker/../../Kernel/GenericInterface/Debugger.pm line 138 during global destruction.

 Traceback (28):
   Module: Kernel::System::EventHandler::EventHandler Line: 236
   Module: Kernel::System::EventHandler::EventHandlerTransaction Line: 279
   Module: Kernel::System::CustomerUser::DESTROY Line: 1569
   Module: (eval) Line: 597
   Module: Kernel::System::ObjectManager::ObjectsDiscard Line: 597
   Module: Kernel::System::ObjectManager::DESTROY Line: 659

        (in cleanup) Can't call method "disconnect" on unblessed reference at /opt/otobo_install/local/lib/perl5/DBIx/Connector.pm line 140 during global destruction.
bschmalhofer commented 2 years ago

The messages disappeared after loading DateTime::Locale in Kernel::System::DateTime. Closing this issue.

bschmalhofer commented 2 years ago

Reopening because it is not possible to create a phone ticket for the generated customer user tina. Something must be missing,

bschmalhofer commented 2 years ago

After an unreasonable amout of fiddling, phone tickets can now be created for tina. Close only after checking the unit tests.

bschmalhofer commented 2 years ago

Unit tests look fine. Closing this issue.

bschmalhofer commented 2 years ago

Now do the same for setting up an user and a bucket for Minio.