If a syntactically invalid default gateway is entered, an error will occur in the MySQL environment

Created on 7 August 2024, 5 months ago
Updated 21 August 2024, 4 months ago

TypeError: inet_ntop(): Argument #1 ($ip) must be of type string, false given in inet_ntop() (line 71 of modules/contrib/field_ipaddress_pgsql/src/Plugin/Validation/Constraint/MySqlFormatConstraintValidator.php).

The steps to reproduce:

1. Select IPv6 option.
2. Check the "Add default gateway" option.
3. Enter the following data
IP address:
::ffff:1.2.3.0/120
Default gateway:
::ffff:1.2.3

This issue also causes some tests to fail.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024