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

The system allow duplicate "Asset Tag"

Open izombielandgit opened this issue 5 years ago • 5 comments

Please confirm you have done the following before posting your bug report:

Describe the bug The system allow duplicate "Asset Tag"

To Reproduce When I try to "Create New" asset with an existing asset tag, I will get a warning :"The asset tag must be unique.". But when I change one asset's asset tag to an existing asset tag("Edit Asset"), it can be saved without warning.

Expected behavior The asset tag must be unique.

Screenshots 20210512124103 this is a screen print form https://demo.snipeitapp.com/hardware

Server (please complete the following information): official demo https://demo.snipeitapp.com/hardware

Desktop (please complete the following information):

  • OS: win10
  • Browser: chrome
  • Version 90

izombielandgit avatar May 12 '21 05:05 izombielandgit

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

welcome[bot] avatar May 12 '21 05:05 welcome[bot]

Some time ago (in previous versions) I had the same problem. I can't repeat it now. If this is the case, then this is a bad mistake #8992

UserGoodtm avatar May 27 '21 18:05 UserGoodtm

I just checked it on my system. Duplicate tags are created! If you edit an asset. If you create a new asset, you can't create a duplicate tag. Снимок I have version 5.1.5-build 6029 (master). The demo site has a different software version-5.1.5-build 6082 (master). Developers pay attention to this error. It's not the first time she's appeared.

UserGoodtm avatar May 27 '21 19:05 UserGoodtm

Just a couple days ago this issue was addressed in this commit https://github.com/snipe/snipe-it/commit/b8d413a6b820b78e373a95c2cfc5fb860c2ce3b2. That's now in the demo, and in the develop branch for you to test. Please let us now how that go if any of you happen to test it.

inietov avatar May 27 '21 19:05 inietov

In the new version 5.1.5-build 6082 (master), the error is not reproduced

UserGoodtm avatar May 27 '21 19:05 UserGoodtm