Skip to content

[3.0 & 2.1]: Duplicate packages in pacman - Missing token check? #8689

@sbulen

Description

@sbulen

Basic Information

If users click back while installing a mod, & try again, they get duplicate entries in pacman.

Shouldn't the token check prevent this from happening? I also thought there was a uniqueness check...

Image

The duplicate entries have been reported several times this morning on the forum:
https://www.simplemachines.org/community/index.php?msg=4191163

Steps to reproduce

  1. Attempt to install an SMF patch
  2. Instead of hitting "Proceed", hit your browser's BACK button...
  3. Attempt to install an SMF patch
  4. Instead of hitting "Proceed", hit your browser's BACK button...
  5. Attempt to install an SMF patch & hit OK this time...

We've seen a few of these as folks attempt to install the 2.1.5 patch & experience various errors.

I've confirmed in 2.1, I suspect (& have not yet confirmed) 3.0 will do the same.

Expected result

One successful install

Actual result

Duplicate entries in pacman as depicted above

Version/Git revision

2.1.5

Database Engine

All

Database Version

8.4.4

PHP Version

8.4.5

Logs

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions