pallets-eco / pallets-eco/wtforms

Regexp validator fails on MultipleFileField

Open
#442 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking change bug
Dominant language
Python
Stars
1.6k
Forks
409
PR merge metrics
No merged PRs in 30d

Description

Hi Guys,

Regexp validator fails on multiple file field - it validates on field.data which in this situation is a list.

(I wanted to clone the repo and try out new Regexp test case with list type field.data value, but I failed at running pytest on non-installed package and picking up whole validators tests...)

Cheers

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Regexp validator and MultipleFileField handling, focusing on how field.data is processed when it is a list. Run pytest against the validators tests using an installed package, then add or update the Regexp test case so validation behaves correctly for a list-valued field.data.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.