magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Admin not able to create a product without giving name.

Open engcom-Lima opened this issue 2 years ago • 14 comments

Preconditions and environment

  • Install fresh Magento 2.4-develop.

Steps to reproduce

  1. Login as admin.
  2. Go to Store->attributes->product search code "name" and set Values Required to "NO".
  3. Clear cacge
  4. Go to catalog >> products >>Add Product.
  5. Fill all mandatory details. Do not provide name.
  6. Save the product. - Issue. User is not able to save the product without product name
  7. Create the product with Product name and save - Edit product - Remove product name and save - User is able to save the product without name

Expected result

Product should be saved successfully and should be displayed in the product grid.

Actual result

Inconsistent behavior observed when creating the product and editing the product. Product is not getting created, getting error in frontend. The product that was requested doesn't exist. Verify the product and try again.

Screenshot: image

Additional information

User is able to save the product without price value (If made not required in attribute configuration) even though it is mandated with * in admin product creation page image

Release note

No response

Triage and priority

  • [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

engcom-Lima avatar Jul 21 '22 07:07 engcom-Lima

Hi @engcom-Lima. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] avatar Jul 21 '22 07:07 m2-assistant[bot]

Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar Jul 21 '22 07:07 m2-assistant[bot]

@magento give me 2.4-develop instance

ajijshekh123 avatar Jul 21 '22 12:07 ajijshekh123

Hi @engcom-Lima , Verified the issue on Magento 2.4-develop branch but however this behavior is due to default Attribute set configuration. Default attribute set that is used as a template when creating a product includes a set of commonly-used attributes. System attributes are marked with a dot and cannot be removed from the Groups list. They can, however, be dragged to another Group in the attribute set. Please check the ref guide and provide supporting documents/proofs to consider this as a valid issue. image Thank you.

engcom-November avatar Jul 22 '22 12:07 engcom-November

Hi @engcom-November

I have tested this functionality earlier in 2.4.1 and I was able to create a product without giving name.

The screenshot which you have shared is of product attribute set. Attribute set is the template for product creation. Attribute set is not for making any field mandatory or it will not decide functionality or behaviour. It is Product attributes, which will decide behaviour of the particular attributes.

For your reference you can see devdocs : product attributes

Here you refer this reply from Magento for a customer query

Thanks

engcom-Lima avatar Jul 22 '22 13:07 engcom-Lima

@magento give me 2.4-develop instance

engcom-November avatar Jul 25 '22 08:07 engcom-November

Hi @engcom-November. Thank you for your request. I'm working on Magento instance for you.

Hi @engcom-November, here is your Magento Instance: https://4d1af1cd32d9a47c009624919acb1830.instances.magento-community.engineering Admin access: https://4d1af1cd32d9a47c009624919acb1830.instances.magento-community.engineering/admin_40d7 Login: 9ac86830 Password: 0bb6f0a93946

Verified the issue again on Magento 2.4-develop branch and the issue is reproducible. Unable to create Product without Product Name. image But if a product is created with name and saved and edited the product without name and saved - User is able to save the product without product name. Hence confirming this issue for inconsistent behavior and updating description Similar issue but different error: https://github.com/magento/magento2/issues/35810

engcom-November avatar Jul 25 '22 09:07 engcom-November

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-6015 is successfully created for this GitHub issue.

github-jira-sync-bot avatar Jul 25 '22 09:07 github-jira-sync-bot

:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

m2-assistant[bot] avatar Jul 25 '22 09:07 m2-assistant[bot]

:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-6015

github-jira-sync-bot avatar Jul 25 '22 09:07 github-jira-sync-bot

@magento I am working on this

topanok avatar Aug 26 '22 09:08 topanok

@magento I am working on this

topanok avatar Aug 26 '22 09:08 topanok

:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-6015

github-jira-sync-bot avatar Oct 14 '22 14:10 github-jira-sync-bot

@engcom-Lima This is not a bug, it cannot generate the url key because it is generated from the product name. Therefore, if you want a product without a name, then enter the key url. I had already created a PR in which I corrected it, but I deleted it, because I think creating a product without a name is stupid)

topanok avatar Dec 11 '22 10:12 topanok