Bug #12498
closedInput validation error can unintentionally result in removal of PPP type interface settings
100%
Description
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 about 3 years ago
Updated by Jim Pingle about 3 years ago
- Status changed from New to Pull Request Review
- Assignee set to Viktor Gurov
Updated by Steve Wheeler about 3 years ago
That looks good. Tested agaist:
2.6.0-DEVELOPMENT (amd64) built on Tue Nov 02 05:24:11 UTC 2021 FreeBSD 12.3-PRERELEASE
Updated by Viktor Gurov about 3 years ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset c58db2033bacd99196ee025377ac1d654eddb28e.
Updated by Danilo Zrenjanin about 3 years ago
- Status changed from Feedback to Resolved
Tested against:
2.6.0-DEVELOPMENT (amd64) built on Wed Nov 10 06:20:57 UTC 2021 FreeBSD 12.3-PRERELEASE
I can confirm it works as expected. Ticket resolved.
Updated by Viktor Gurov about 3 years 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
correct fix:
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/456
Updated by Jim Pingle about 3 years ago
- Status changed from New to Pull Request Review
Updated by Viktor Gurov about 3 years ago
- Status changed from Pull Request Review to Feedback
Applied in changeset 6a9435a66ee6257dd411b3c6a7248d7a29f9a35a.
Updated by Max Leighton about 3 years ago
- Status changed from Feedback to Resolved
Tested in:
2.6.0-DEVELOPMENT (amd64)
built on Sat Nov 13 06:22:43 UTC 2021
FreeBSD 12.3-PRERELEASE
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.
Updated by Jim Pingle almost 3 years ago
- Subject changed from Input validation can remove a PPPoE interface setting. to Input validation error can unintentionally result in removal of PPP type interface settings
Updating subject for release notes.