Repository navigation
Description
SeerrNG v3.72.37 (437b40a, also current main) with ROMarrNG v0.14.21
as the Retro provider and IGDB catalogue. Two users: an admin, and a user
whose only permission is Request.
Steps to reproduce
- As the admin, request a Retro title for one system, for example
Fire Emblem: The Sacred Stones (IGDB 1440) ongba, and let it import.
The request becomes Available and the catalogue card shows
In library. - As the second user, open the same title. The card and the system picker
both show In library, and Request is still enabled. Request it
for the same system. - Approve it as the admin.
Expected: step 2 is refused, the way SeerrNG refuses a second movie,
series, book or comic request. Failing that, approval should warn that the
title is already available on that system.
Actual: SeerrNG creates a pending request (201). Approval sends it to
ROMarrNG, which searches, grabs the same release and fails at import with
"already in the library". SeerrNG then shows the second request as
Failed: "The download could not be imported into the library."
Cause
softwareRoutes.post('/') in server/routes/software.ts limits its
duplicate query to the requesting user
(lines 1545-1578):
.where('request.requestedById = :userId', { userId: req.user.id })The rest of that query already defines "the same title and target":
catalogue provider and key, category, system, selection, PC variant, and
an active or available status. Nothing else in the route looks at other
users' requests or at the provider's library.
approveSoftwareRequest
checks only that the request is pending, and the Approve button in
Request Status shows no availability.
The catalogue already has the answer.
addTrackedRequestAvailability
reads every user's requests and addCatalogAvailability asks ROMarrNG's
library lookup, which is why the card says In library. In
src/components/SoftwareCatalog/index.tsx, the card's
Request button
and the modal's
okDisabled
ignore it.
The
software acquisition docs
say "Repeating a request for the same title and target is rejected instead
of creating a duplicate SeerrNG request." That reads as global, but the code
applies it per user. Every other request type in server/entity/MediaRequest.ts
refuses duplicates across users, for example
"Request for this media already exists."
Suggested fix
- In
POST /, run the existing query again without therequestedById
condition. Return 409 when another user's request for the same target
is active or available, and keep the current message when the match is
the requester's own. - Also return 409 when the provider's library lookup lists the chosen
system inavailableSystemsand no patch is selected. A patch request
is not satisfied by the base game, as ROMarrNG already assumes. - Repeat both checks in
approveSoftwareRequest, because the library can
change while a request waits. Showing the availability beside
Approve would also do. - In the request modal, disable Request or show a warning when
selectedGame.availableSystemsincludesselectedSystem, or the title
is tracked for that system.
An admin setting could keep today's behaviour for installations that want
per-user copies. I found no existing setting or issue for this.
Activity
github-actions commentedon Nov 17, 2026
Possible duplicate detected
This issue may be a duplicate of the following (detected via semantic similarity + LLM review):
A maintainer will review this. If this is not a duplicate, no action is needed.