-
Notifications
You must be signed in to change notification settings - Fork 3
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
Yet another invalid GPX file #34
Comments
תודה |
Looks like we're not the only ones to see this: https://www.geocaching.hu/forum.geo?action=thread&id=kutyuk&message_id=475943 A benefit of (initially) staying close to the standard is that it keeps options open for how to handle non-standard situations, because in almost every case (including this one), it means that we only need to affect situations that throw errors. So to help this situation out, I don't see a problem with adding these special-cases for when we're reading the direct children of the
I think it's fine for this special-case to be opt-out instead of opt-in, because we can still faithfully read in all the data from the file into our model. |
I originally identified this for the 1.0.0 milestone, but the rest of NTS updates took all my time. I'll get it for 1.1. |
Did you remove it for the 1.1 release also? This code will fix the issue, but it would be nice if the fix would be implemented in the package. And also it would be nice to understand why the process hangs. Throwing an exception that we can handle would be better.
GPX file to reproduce issue: |
I think this is the same as #41 when looking at this last comment. Too bad this wasn't handled when it was reported... :-( |
Apparently I had completely missed the comments saying that this was causing the process to run into an infinite loop. Otherwise, I would have realized that this would allow malicious clients to trivially craft inputs that consume massive amounts of server resources. I apologize for my slow response to this one. I'll leave this open to consider capturing those transformations that I'd mentioned earlier:
|
Don't get me wrong, I missed this message too somehow, not sure how. |
I've encountered another invalid GPX file that is described in the following issue:
IsraelHikingMap/Site#1043
Not sure how to properly solve this one though.
I've opened a ticket for Samsung health but I don't have high hopes they will fix it...
The text was updated successfully, but these errors were encountered: