Skip to content

Link handling bug with multivalue reference fields #34

@stefanhaerter

Description

@stefanhaerter

When using a multivalue reference field (ConfigItem in this case) and filling the values like so:

Bildschirmfoto_20241217_083425

the following error pops up in the log:

web-1      | DBD::mysql::st execute_array failed: executing 3 generated 1 errors at /opt/otobo/bin/psgi-bin/../../Kernel/System/DB.pm line 656.
web-1      | ERROR: OTOBO-CGI-10 Perl: 5.38.2 OS: linux Time: Tue Dec 17 07:28:10 2024
web-1      | 
web-1      |  Message: Need ConfigItemID!
web-1      | 
web-1      |  RemoteAddress: 127.0.0.1
web-1      |  RequestURI: /
web-1      | 
web-1      |  Traceback (16): 
web-1      |    Module: Kernel::System::ITSMConfigItem::CurInciStateRecalc Line: 1682
web-1      |    Module: Kernel::System::ITSMConfigItem::Event::RecalcCurInciState::Run Line: 159
web-1      |    Module: (eval) Line: 241
web-1      |    Module: Kernel::System::EventHandler::EventHandler Line: 235
web-1      |    Module: Kernel::System::EventHandler::EventHandlerTransaction Line: 308
web-1      |    Module: Kernel::System::ObjectManager::ObjectEventsHandle Line: 459
web-1      |    Module: Kernel::System::ObjectManager::ObjectsDiscard Line: 507
web-1      |    Module: Kernel::System::ObjectManager::DESTROY Line: 677
web-1      |    Module: (eval) Line: 720
web-1      |    Module: Plack::Sandbox::_2fopt_2fotobo_2fbin_2fpsgi_2dbin_2fotobo_2epsgi::__ANON__ Line: 720
web-1      |    Module: Plack::Sandbox::_2fopt_2fotobo_2fbin_2fpsgi_2dbin_2fotobo_2epsgi::__ANON__ Line: 154
web-1      |    Module: Plack::Sandbox::_2fopt_2fotobo_2fbin_2fpsgi_2dbin_2fotobo_2epsgi::__ANON__ Line: 140
web-1      |    Module: Plack::Middleware::HTTPExceptions::try {...}  Line: 20

I didn't do any deep digging yet, but I suspect that Kernel::System::LinkObject::ITSMConfigItem::LinkAddPost() may be involved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions