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

[BUG] Package builder (Custom - Command) first Character deleted (2.12.0) #1536

Closed
LMS235 opened this issue Jul 13, 2023 · 6 comments · Fixed by #1542
Closed

[BUG] Package builder (Custom - Command) first Character deleted (2.12.0) #1536

LMS235 opened this issue Jul 13, 2023 · 6 comments · Fixed by #1542

Comments

@LMS235
Copy link
Contributor

LMS235 commented Jul 13, 2023

OCS Inventory version
Version : 2.12.0

Describe the bug
When a custom package is built, the command truncates the first character of the command. For example CPPRED.bat becomes PPRED.bat in the info file and the deploy does not work.

Example:
image

Info File:
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to "Deployment" => "Build" => "Windows" => "Others" => "Custom package" (probably also for all other types of packaging)
  2. Store an appropriate command (e.g. 1234.bat)
  3. Check the info File (or deployment) => "1234.bat" became "234.bat" and thus the command is not found of course

Currently, we can work around this by simply appending a character to the front, which is feasible as a workaround. But it must be fixed as soon as possible.

Expected behavior
The inputs must be adopted 1:1. This is clearly a bug in 2.12.0 (in 2.11.1 this still worked without problems).

Screenshots
see above

@LMS235 LMS235 changed the title [BUG] Package builder (Custom - Command) first Character deleted [BUG] Package builder (Custom - Command) first Character deleted (2.12.0) Jul 13, 2023
@charleneauger
Copy link
Member

Hi @LMS235 ,

I was able to identify and reproduce the problem only with the Execute a file option.
Can you confirm that this is also the case for you ?

We will fix it as soon as possible.

Best regards,
Charlene

@LMS235
Copy link
Contributor Author

LMS235 commented Jul 13, 2023

Hi @charleneauger , thank you for the quick response

So far, I have only been able to recreate it with "Execute a file". However, I have not tested all possibilities.

Here should be a 2.12.1 released as soon as possible!

@LMS235
Copy link
Contributor Author

LMS235 commented Jul 14, 2023

Or can you give me a "quick fix"?

@charleneauger
Copy link
Member

Hi @LMS235 ,

I made some fixes related to your issues.
You will find them in the following PR : #1542

Best regards,
Charlene

@LMS235
Copy link
Contributor Author

LMS235 commented Jul 19, 2023

@charleneauger thank you.
will this be a 2.12.1 then? Here I would have directly still a few adjustments of the German translation (#1535).

@LMS235
Copy link
Contributor Author

LMS235 commented Jul 19, 2023

tested --> work

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

Successfully merging a pull request may close this issue.

5 participants