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

License deploy to asset issue

Open chansinshan opened this issue 8 years ago • 13 comments

Expected Behavior (or desired behavior if a feature request)

An asset was deployed to a location. And the license is checked out to this asset. The license only show the asset ID and the user field is blank.


Actual Behavior

The asset show the user name in the user field with the asset ID.


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


Provide answers to these questions:

  • Is this a fresh install or an upgrade? Upgrade
  • Version of Snipe-IT you're running v4.1.8-pre - build 3034 (master)
  • Version of PHP you're running PHP Version 7.0.22
  • Version of MySQL/MariaDB you're running mariadb-server-10.1
  • What OS and web server you're running Snipe-IT on Ubuntu 16.04.3 LTS / PHP Version 7.0.22
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) Install.sh
  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console. no
  • Confirm whether the error is reproduceable on the demo: https://snipeitapp.com/demo. Cannot reproduce this error, because the asset cannot check out to location
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help

chansinshan avatar Dec 07 '17 07:12 chansinshan

I am able to reproduce it as well.

Diniver avatar Dec 07 '17 09:12 Diniver

Hi @Diniver , do you mean you can reproduce the same error result?

chansinshan avatar Dec 07 '17 09:12 chansinshan

yes. Even in activity history when I checked the license in, it shows that the license was checked in from a user not an asset. image

Diniver avatar Dec 07 '17 09:12 Diniver

I don't understand this issue - can someone clarify?

snipe avatar Dec 07 '17 10:12 snipe

No problem. It took me some time to get it as well. So: If asset named PC is checked out to location Room1 and after that you check out license Office to this asset (PC) then your license is assigned to a user as well. In my case Tihomir. The idea is that user field to stay blank when you check out licenses to assets

image

Diniver avatar Dec 07 '17 10:12 Diniver

@Diniver Thank you for your explain.

chansinshan avatar Dec 07 '17 14:12 chansinshan

@snipe I tried checkin the license and the asset. Then checkout the license to this asset again. And the asset still remain "Ready for checkout" status. The license will return to normal only display the asset ID without user ID.

That means if the asset is checkout for location or asset. The license's error will come out.

Hope you understand my bad English.

chansinshan avatar Dec 08 '17 01:12 chansinshan

The idea is that user field to stay blank when you check out licenses to assets

If the asset is checked out to that user though, how is that not a good thing to display?

snipe avatar Dec 08 '17 05:12 snipe

I tested on the your demo site. If I assigned a license to an asset. The license user field will show as the asset deployed location.

But my self hosted system is not show the asset deployed location. Is mistake to show the user name. And that user is not related to the asset.

chansinshan avatar Dec 08 '17 06:12 chansinshan

So you cannot reproduce it on the demo?

snipe avatar Dec 08 '17 21:12 snipe

Yes, I just checked out the asset "460674071" to location "Amaraview". default

Then I deployed the office license to this asset and it show the user as "Braxton Carroll". But this asset is not related to this user. default

chansinshan avatar Dec 11 '17 01:12 chansinshan

This should be fixed on dev now

snipe avatar Dec 12 '17 13:12 snipe

@snipe Thank you.

chansinshan avatar Dec 13 '17 01:12 chansinshan