Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset Transfering removes license #18506

Open
2 tasks done
ke029ke opened this issue Dec 9, 2024 · 3 comments
Open
2 tasks done

Asset Transfering removes license #18506

ke029ke opened this issue Dec 9, 2024 · 3 comments
Labels

Comments

@ke029ke
Copy link

ke029ke commented Dec 9, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.17

Bug description

The problem has already been described here

When transfers computers, if the number of licenses = 1, the license is sent to the trash bin. This happens with BOX, OEM licenses, the number of which is always = 1. Because of this, there is a danger of losing data on these licenses if you empty the trash.
This is likely due to the fact that during migration the old license is deleted and a new one is created in another object.

Video

Relevant log output

Page URL

No response

Steps To reproduce

  1. Go to Assets > Computers
  2. Create a computer in the "Root entity"
  3. Add and install softwares/licenses
  4. Choose a transfer template (standart rule "complete") and an entity ("Root entity") to transfer the PC
  5. Go to Management>Licenses, сhoose a trash. There will be a license in the trash and the "Number" field will increase by 1
  6. If you empty the trash, the license information will be lost

Your GLPI setup information

GLPI 10.0.17 ( => /var/www/html/glpi)
Installation mode: TARBALL
Current language:en_GB

Anything else?

Sorry, I am writing through a translator

@trasher
Copy link
Contributor

trasher commented Dec 9, 2024

I still cannot reproduce on a fresh install.

Please provide all information to reproduce from a fresh install.
Also try without any plugin.

@ke029ke
Copy link
Author

ke029ke commented Dec 9, 2024

I still cannot reproduce on a fresh install.

Please provide all information to reproduce from a fresh install. Also try without any plugin.

This is a fresh installation in Docker (diouxx image), without plugins and with default settings. Docker runs on Ubuntu 24.04.1 LTS. My main GLPI on Ubuntu 24.04.1 LTS (without Docker) also has the same bug.
The easiest way to reproduce this bug is to move the computer into the same entity. It is important that the Numbers field = 1; if the value is higher than 1, then there are no problems, it is transferred normally. This is why BOX and OEM licenses pose a problem.

@ke029ke
Copy link
Author

ke029ke commented Dec 17, 2024

I still cannot reproduce on a fresh install.

Please provide all information to reproduce from a fresh install. Also try without any plugin.

I made another short video from the moment of installing the latest version of GLPI until the bug occurred. GLPI is running in Docker. Additional entity "A" is created so that the "add to transfer list" option becomes active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants