Skip to content

[Bug] Calling the GReader API with wrong feed IDs returns successfully but with the wrong feed data #7435

@mlessd

Description

@mlessd

Describe the bug

Is this the expected behavior? For example I am calling the "get stream content" endpoint with an invalid feed ID:
/api/greader.php/reader/api/0/stream/contents/wrong-value?output=json

I expected this to return an error, but it returns successfully, with the content of the entire "reading-list" instead. The client app cannot detect this and it displays the wrong items.

Thanks!

To Reproduce

  1. Call /api/greader.php/reader/api/0/stream/contents/wrong-value?output=json
  2. Obtain all items instead of an error.

Expected behavior

No response

FreshRSS version

1.25

System information

  • Database version: SQLite
  • Installation type: Docker
  • Web server type: nginx
  • Device: Server
  • OS: Ubuntu
  • Browser: None

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions