Project

General

Profile

Actions

Bug #83775

closed

Breaking Change in Form Validator

Added by SICOR KDL GmbH about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2018-02-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello there,

at least in the 8.7.8 upgrade project I'm currently working on the "alphanumeric" Validator no longer allows whitespace, so eg. Name: "Hubert Maier" will now produce an error. This not only renders the validator as such more or less useless, it'll possibly also break currently working contact forms for TYPO3 8 with just a minor update.

As a sidenote, the "Back" Button on the confirmation step doesn't seem to work with 8.7.8 and Firefox either. Not sure if it ever did though.

Actions #1

Updated by Stephan Großberndt about 6 years ago

  • Status changed from New to Needs Feedback

There has been no change to the regulat expression in "\TYPO3\CMS\Extbase\Validation\Validator\AlphanumericValidator" since TYPO3 6.1

The expression used there is preg_match('/^[\pL\d]*$/u', $value) !== 1 - meaning it never allowed spaces since TYPO3 6.1

Could you please explain in more detail how and where you use that '"alphanumeric" Validator'?

Actions #2

Updated by SICOR KDL GmbH about 6 years ago

I'm kinda puzzled. On the one hand you're right. I can see the behaviour in older 8.7.x sources now as well.

On the other hand, which validator would you use for a string like "main street 12a" or "Dr. Smith"? Isn't that exactly the usecase for an alphanumeric validator? letters, digits, whitespace and punctuation?

I use that in the yaml form wizard which was introduced in TYPO3 8.

Actions #3

Updated by Björn Jacob about 6 years ago

Could you please open another issue regarding the back button? I am not happy with the current implementation.
Thx.

Actions #4

Updated by Wouter Wolters about 6 years ago

  • Status changed from Needs Feedback to Closed

I close this ticket as this is not an issue of TYPO3. For your other question I suggest that you ask on Slack in #typo3-cms or on Stackoverflow. Thanks.

Actions

Also available in: Atom PDF