-
Notifications
You must be signed in to change notification settings - Fork 381
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
Figure out why addresses are getting trimmed #14
Comments
Here are some examples of cases where this happened: street
postcode
|
Does your logging in |
I haven't checked the logs yet... been waiting for the issue to happen since we added logging to be honest. Should have results from the later this week after we send out the next batch of orders. |
My first thought is that of echojc, if this is something that cannot be replicated then it would seem to me that we are losing / truncating the string before being received. I am setting up the environment now.. taking some time but will take a look when its all up and running. NOTE: I am a C# Developer Mainly but love a challenge, I just found out that I can contribute to osu! so this is great. Cannot wait to help out however I can. |
Also If a database is being utilized, I assume it is, The case could be that the truncation is occur within the databse (storing, Retrieving, updating, etc). Just a thought EDIT: I also want to state that PHP just handles data and that CSS is what handles displaying of the data. It could be due to the CSS not displaying the strings correctly due to an outdated browser (unsupported) I am researching into what is the best practice to prevent something like this. |
The issue is definitely not at the database side. |
@ITzNybble isn't address sent via POST request? If so, it has nothing to do with URL? |
You could also argue this is because the POST request is incomplete. But even the beginning of an address is trimmed, as shown from the |
I'd check if it's either javascript part or php part failing with that, and then start working from that (unless it's already known which side fails?) |
I guess I am curious now as to when does the trimming happen? after clicking Add new address? or after moving to Paypal? if it is after clicking add new address it is within the POST new address or javascript that handles anything to deal with that. if it is after sending to Paypal then I would need to look else where... |
|
Also why even mention PayPal? have you looked at the code before replying here? |
My apologies, I thought I understood the issue I will re-read and try to understand better. I brought up Paypal because I thought this was the web store for the osu! site and I was browsing that and noticed it sends you to paypal. I suppose I am wrong in that thinking as well. Sorry to waste everyone's time I was just trying to help. :( |
Is it possible to get at least a user agent / browser version of one of the people who it has happened to? Because it's more than likely a client sided problem since there's nothing in your code that would trim it and the addresses doesn't contain multibyte characters. |
I once read that strings not stored in 'EXAMPLE' are sometimes not stored correctly. [Off-Topic] |
No idea what you mean by 'EXAMPLE', but likely not related. [Off-Topic[ |
Tried to figure this one out, but I don't see any flawed code. The only 'weird' thing I came across was this line, although it shouldn't have any effect on actual validation: I've personally tested this on the following browsers without issues (Platform: OSX):
That said, for those wanting to troubleshoot this one but cannot access the store bit, you can use the (partial) SQL content dump posted by @peppy on this issue. All you need to do afterwards, is make sure you have at least one country record available in Example country record: |
I think we may have figured this out. We had a few more cases recently and it would seem that (in the cases which were not user error) the addresses that were showing issues had been entered way back in 2014. This is so far back that it was before we basically rewrote the whole system, and as such there was probably a bug causing issues with saving the addresses. The reason it was showing in newly placed orders is that people were using addresses that they entered in the system a long time ago (but never used in an order) for new orders. I've addressed this by removing all old addresses which weren't attached to a valid order, so we shouldn't have this occurring again in the future. Thanks to everyone who looked into this, and sorry I couldn't really give out bounty for the issue. |
This is still happening. Had two orders with street name missing (but number present)
😕 |
Why not changing "Street Number..." by "Street","Number","Building... (optional)" ? (It should fix the problem) |
Doesn't seem to be happening anymore |
We've had ongoing cases where store addresses are getting trimmed. This happens for some users when they enter a street address or postcode that contains multiple words, where some words are removed completely.
We've added logging to try and track this down, but if anyone has an idea of how this could happen (and can cite in the code where the issue is, or submit a pull request to fix it), that would be pretty cool.
As it has caused a few orders to go missing or returned-to-sender, I'm willing to offer a bounty for a solution to this one.
Note that this does not always happen. It is likely a specific browser or workflow which causes it to trigger.
What needs to be done:
street
/postcode
(possibly others) fields inosu_store.addresses
occasionally get trimmed.Bounty offered: 50
The text was updated successfully, but these errors were encountered: