You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Use a FreshRSS account with Russian as its language and the default category stored as Uncategorized in the database.
Have an unread entry in a feed in that category.
Obtain the category ID from reader/api/0/subscription/list?output=json: user/-/label/Без категории.
POST to reader/api/0/mark-all-as-read with a valid auth header and POST token, s=user/-/label/Без категории, and a valid ts.
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.
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.
Activity
Fix lookup of the localised default category (FreshRSS#9543)