akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
950 stars 513 forks source link

An internal server error is generated instead of the required field intruction if a product model is created without adding model code. #20459

Open vikasnick opened 6 days ago

vikasnick commented 6 days ago

:bug: I'm reporting a Bug :bug:

Please update to the last available patch for the version.

Here's an example of a Git issue for the latest Akeneo version:


Description: When attempting to create a product model without specifying a model code, an internal server error is generated instead of the expected field instruction indicating that the model code is required.

Environment:

Steps to Reproduce:

  1. Go to the product models section in the Akeneo interface.
  2. Click on "Create" to add a new product model.
  3. Leave the model code field empty.
  4. Fill in the Family field only.
  5. Click "Save."

Expected Behavior: An error message or field instruction should be displayed indicating that the model code is a required field as working in the initial condition.

image

Actual Behavior: An internal server error is generated, preventing the creation of the product model and not providing the user with the necessary feedback about the missing model code.

Screenshots: Screenshot from 2024-06-24 17-27-51

Logs:

Please find the relevant logs or error messages.

prod.log

Additional Information: This issue prevents users from correctly identifying the problem when the model code is not provided, leading to confusion and potential data entry issues.