Skip to content

[Bug] GReader API: marking localised default category as read returns HTTP 400 #9542

Closed

Description

@netsvetoch

Describe the bug

The GReader API returns a localised label ID for the default category, but mark-all-as-read cannot resolve that same label and responds with HTTP 400. This occurs in NewsFlash when marking “Без категории” as read; marking an individual feed works.

To Reproduce

  1. Use a FreshRSS account with Russian as its language and the default category stored as Uncategorized in the database.
  2. Have an unread entry in a feed in that category.
  3. Obtain the category ID from reader/api/0/subscription/list?output=json: user/-/label/Без категории.
  4. POST to reader/api/0/mark-all-as-read with a valid auth header and POST token, s=user/-/label/Без категории, and a valid ts.
  5. Observe HTTP 400 (Bad Request!); the entry remains unread.

Reproduced against unmodified edge in a throwaway installation using the actual HTTP API, PHP 8.5.12 and SQLite.

Expected behavior

A category ID returned by the API should be accepted by mark-all-as-read, and its entries should be marked as read regardless of the account language.

FreshRSS version

edge, commit 69f7156

System information

  • Database: SQLite (isolated reproduction)
  • PHP: 8.5.12
  • Installation: git checkout mounted in the official FreshRSS edge-alpine container
  • Web server: PHP built-in server for the reproduction
  • Client: NewsFlash on Linux; reproduced independently via HTTP
  • Browser: not applicable

Additional context

Related to #7368 and its fix #7610, which addressed the localised default category when adding subscriptions.

FreshRSS_Category::_id() exposes the translated default name. markAllAsRead() passes that name to FreshRSS_CategoryDAO::searchByName(), whose SQL currently searches only the stored name.

I am working on a fix and regression tests.

Activity

  1. added this to the 1.31.0 milestone on Nov 8, 2026
  2. added
    API 🤝
    Bug (unconfirmed)
    on Nov 8, 2026
  3. added a commit that references this issue on Nov 14, 2026
    62c47b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API 🤝Bug (unconfirmed)

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions