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
To fix this, the remote_ip column in sales_order and quote tables must be VARCHAR(45)
Same issue here.
We need a valid enduser ip address for starting a payment.
If the ipaddress is invalid, customers cannot pay the order
@keevitaja, thank you for your report.
We've created internal ticket(s) MAGETWO-83202 to track progress on the issue.
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 notifications@github.com
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
https://github.com/magento/magento2/issues/10395#issuecomment-386404092,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAqhl1_tFdngByrfspaHG15zwzGnmVzfks5tu1WGgaJpZM4OptPj
.
Hi @keevitaja. Thank you for your report.
The issue has been fixed in magento/magento2#14976 by @georgeschiopu in 2.2-develop branch
Related commit(s):
The fix will be available with the upcoming 2.2.5 release.
Hi @keevitaja. Thank you for your report.
The issue has been fixed in magento/magento2#15142 by @dmytro-ch in 2.3-develop branch
Related commit(s):
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 x_forwarded_for field too - checking my Magento 2 installation here, it does seem that this has the same schema definition that remote_ip once had, which would cause some problems if you have a IPv6 "X-Forwarded-For" IP.
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.
| table name | field name |
| --- | --- |
| admin_user_session | ip |
| password_reset_request_event | ip |
| quote | remote_ip |
| rating_option_vote | remote_ip |
| sales_order | remote_ip |
| sales_order | x_forwarded_for |
| sendfriend_log | ip |
Most helpful comment
@megubyte I am left wondering about some other fields too. A quick search in my Magento (2.1) installation resulted in the following list.
| table name | field name |
| --- | --- |
| admin_user_session | ip |
| password_reset_request_event | ip |
| quote | remote_ip |
| rating_option_vote | remote_ip |
| sales_order | remote_ip |
| sales_order | x_forwarded_for |
| sendfriend_log | ip |