-
Notifications
You must be signed in to change notification settings - Fork 190
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
fix: do not fail on invalid time strings #3028
Conversation
f608cb3
to
7afc3ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we want to pretend the broken feeds are actually valid.
} else { | ||
$pubDT = $lastModified; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a duplicate with the catch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aye, $pubDT = $lastModified;
could be moved after line 300, then we do not need the else branch and can have the catch block empty.
Right now it is a hard failure and the whole update process crashes. Not following feeds are updated. So this has to be caught, and with my code changes it would just continue as if |
@SMillerDev do you still want to refactor the code a bit or should we merge it? |
Signed-off-by: Arthur Schiwon <[email protected]>
7afc3ba
to
5ab3f0a
Compare
Changed - add explanations for the individual values in the feed information table (#3031) - show error message from `opml` import in web-ui (#3036) - disable new setting "nextUpdateTime" introduced in #2999 by default (#3039) Fixed - fix proxy port removed if standard port for the protocol (#3027) - background updater may stumble over invalid datetime strings from feeds (#3028) Signed-off-by: Benjamin Brahmer <[email protected]>
Changed - add explanations for the individual values in the feed information table (#3031) - show error message from `opml` import in web-ui (#3036) - disable new setting "nextUpdateTime" introduced in #2999 by default (#3039) Fixed - fix proxy port removed if standard port for the protocol (#3027) - background updater may stumble over invalid datetime strings from feeds (#3028) Signed-off-by: Benjamin Brahmer <[email protected]>
Fixes the updater job to fail with:
I had this for a long while until I actually looked into it. And suddenly I get articles from other feeds again 😅 I suppose I have (had?) one feed that provides invalid data, causing this issue.
DateMalformedStringException
was introduced with PHP 8.3 only so to keep compatibility with 8.2 the catch goes against the general\Exception
.If intertested, unfold to see my stack trace.