Skip to content

Support standard HTTP 410 Gone - #3561

Merged
Alkarex merged 1 commit into
FreshRSS:edgefrom
Alkarex:http_410
Mar 26, 2021
Merged

Alkarex merged 1 commit into
FreshRSS:edgefrom
Alkarex:http_410

Conversation

@Alkarex

@Alkarex Alkarex commented Mar 25, 2021

Copy link
Copy Markdown
Member

When a feed returns an HTTP 410 Gone, mute the corresponding feed, i.e. stop refreshing it.
Example of such feed, Les Décodeurs (Libération) https://rss.liberation.fr/rss/100893/

When a feed returns an HTTP 410 Gone, mute the corresponding feed, i.e. stop refreshing it.
Example of such feed, Les Décodeurs (Libération) https://rss.liberation.fr/rss/100893/
@Alkarex Alkarex added this to the 1.18.1 milestone Mar 25, 2021
Alkarex added a commit to FreshRSS/simplepie that referenced this pull request Mar 25, 2021
New method for a client to get the last HTTP status code.
Use-case: implement HTTP 410 Gone
Downstream PR: FreshRSS/FreshRSS#3561
@Alkarex

Alkarex commented Mar 25, 2021

Copy link
Copy Markdown
Member Author

Upstream PR: simplepie/simplepie#674

@aledeg aledeg changed the title Suport standard HTTP 410 Gone Support standard HTTP 410 Gone Mar 25, 2021
mblaney pushed a commit to simplepie/simplepie that referenced this pull request Mar 26, 2021
New method for a client to get the last HTTP status code.
Use-case: implement HTTP 410 Gone
Downstream PR: FreshRSS/FreshRSS#3561
@Alkarex

Alkarex commented Mar 26, 2021

Copy link
Copy Markdown
Member Author

Merged upstream

@Alkarex
Alkarex merged commit eeff1a1 into FreshRSS:edge Mar 26, 2021
@Alkarex
Alkarex deleted the http_410 branch March 26, 2021 18:13
@shcheglovnd shcheglovnd mentioned this pull request Oct 2, 2026
3 of 4 tasks
Alkarex added a commit that referenced this pull request Oct 3, 2026
* Fix muting of feeds gone with HTTP 410

A feed answering HTTP 410 Gone is meant to be muted (#3561), but:

* Since #6037, FreshRSS_Feed_Exception extends Minz_Exception, which
  resets any code other than its own error levels to 0, so the check for
  410 never matched. FreshRSS_Feed_Exception now keeps the HTTP status
  code it is given.
* FreshRSS_FeedDAO::mute() mutes by negating the TTL, which leaves a feed
  with the default TTL (0) unmuted. Mute the feed the way the feed
  settings and dynamic OPML categories do instead.

* A bit of cleaning

---------

Co-authored-by: Alexandre Alapetite <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant