Bug #1903

Validator hostname() returns NULL

Added by Davide Principi over 6 years ago. Updated over 5 years ago.

Status:CLOSEDStart date:04/26/2013
Priority:NormalDue date:04/26/2013
Assignee:-% Done:

100%

Category:nethserver-nethgui
Target version:v1.5.0
Security class: Resolution:
Affected version:v6.4-alpha2 NEEDINFO:

Description

The hostname() validator does not return ValidatorInterface.

source:Nethgui/System/Validator.php@7d8dc23e#L159

Unit tests don't check the returned object, thus the error is not caught.

source:Nethgui/Test/Unit/Nethgui/System/ValidatorTest.php@7d8dc23e#L299

Associated revisions

Revision a865f3af
Added by Giacomo Sanchietti over 6 years ago

Validator.php: add return statement in hostname function. Refs #1903

Revision 720039b2
Added by Davide Principi over 6 years ago

ValidatorTest: always check for chainable return values. Refs #1903

History

#1 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from NEW to ON_DEV
  • % Done changed from 0 to 30

Added return statement.

#2 Updated by Davide Principi over 6 years ago

  • Category set to 2
  • Status changed from ON_DEV to MODIFIED
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 30 to 100

#3 Updated by Davide Principi over 6 years ago

  • Status changed from MODIFIED to CLOSED

#4 Updated by Davide Principi over 5 years ago

  • Target version deleted (v6.4-beta1)

Also available in: Atom PDF