Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: GenericDataIndexBundle type error for input quantity value fields #160

Open
cuca24 opened this issue May 13, 2024 · 0 comments
Open
Labels

Comments

@cuca24
Copy link

cuca24 commented May 13, 2024

Pimcore version

11.2.2

Steps to reproduce

On fresh pim installation with GenericDataIndexBundle

  1. Create class and add simple quantity input field.
  2. Now create Object of that class and in input add for example 2,3 or any letter and save it

Actual Behavior

The update index for GenericDataIndexBundle will fail due to the type error since quantity input field should be numerical (number_format_exception) and thus the process eventually crashes leaving mysql the transaction in uncommitted state and locking the messenger_messages table, and stalling all other functionalities in pimcore.

Expected Behavior

Since the documentation states that quantity input field is numerical it should be good to add validation on quantity input field either on save or already through js and also disable inputting non numerical values into quantity input field.

Since this is connected to GenericDataIndexBundle but i don't see the problem in GenericDataIndexBundle unless we would change the field in open search to be non numerical, but documentation clearly states that the value should be numerical

@cuca24 cuca24 added the Bug label May 13, 2024
@fashxp fashxp transferred this issue from pimcore/pimcore May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant