Bug 521866 - Rating package reviews' usefulness fails with HTTP status code 400
Summary: Rating package reviews' usefulness fails with HTTP status code 400
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 6.6.5
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-20 13:47 UTC by Lianna
Modified: 2026-08-17 13:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lianna 2026-06-20 13:47:52 UTC
DESCRIPTION
Hello,

I just attempted to rate the usefulness of a review of the Tokodon program in Discover. Instead of successfully rating the review, it displayed a window with the error message "Error while submitting usefulness: Error transferring https://odrs.gnome.org/1.0/reviews/api/upvote - server replied with status code 400".

STEPS TO REPRODUCE
1. Open Discover
2. Navigate to a program with a number of reviews, e. g. Tokodon
3. Open the reviews
4. Attempt to rate a review

OBSERVED RESULT
An error message dialogue appears: "Error while submitting usefulness: Error transferring https://odrs.gnome.org/1.0/reviews/api/upvote - server replied with status code 400"

EXPECTED RESULT
The review's usefulness is rated.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux forky/sid
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Kernel Version: 7.0.12+deb14.1-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: AMD Radeon RX 5700 XT

ADDITIONAL INFORMATION

This occurs on other packages too, but I have not tested this extensively enough to find out whether this affects all packages or only some.
Comment 1 Antti Savolainen 2026-06-20 17:35:13 UTC
Can confirm. The first click on Yes or No seems to go through fine, but any update returns an error.

Operating System: Arch Linux 
KDE Plasma Version: 6.7.80
KDE Frameworks Version: 6.28.0
Qt Version: 6.12.0
Kernel Version: 7.0.12-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 2600 Six-Core Processor
Memory: 64 GiB of RAM (62.7 GiB usable)
Graphics Processor: AMD Radeon RX 5700
Comment 2 Taras Oleksyn 2026-07-05 03:47:19 UTC
Hi,
I've started to work on this one.
Comment 3 Bug Janitor Service 2026-07-17 04:24:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1362
Comment 4 Nate Graham 2026-08-17 13:31:03 UTC
Git commit c022ef032bd47be3d48e649522b359844c8c271c by Nate Graham, on behalf of Taras Oleksyn.
Committed on 17/08/2026 at 13:30.
Pushed by ngraham into branch 'master'.

Make package reviews usefulness persistent

The ODRS API does not allow re-submitting a vote, and returns an error 400
when the user tries to do that.

To avoid this, save  a list of which reviews a user has voted on and disable
the `Yes/No` buttons if the vote was submitted.

Date like the following will be saved in the state data:

[ReviewVotes]
664232=2
675199=1
677028=1
FIXED-IN: 6.8.0

M  +2    -0    discover/qml/ReviewDelegate.qml
M  +32   -1    libdiscover/ReviewsBackend/ReviewsModel.cpp
M  +3    -0    libdiscover/ReviewsBackend/ReviewsModel.h

https://invent.kde.org/plasma/discover/-/commit/c022ef032bd47be3d48e649522b359844c8c271c