Loading...
 
Skip to main content

Trackers; Validation field length for a Regex pattern is limited

Status
Closed
Subject
Trackers; Validation field length for a Regex pattern is limited
Version
23.x
24.x
Category
  • Error
  • Developer Training
  • Easy for Newbie Dev
Feature
Trackers
Resolution status
Works For Me
Submitted by
Bernard Sfez / Tiki Specialist
Keep informed
Adrien
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

On a Tiki23 I create a tracker and add an email field.
I wanted to add a validation using the validation option (edit tracker field options).

I set for Type; Regular Expression (pattern)
Parameter:

Copy to clipboard
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])


Error Message : Enter a valid email

Parameters comes from : https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression

On save I have the following error.

×
Error
Data too long for column 'validationParam' at row 1

Even if the pattern is a bit funky, this is another "legacy" value limitation that should be removed.

Importance
5
Easy to solve?
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8017
Created
Tuesday 04 January, 2022 10:08:41 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Thursday 24 February, 2022 15:12:39 UTC


Show PHP error messages