Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(schema): run check on invalid field (#13923)
This fixes a nil reference if a checker referred to an inexistent field. ``` ./kong/db/schema/init.lua:1267: attempt to index a nil value stack traceback: ./kong/db/schema/init.lua: in function 'run_entity_check' ./kong/db/schema/init.lua:1384: in function 'run_checks' ./kong/db/schema/init.lua:1400: in function 'run_entity_checks' ./kong/db/schema/init.lua:2101: in function 'validate' ./kong/db/schema/init.lua:957: in function 'validate_field' ./kong/db/schema/init.lua:1187: in function 'validate_fields' ./kong/db/schema/init.lua:2091: in function 'validate_insert' ./kong/db/dao/init.lua:470: in function 'check_insert' ./kong/db/dao/init.lua:1155: in function 'insert_entity' ./kong/api/endpoints.lua:409: in function 'fn' ./kong/api/api_helpers.lua:329: in function <./kong/api/api_helpers.lua:307> ```
- Loading branch information
a13ed4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:a13ed4a3ae7cd17aa406f0e77f188b73a900550f
Artifacts available https://github.com/Kong/kong/actions/runs/12069332491