- Issue created by @jorgik
- Merge request !9Issue #3515381: AiSearchBlockController fails with "Cannot load the 'block'... → (Merged) created by jorgik
- First commit to issue fork.
When directly accessing the /ai-search-block/query endpoint without proper parameters, the controller attempts to load a block entity with a NULL ID, resulting in an AssertionError. The controller doesn't properly validate the presence of required parameters before attempting to load the block entity.
Add proper validation for required parameters before attempting to load the block entity. The controller should check if $block_id is empty and return an appropriate error response instead of trying to load a block with a NULL ID.
None. This is a backend API endpoint fix.
The API will now return a proper error response with a 400 status code when required parameters are missing, instead of throwing an exception.
None.
Active
1.0
Code