Input validation error can unintentionally result in removal of PPP type interface settings
If you edit a PPPoE interface through, for example, Interfaces > WAN (interfaces.php) and change the password but do no enter matching passwords the selected physical interface is removed.
Resulting in config:
<ppp> <ptpid>0</ptpid> <type>pppoe</type> <if>pppoe0</if> <ports></ports> <username><![CDATA[test]]></username> <password><![CDATA[dGVzdDQ=]]></password> <provider>testy</provider> <bandwidth></bandwidth> <mtu></mtu> <mru></mru> <mrru></mrru> <hostuniq></hostuniq> </ppp>
This does not happen if editing through Interfaces > Assignments > PPPs (interfaces_ppps_edit.php) where the selected interface is part of the input fields.
Updated by Viktor Gurov 7 months ago
Updated by Viktor Gurov 6 months ago
- Status changed from Resolved to New
PPPoE/L2TP/PPTP configuration on the interfaces.php without creating associated interfaces on the interfaces_ppps.php page doesn't work after this commit
Updated by Max Leighton 6 months ago
- Status changed from Feedback to Resolved
built on Sat Nov 13 06:22:43 UTC 2021
I can create PPPoE/L2TP/PPTP interfaces from the interfaces.php page and see the associated interfaces on interfafces_ppps.php without issues. The configs look fine. Marking the ticket resolved.