Skip to content

Software requests: another user can request a title that is already requested or in the library #702

Closed

Description

@Z3l20

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

  1. As the admin, request a Retro title for one system, for example
    Fire Emblem: The Sacred Stones (IGDB 1440) on gba, and let it import.
    The request becomes Available and the catalogue card shows
    In library.
  2. 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.
  3. 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

  1. In POST /, run the existing query again without the requestedById
    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.
  2. Also return 409 when the provider's library lookup lists the chosen
    system in availableSystems and no patch is selected. A patch request
    is not satisfied by the base game, as ROMarrNG already assumes.
  3. Repeat both checks in approveSoftwareRequest, because the library can
    change while a request waits. Showing the availability beside
    Approve would also do.
  4. In the request modal, disable Request or show a warning when
    selectedGame.availableSystems includes selectedSystem, 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

  1. github-actions commented on Nov 17, 2026

    @github-actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions