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

[BUG] License check in goes to wrong target

Open Diniver opened this issue 7 years ago • 16 comments

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

Describe the bug When checking in a license from user/asset, does not appear in user/asset history. image

To Reproduce Steps to reproduce the behavior:

  1. Check out license to user/asset
  2. Check in license
  3. Open user history - you can see only check out

Expected behavior User/asset history should display full trace for check in and check out.

Screenshots image

image

Server (please complete the following information):

  • Snipe-IT Version - v4.7.7 build 4160 (gb8f7cd81e)
  • OS: Ubuntu 18.04.3 LTS
  • Web Server: Apache 2.4.29
  • PHP Version 7.2.19

Additional context Reproducible in demo website.

I am fixing the problem manually by editing the action_logs sql table. Changing target_id and target_type to the appropriate values.

P.S. I am not sure if it was design that way. I believe it was not acting like that in previous patches.

Regards, Dinvier

==EDIT== I did some digging and enabling debug mode. After check in the resulst are as follow: image

Diniver avatar Sep 19 '19 09:09 Diniver

Hi all, Do you have any update of this?

Diniver avatar Sep 24 '19 08:09 Diniver

I have ran an old version (4.6.10) and there everything is fine: image

Diniver avatar Oct 28 '19 16:10 Diniver

In version 4.8.0 the problem still persist.

Diniver avatar Dec 16 '19 12:12 Diniver

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Feb 14 '20 12:02 stale[bot]

The bug still persist.

Diniver avatar Feb 14 '20 13:02 Diniver

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

stale[bot] avatar Feb 14 '20 13:02 stale[bot]

The bug still persist in version 4.9.0

Diniver avatar Mar 05 '20 12:03 Diniver

The bug still persist in version 4.9.1 @snipe Would you be able to have a look?

Diniver avatar Apr 09 '20 09:04 Diniver

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Jun 09 '20 01:06 stale[bot]

The bug still persist.

Diniver avatar Jun 09 '20 07:06 Diniver

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

stale[bot] avatar Jun 09 '20 07:06 stale[bot]

Issue still occurring and reproducible in demo website

Version v4.9.3 - build 4395

image

Diniver avatar Jul 15 '20 16:07 Diniver

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Sep 13 '20 17:09 stale[bot]

Still reproducible in Version v4.9.4 - build 4437

image

@snipe is there any chance this will be fixed for 5.0?

Diniver avatar Sep 14 '20 07:09 Diniver

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

stale[bot] avatar Sep 14 '20 07:09 stale[bot]

Issue solved in 5.0.1

Diniver avatar Oct 22 '20 07:10 Diniver