snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Obsolete Asset Assignment in Notifications

Open DaMa-IT opened this issue 1 year ago • 7 comments

Debug mode

Describe the bug

The notification system is incorrectly displaying assets that belong to a different company. This is causing confusion and preventing users from taking any actions.

Reproduction steps

  1. Log into Snipe-IT.
  2. Navigate to the notifications page.
  3. Click on a notification that indicates an asset requiring acceptance.
  4. Observe the asset details and note the assigned company.
  5. Verify that the assigned company does not match the user's company.

Expected behavior

The notification should only display assets that belong to the user's company. in our case we only have one company profile created and we have not enabled the support for multiple companies

Screenshots

image_720 image_720

Snipe-IT Version

v7.0.13 build 15514 (gdc0949da7)

Operating System

Ubuntu

Web Server

NGINX

PHP Version

8.1.2-1ubuntu2.19

Operating System

Windows 11 Pro 23H2

Browser

Chrome

Version

Version 129.0.6668.60 (Official Build) (64-bit)

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

DaMa-IT avatar Oct 03 '24 10:10 DaMa-IT

@snipe Please have a look when you can. Thank you.

DaMa-IT avatar Oct 11 '24 13:10 DaMa-IT

Without FMCS, I can't reproduce this.

Screenshot 2024-10-11 at 2 19 51 PM Screenshot 2024-10-11 at 2 20 03 PM Screenshot 2024-10-11 at 2 20 15 PM

snipe avatar Oct 11 '24 13:10 snipe

Hi Snipe, We never enabled FMCS actually and I just double checked and its not enabled. Could this be caused by a deleted asset which were assigned to a user ?

DaMa-IT avatar Oct 11 '24 14:10 DaMa-IT

It's possible? I know we did some cleanup there a while back, but I don't think it would have fixed existing data (specifically adding a checkin action when an asset is deleted)

snipe avatar Oct 11 '24 15:10 snipe

I see. What do you suggest at this point ? I even purged the deleted records hoping that it might clear any remains but that didn't work either. Its really annoying the the user as the notification banner cannot be cleared or resolved.

DaMa-IT avatar Oct 11 '24 15:10 DaMa-IT

Well, I wouldn't have purged those, since now we don't know what their IDs were in the assets table. My guess is that there are vestigial records in the checkout_acceptance table, but without knowing which asset IDs are gone, it will be hard to pull them out.

snipe avatar Oct 11 '24 16:10 snipe

Can we like have an option to ignore and clear the notification banner? or even better if we can control whether the user has to accept the asset or not.

DaMa-IT avatar Oct 18 '24 08:10 DaMa-IT

or even better if we can control whether the user has to accept the asset or not.

That's determined via the "require asset acceptance" setting.

I believe @marcusmoore is working on a PR for clearing out older acceptance requests.

snipe avatar Jun 09 '25 14:06 snipe