View Issue Details

IDProjectCategoryView StatusLast Update
4912Composrcorepublic2022-12-28 03:07
ReporterChris Graham Assigned To 
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary4912: Field input: Consider whether a blank value should be considered the same as a missing value
DescriptionCurrently the post_param_string/get_param_string functions treat missing values differently to blank values.

A missing value triggers an error, unless a default value is provided (or null is set as the default).

A blank value is acceptable as a value unless the original form said it was a required field (handled via require__<name> fields).

We ideally should not rely on require__<name> being set on the form. May be we should just remove the above distinction and decouple the validation on the frontend from the validation on the backend.

Then again, doing so may create unexpected problems, and it removes the ability for the frontend to set the validation to subsequently happen on the frontend.

On balance I say we remove the distinction and work out any kinks caused by it later.
TagsRoadmap: Over the horizon
Attach Tags
Time estimation (hours)0.5
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Relationships

related to 5206 ResolvedChris Graham Bots submitting blank member contact form is irksome 
related to 4913 ResolvedChris Graham Better validation of blank input data 

Activities

Chris Graham

2022-12-28 03:07

administrator   ~7846

I just had to make a workaround related to this issue: https://gitlab.com/composr-foundation/composr/commit/a26e9baaec

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2022-08-30 20:51 Chris Graham New Issue
2022-08-30 20:51 Chris Graham Status Not Assigned => Assigned
2022-08-30 20:51 Chris Graham Assigned To => Chris Graham
2022-08-30 20:51 Chris Graham Tag Attached: Roadmap: v11
2022-08-30 20:53 Chris Graham Relationship added related to 4913
2022-11-20 02:54 Chris Graham Tag Attached: Roadmap: v12
2022-11-20 02:55 Chris Graham Tag Detached: Roadmap: v11
2022-11-20 03:07 Chris Graham Assigned To Chris Graham =>
2022-11-20 03:07 Chris Graham Status Assigned => Not Assigned
2022-12-28 03:07 Chris Graham Note Added: 0007846
2022-12-28 03:07 Chris Graham Relationship added related to 5206
2024-03-26 00:58 PDStig Tag Renamed Roadmap: v12 => Roadmap: Over the horizon