Skip to content

Bug - Validate the required customerUserID in the backend #720

@jg-ggs

Description

@jg-ggs

Security Issue Confirmation

  • I confirm this is not a security-related issue

Issue Search Confirmation

  • I have searched for existing issues and found none that match this problem

Server Operating System

Ubuntu 22.04.5 LTS

Browser

Chrome, Opera

Znuny Version

6.5.16

Database Type

MySQL 8.0+

Expected Behavior

I recently had a case where I entered the customerUser in the form, but when I sent the form to the backend, the ticket was opened without the association with the user I selected.
Digging into the code, I found that the backend code doesn't perform the second validation to verify that the data was submitted. I suggest adding a check for this attribute.

Actual Behavior

Perform CustomerUser validation in the backend AgentTicketPhone.pm

Image

Steps to Reproduce

Kernel/Modules/AgentTicketPhone.pm line 1211

if ( $SelectedCustomerUser eq '' ) { $Error{'FromCustomerInvalid'} = ' ServerError'; }

Error Messages

No response

Additional Information

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions