- Issue created by @liquidcms
- π©πͺGermany Anybody Porta Westfalica
Hi @liquidcms what do you mean by
Why is 127.0.0.1 not allowed?
Could you please explain:
- Expected functionality
- Current functionalityand if you know, which code or UI element you're talking about, could you please give a reference?
Thanks!
- Status changed to Active
over 1 year ago 5:07pm 18 July 2023 - πΊπΈUnited States japerry KVUO
I can reproduce the issue.. looking into it.
- πΊπΈUnited States japerry KVUO
For some reason we're not allowing IPs in the reserved range. Not sure that is needed.
FILTER_FLAG_NO_RES_RANGE FILTER_VALIDATE_IPFails validation for the following reserved IPv4 ranges: 0.0.0.0/8, 169.254.0.0/16, 127.0.0.0/8 and 240.0.0.0/4.
Fails validation for the following reserved IPv6 ranges: ::1/128, ::/128, ::ffff:0:0/96 and fe80::/10.
These are the ranges that are marked as Reserved-By-Protocol in Β» RFC 6890.Added a PR that removes the Reserved Range, but maintains the Validate IP filter.
- last update
over 1 year ago 44 pass - @japerry opened merge request.
- Status changed to Needs review
over 1 year ago 5:29pm 18 July 2023 - π©πͺGermany Anybody Porta Westfalica
The functionality was added here: #2220275: Allow for skipping captcha based on IP Address or IP Range β the reservation has already been part of the first patch and I agree, I can't see a good reason for that. To be 100% sure we could ask https://www.drupal.org/u/darrellduane β for the reasons, he created the patch.
BTW, is there any good way to write a test for this and mock the test client IP address?
I'm fine with RTBC'ing this otherwise, as the fix is simple enough.
- last update
over 1 year ago 44 pass - πΊπΈUnited States japerry KVUO
There is a way to add a test, however that will involve adding test coverage to the settings form itself. While I could do that, it seems a little outside the scope of this issue.
- π©πͺGermany Anybody Porta Westfalica
@liquidcms would you perhaps like to review and test it? As written above, we don't use it, but we might push things forward then.
From the code-side LGTM! - π©πͺGermany Anybody Porta Westfalica
Thanks @japerry I reviewed the issue and I think the change is correct. Never really made sense to me.
- last update
over 1 year ago 44 pass -
Anybody β
committed 8ab0264f on 2.x authored by
japerry β
Issue #3354119 by japerry, Anybody: IP address 127.0.0.1 is not valid
-
Anybody β
committed 8ab0264f on 2.x authored by
japerry β
- Status changed to Fixed
over 1 year ago 10:35am 4 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.