Skip to content

[Bug] Enclosures are not updated in item attributes #7718

@Lymkwi

Description

@Lymkwi

Describe the bug

When the upstream feed updates the list and properties of enclosures (in my case, specifically, URLs with frequently updated access tokens), the new properties are present in cache, but never updated in the item's database entry.

While enclosures are designed to provide a way to pre-fetch and cache attachments to feed items, this is not done by FreshRSS. This means that, for example, an enclosure can contain a link that will become invalid, and the media will be unreachable.

To Reproduce

  1. Subscribe to a feed
  2. Fetch items on the feed and retrieve at least one with an <enclosure>
  3. Wait until the feed updates properties in the <enclosure> of the item (e.g. URL)
  4. When displayed or viewed in database, the enclosures show outdated information

Expected behavior

When an item is fetched, the enclosures attributes are updated, just like the content is.

FreshRSS version

1.26.3

System information

  • Database version: PostgreSQL 15.13
  • PHP version: 8.2.28
  • Installation type: Docker
  • Web server type: nginx
  • Device: all
  • OS: Debian 12
  • Browser: all (at least Firefox and latest Chromiun, but probably irrelevant)

Additional context

i checked some best practices around <enclosure> to see if it even made sense to update them, and it does not seem to be a discouraged practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug (unconfirmed)issues that could not be reproduced yet

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions