Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a redirected feed is not parseable Aggregator saves a watchdog entry saying "Updated URL for feed ... to ...." however the feed data remains unchanged in the database.
Attached patch saves watchdog entry after feed data is updated.
Comment | File | Size | Author |
---|---|---|---|
#4 | aggregator-permanent-redirect.patch | 690 bytes | mustafau |
#4 | updated_url_for_feed_d6.patch | 1.16 KB | mustafau |
#3 | updated_url_for_feed_d6.patch | 1.17 KB | mustafau |
updated_url_for_feed.patch | 1.15 KB | mustafau | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedI've committed this to CVS HEAD. The patch didn't apply to DRUPAL-6 so I did not commit it to Drupal 6. I'll lower the version module and mark it 'code needs work'.
Comment #2
catchProbably better as 'to be ported'.
Comment #3
mustafau CreditAttribution: mustafau commentedPatch for DRUPAL-6.
Comment #4
mustafau CreditAttribution: mustafau commentedWe only update URL if redirect is permanent (status 301). Previous patch called watchdog for 301, 302, 307.
Attached patch fixes the problem. Patch for DRUPAL-6 is also attached.
Comment #6
mustafau CreditAttribution: mustafau commentedPatch is fine. Testbed tried to apply patch for DRUPAL-6 to HEAD.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedThe last submitted patch failed testing.
Comment #8
Kars-T CreditAttribution: Kars-T commentedThe code for D7 is now:
This still does not check for status 301 but if the url did change. To me it still seems wise to change the code to check for http 301 and not the url but maybe someone does know better and close this issue / set it back to D6 which still applies?