Closed (fixed)
Project:
Restrict IP
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2018 at 13:46 UTC
Updated:
8 Sep 2021 at 06:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fjgarlin commentedPatch attached.
Comment #3
jasonawantThanks for the patch. It applies cleanly and works as expected. Not sure if tests need to be updated for this though.
Comment #4
bill_redman commentedHi, I encountered this error when trying the module today. After reading this post, I applied the patch. While the original error is gone, I now get one telling me that the IP range I entered is not a valid IP address range. Since I know that the range is valid since I use it on other systems, would you have any suggestions? The range is entered like this example: 123.22.128.0-123.22.191.255
I'm using Version 8.x-1.3 of the module.
Thanks.
Comment #5
jasonawantHi Bill,
Looks like you've combined different IPs and their ranges. Instead of 123.22.128.0-123.22.191.255, it would be 123.22.128.0-123.22.128.255 and anything between this range and 123.22.191.0-123.22.191.255
Jason
Comment #6
fjgarlin commentedYes, these range validation are currently open issues not really related to this issue in this case:
* Check range across all IP chunks
* Add range support for IPV6 addresses
Comment #7
bill_redman commentedJason - Thanks for your reply. My range example does work in other applications I have, but that doesn't mean it will everywhere. I see your point. I'll try a different approach.
fjgarlin - Thanks for your reply. I will check out the issues you indicated.
Regards,
Bill
Comment #8
brockfanning commentedI ran into this bug and this approach worked. I think this is a major priority - since the module appears to be broken if a new user is trying an IP range that this module does not support.
Comment #9
promo-il commentedD8.8, PHP:7.2 patch#2 OK
Comment #11
anybodyThank you all! Fixed in 3.x release (3.0.0-beta3) - Please test!