-
Notifications
You must be signed in to change notification settings - Fork 9.4k
REMOTE_IP gets saved partially when using IPV6 #10395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same issue here. |
@keevitaja, thank you for your report. |
Didn't know about this until it almost burned me earlier in the week. This really needs resolving. More and more customers are using IPv6. And, had we not had access logs on, I'm not really sure what we would have done to catch this particular fraudulent customer. |
I'll take this, field length needs to be updated in the quote table as well |
@Zifius I've updated both sales_order and quote tables. It's a must for signifyd in order to work properly. |
@Zifius hope you don't mind if I take this, since there hasn't been an update in over a month? Have some spare time this evening and seems it's a quick one. |
Sure, go ahead!
…On Thu, May 3, 2018 at 22:07 George Schiopu ***@***.***> wrote:
@Zifius <https://github.com/Zifius> hope you don't mind if I take this,
since there hasn't been an update in over a month? Have some spare time
this evening and seems it's a quick one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10395 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAqhl1_tFdngByrfspaHG15zwzGnmVzfks5tu1WGgaJpZM4OptPj>
.
|
…nto#10395 Signed-off-by: George Schiopu <[email protected]>
Hi @keevitaja. Thank you for your report. The fix will be available with the upcoming 2.2.5 release. |
Hi @keevitaja. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
I saw the commits in question here and I am left wondering about the About the new size of the field being set to 45 - wouldn't it be more efficient setting the field to a size of 39, considering that an IPv6 address has 8 groups of 4 hexadecimal numbers, and 7 colons to separate them which makes (8 * 4) = 32 + 7 = 39 characters? I can re-submit a PR for this later if this is something you guys want, with the above changes that I have suggested. |
@megubyte 45 is correct! |
@megubyte I am left wondering about some other fields too. A quick search in my Magento (2.1) installation resulted in the following list.
|
Uh oh!
There was an error while loading. Please reload this page.
When customer is using IPV6 address, the remote_ip might get saved only partially into sales_order and quote tables depending on the address str length.
Problem is in the remote_ip column length which currently is VARCHAR(32)
https://en.wikipedia.org/wiki/IPv6
Preconditions
Steps to reproduce
Expected result
Actual result
To fix this, the remote_ip column in sales_order and quote tables must be VARCHAR(45)
The text was updated successfully, but these errors were encountered: