Skip to content

Fatal error if admin enters wrong values for some customer attribute and uploads file #30295

Closed
@magento-engcom-team

Description

@magento-engcom-team

If Admin tries to save customer entering not valid values for some attribute which has Input Validation set up, and uploads file at the same time he gots fatal error.

Please note: if you just enter wrong value for some attribute XOR upload file you will not get fatal.

Steps to Reproduce:

  1. Create new Customer attribute for URL (Stores -> Attributes -> Customer):

* Input Type = Text Field

* Values Required = Yes

* Default Value = www.google.com

* Input Validation = URL

  1. Create new Customer attribute for file:

* Input Type = File

* Values Required = Yes

  1. Create new customer:

* URL field - leave default value

* File attribute - upload some image

  1. Fill all other required fields
  2. Click Save button

Actual Result:
(-) Fatal Error
Note: if you click back button in browser or open some other page in backend you will see error messages about field which had wrong values

Expected Result:
(/) Error message appears for each field which has wrong value

Metadata

Metadata

Assignees

Labels

CDIssue recommended for the contribution dayComponent: OtherIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.3.5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions