Default validators are not reasonable
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 50/100
Research direction
Start by comparing the default validators in v20250914.1 and v20250920.1, then reproduce the failure with a legacy read-only table containing a reference column with an empty value. Trace the reference-column validation path and add a regression test; done means allowed empty reference values no longer error without an explicit validator.
Written by the indexing model from the issue text.
Description
Until v20250914.1 everything was working fine for my application.
Starting from v20250920.1 I started seeing serious problems with some of my tables. Specifically those are "legacy" tables (pre-existing, defined as read-only in my application).
With the help of AI I finally found out how to understand and overcome the problem.
Looks like the new default validators since v20250920.1 cannot handle "empty" values properly for reference columns, which results in an error.
The workaround is to add an explicit validator to all the reference columns:
requires=[IS_EMPTY_OR(Validator())]
Looks to me that this should already be the default for those validators. Empty fields (if allowed in the table setup) do not need any validation.
- Dominant language
- Python
- Stars
- 540
- Forks
- 151
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from web2py/pydal
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mloda-ai/mloda-plugin-template#206 ·
Maintainers usually reply within 1 day
-
integration: websocket_api
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
home-assistant/core#194618 · 2 comments ·
Maintainers usually reply within 1 day
-
Shorten and organize the README around reader tasksPossibly taken @msaad00 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
5hyuns/maya-workflow-kit-for-blender#568 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
letsrevel/revel-backend#1558 ·
Maintainers usually reply within 1 day