fusiondirectory-plugins issueshttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues2018-04-19T07:30:00Zhttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5811Missing SUBSTR matching rules for DN foreign keys2018-04-19T07:30:00ZCôme ChillietMissing SUBSTR matching rules for DN foreign keys### Description
<!-- Required -->
<!-- Description of the issue -->
The fields having a foreignKey on DN values need a SUBSTR matching rule.
See fd#5799### Description
<!-- Required -->
<!-- Description of the issue -->
The fields having a foreignKey on DN values need a SUBSTR matching rule.
See fd#5799FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5791Add an option to inherit localboots from group2018-03-20T11:08:35ZCôme ChillietAdd an option to inherit localboots from groupThe idea is to be able to activate the OPSI tab on a system only to add some localboots, without removing the ones activated in the group, if any.
<!-- required -->
### Actual behavior
<!-- What actually happens -->
If you activate the...The idea is to be able to activate the OPSI tab on a system only to add some localboots, without removing the ones activated in the group, if any.
<!-- required -->
### Actual behavior
<!-- What actually happens -->
If you activate the OPSI tab on a system which is in a group with the OPSI tab active as well, you can still inherit the profile&server, but the localboots will be overridden.
### Expected behavior
<!-- What you expect to happen-->
Have some way to express that you want to inherit localboots and add your own on top of that.
### Step by step description of new behaviour
<!-- Required -->
1. Put a system in a group
2. Activate OPSI on the group
3. Add some localboots to the group
4. Open the system and activate the OPSI tab
5. Somehow select that you want to inherit the localboots (this should also force to inherit the server)
6. Add some localboots specific to the system
### Benefits
<!-- optional -->
<!-- What benefits will be realized by the code change? -->
Being able to add localboots both on groups and systems and install all of them.
### Possible Drawbacks
<!-- optional -->
<!-- What are the possible side-effects or negative impacts of the code change? -->
This is getting quite confusing with all the inherit options.
And it does not encourage people to use profiles which is the clean way to handle OPSI products.FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5787Add an option to inherit profile from group when OPSI tab is activated2018-03-13T09:35:24ZCôme ChillietAdd an option to inherit profile from group when OPSI tab is activatedAdd an "inherited" value in the profile selection of the OPSI tab when the system is in a group which has a profile selected.
### Actual behavior
If you activate the OPSI tab you have to chose a profile or None.
### Expected behavior
...Add an "inherited" value in the profile selection of the OPSI tab when the system is in a group which has a profile selected.
### Actual behavior
If you activate the OPSI tab you have to chose a profile or None.
### Expected behavior
Being able to inherit the profile and only override the localboots
### Step by step description of new behaviour
<!-- Required -->
1. Put the system in a group with OPSI activated and a profile selected
2. Activate the OPSI tab on the system
3. Select the "inherited" value for the profile
### Benefits
<!-- optional -->
<!-- What benefits will be realized by the code change? -->
Inherit the profile from the group but specify some localboots. It makes it easier to change profile for the whole group later on.
### Possible Drawbacks
<!-- optional -->
<!-- What are the possible side-effects or negative impacts of the code change? -->
### Applicable Issues
<!-- optional -->
<!-- Enter any applicable Issues here -->FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5782Groups workstation erase localboots that are on machine2018-04-05T11:53:47ZJonathan SwaelensGroups workstation erase localboots that are on machine## Descriptive title for this enhancement
I have a workstation group with a default OPSI baseline
I deploy the group baseline and after I add a localboot (on demand) on one of the machine inside the group and deploy it with OPSI.
If I...## Descriptive title for this enhancement
I have a workstation group with a default OPSI baseline
I deploy the group baseline and after I add a localboot (on demand) on one of the machine inside the group and deploy it with OPSI.
If I do redeploy the group baseline, it erase the localboot I have put manually on the machine that is inside the group
### Actual behavior
If I do redeploy the group wth OPSI it erase the the localboot.
### Expected behavior
When I redeploy the group it would be better that the groups products are merged with the localboot of the machine.FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5765OPSI tab behaves badly when Mac address is empty2018-04-05T11:59:55ZCôme ChillietOPSI tab behaves badly when Mac address is emptyWhen Mac address is empty (for instance at creation) OPSI tab sends requests with an empty array and gets too many results for lastSeen information.When Mac address is empty (for instance at creation) OPSI tab sends requests with an empty array and gets too many results for lastSeen information.FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5764When importing OPSI hosts, have an option to import the packages associated2018-04-05T11:57:42ZbmortierWhen importing OPSI hosts, have an option to import the packages associated### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to e...### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to ensure against regressions
## Descriptive title for this enhancement
When importing an opsi object from the opsi import we need to import the packages associated to this opsi object and add it the the localboot list in the fusiondirectory opsi tab
### Actual behavior
The packages are not imported
### Expected behavior
the import of an opsi object with the opsi import should also import all the packages installed on this object
### Step by step description of new behaviour
<!-- Required -->
1. Import an object with the opsi import
2. Go to the fd system created by this import
3. the opsi tab localboot list should contains the list of packages
### Benefits
Be able to import a opsi object completely with all his packages and their properties
### Possible Drawbacks
None seen
### Applicable Issues
import opsi object in full to fusiondirectoryFusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5763Add template selection into opsi import2018-01-16T14:27:26ZbmortierAdd template selection into opsi import### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to e...### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to ensure against regressions
## Descriptive title for this enhancement
Add the possibility to select a template when doing an opsi import
### Actual behaviour
There is no possibility to use a template with the opsi import
### Expected behaviour
To be able to select a system template when making an opsi import
### Step by step description of new behaviour
<!-- Required -->
1. Select a server
2. Select a template
3. Start the import
### Benefits
Be able to apply a systems template and prefill other systems tab when importing from a opsi server
### Possible Drawbacks
None found right now
### Applicable IssuesFusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5752Renaming a workstation with opsi tab creates another workstation with the new...2018-07-19T10:45:14ZJonathan SwaelensRenaming a workstation with opsi tab creates another workstation with the new name in OPSIRenaming a workstation with opsi tab creates another workstation with the new name in OPSI
### Actual behavior
When we rename a machine it creates a new one in OPSI
### Expected behavior
It would be better to see if we can rename it ...Renaming a workstation with opsi tab creates another workstation with the new name in OPSI
### Actual behavior
When we rename a machine it creates a new one in OPSI
### Expected behavior
It would be better to see if we can rename it in OPSI
### Step by step description of new behaviour
1. Changing the CN
2. Rename the workstation in OPSI throught the webserviceFusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5742OPSI tab shows a failure to fetch logs for templates2018-07-19T10:57:49ZJonathan SwaelensOPSI tab shows a failure to fetch logs for templates### Description
When I edit or use a template it show an error
### Distribution Name and Version
Ubuntu 16.04.3 LTS
### FusionDirectory Version
1.3-dev
### Plugin with the defect
Opsi
### PHP version used
7.0.22
### Origin of p...### Description
When I edit or use a template it show an error
### Distribution Name and Version
Ubuntu 16.04.3 LTS
### FusionDirectory Version
1.3-dev
### Plugin with the defect
Opsi
### PHP version used
7.0.22
### Origin of php packages
Official from Ubuntu
### Steps to Reproduce
<!-- Required -->
1. Create a template with an %askme% in mac address
2. Try to create an object from the template or edit the template
3. Error appear
```
Request error: No client module can handle action System.list_logs for target %askme%
```
**Expected behavior:**
No error
**Actual behavior:**
There is an error
**Reproduces how often:**
100%FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5738Add opsi stat tab to the dashboard2018-04-05T12:18:33ZbmortierAdd opsi stat tab to the dashboard### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to e...### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to ensure against regressions
## Descriptive title for this enhancement
Add opsi stat tab to the dashboard
### Actual behavior
No stats for opsi in the dashbaord
### Expected behavior
Get basic information on the opsi objects and servers inside the dashboard
### Step by step description of new behaviour
1. List of opsi profiles
2. Number of computers associated to a particular profile
3. NUmber of groups having the opsi tab
4. Number of opsi servers
### Benefits
Basic stats of the opsi objects inside FusionDirectory
### Possible Drawbacks
Need to have all the information stored into ldap to be sure the calculation are right and fast
### Applicable Issues
Each time we need to know about basic information for opsiFusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5737Add last date of connection of a client inside the opsi client tab2018-04-05T12:08:05ZbmortierAdd last date of connection of a client inside the opsi client tab### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to e...### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to ensure against regressions
## Descriptive title for this enhancement
add last date of connection of a client inside the opsi client tab
### Actual behavior
There is no information about the last connexion of a opsi client to the opsi server
### Expected behavior
See the last connexion of a opsi client to the opsi server in the opsi tab
### Step by step description of new behaviour
<!-- Required -->
1. Click on the opsi tab in an opsi client
2. See a text line with the latest opsi client connexion
3. Store the info in a ldap attributes
### Benefits
Be able to see of the client as connected recently
### Possible Drawbacks
Lots of call to the webservice, in this case
### Applicable Issues
detect when a set of client doesn't connect anymoreFusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5731Add a tab in the opsi plugin on a system to show log for this computer2018-04-06T12:17:33ZbmortierAdd a tab in the opsi plugin on a system to show log for this computer### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to e...### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to ensure against regressions
## Descriptive title for this enhancement
Add a tab in the opsi plugin on a system to show log for this computer.
We need to be able to show the log in a tab **opsi log** on a system that has the opsi enabled
### Actual behavior
We are not able to get the log related to an opsi system
### Expected behavior
* Be able to get the latest log entries for a computer in a **opsi log** tab on a opsi enabled computer.
* Be able to select the level of verbosity of the log
* Be able to select the kind of log we want to see for this system
### Step by step description of new behaviour
<!-- Required -->
1. Got to the **opsi log** tab
2. Select the verbosity level
3. Select the log we want to see
### Benefits
Be able to see the various log and level from the **opsi log** tab
### Possible Drawbacks
Getting to much info from the webservice and not be able to filter it
The method from the webservice seems to not allow filtering by level and select to log for one operations from start to finish
https://download.uib.de/opsi_stable/doc/html/en/opsi-manual/opsi-manual.html#opsi-manual-api-datastructure-opsi
log_read
Reads a opsi log file from the server.
Parameters: logType *objectId *maxSize
Possible logTypes are instlog (opsi-winst), clientconnect (opsiclientd), userlogin, bootimage, opsiconfd. The objectId is normally the clientId to which the log belongs.
### Applicable IssuesFusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5727FusionDirectory display an PHP error when I deactivate "opsi client" tab on a...2018-08-08T20:36:00ZJonathan SwaelensFusionDirectory display an PHP error when I deactivate "opsi client" tab on a workstation### Description
FusionDirectory display an PHP error when I deactivate "opsi client" tab on a workstation
### Distribution Name and Version
Ubuntu 16.04.1 LTS
### FusionDirectory Version
1.3-dev
### Plugin with the defect
Plugin O...### Description
FusionDirectory display an PHP error when I deactivate "opsi client" tab on a workstation
### Distribution Name and Version
Ubuntu 16.04.1 LTS
### FusionDirectory Version
1.3-dev
### Plugin with the defect
Plugin OPSI
### PHP version used
7.0.22
### Origin of php packages
Official packages from Ubuntu
### Steps to Reproduce
1. Display the PHP errors in the configuration
2. Create a workstation with an "opsi client" tab activate
3. Add your workstation in an ogroup with an "opsi client" activate
4. Edit your workstation and deactivate the "opsi client" tab
5. You see the PHP error
**Expected behavior:**
No PHP error
**Actual behavior:**
We have an php error
**Reproduces how often:**
100%
### Additional Information
PHP error: htmlentities() expects parameter 1 to be string, array given (/usr/share/fusiondirectory/include/simpleplugin/class_Attribute.inc, line 563)
```
=== Trace ===
Trace[1]:function htmlentities
File : /usr/share/fusiondirectory/include/simpleplugin/class_Attribute.inc
Line : 563
Type : -
array("config-win-base|setup","hwaudit|setup"),"2","UTF-8"
Trace[2]:class Attribute / function renderAttribute
File : /usr/share/fusiondirectory/include/simpleplugin/attributes/class_SetAttribute.inc
Line : 225
Type : method
array(),"1"
Trace[3]:class SetAttribute / function renderAttribute
File : /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc
Line : 846
Type : method
array(),"1"
Trace[4]:class simplePlugin / function renderAttributes
File : /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc
Line : 871
Type : method
"1"
Trace[5]:class simplePlugin / function inheritanceDisplay
File : /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc
Line : 689
Type : method
-
Trace[6]:class simplePlugin / function execute
File : /usr/share/fusiondirectory/include/simpleplugin/class_simpleTabs.inc
Line : 198
Type : method
-
Trace[7]:class simpleTabs / function execute
File : /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc
Line : 575
Type : method
-
Trace[8]:class simpleManagement / function execute
File : /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc
Line : 1338
Type : method
-
Trace[9]:class simpleManagement / function mainInc
File : /usr/share/fusiondirectory/plugins/admin/systems/main.inc
Line : 21
Type : static
"systemManagement"
Trace[10]:function require
File : /usr/share/fusiondirectory/html/main.php
Line : 286
Type : -
"/usr/share/fusiondirectory/plugins/admin/systems/main.inc"
=== /Trace ===
```FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5702Making the ip non mandatory in the opsi backend plugin when people don 't man...2018-04-05T12:11:46ZbmortierMaking the ip non mandatory in the opsi backend plugin when people don 't manage dns and dhcp with opsi### Description
#### opsi way of working
on opsi you can create client without ip and without mac foolowing the configuration of your opsi server.
as the mac is not mandatory in FusionDirectory, the only aspect that is divergent from ...### Description
#### opsi way of working
on opsi you can create client without ip and without mac foolowing the configuration of your opsi server.
as the mac is not mandatory in FusionDirectory, the only aspect that is divergent from opsi is the forced ip address in FusionDirectory
### Description of the Change
look for the draft specs and ideas here https://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/wikis/OPSI-ip-issues
CheersFusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5691Lots of styling error in the code2019-01-10T09:40:20ZbmortierLots of styling error in the code### Description
Clean our code to follow our coding standard
### FusionDirectory Version
1.3-dev
### PHP version used
5.6
**Expected behavior:**
php code sniffer doesnt detect any errors
**Actual behavior:**
lots of code style e...### Description
Clean our code to follow our coding standard
### FusionDirectory Version
1.3-dev
### PHP version used
5.6
**Expected behavior:**
php code sniffer doesnt detect any errors
**Actual behavior:**
lots of code style errors
**Reproduces how often:**
100%FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5681The opsi plugin needs the department management dropdown2018-07-19T10:38:18ZbmortierThe opsi plugin needs the department management dropdownHello,
the opsi plugin doesnt have the department management dropdown
Cheers
Hello,
the opsi plugin doesnt have the department management dropdown
Cheers
FusionDirectory 1.3Côme ChillietCôme Chilliethttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5655PHP error in OPSI import2018-07-19T10:55:01ZJonathan SwaelensPHP error in OPSI importHello, I have a php error when I do an opsi import.
I add a screenshot.
Cheers.
* Changesets:
* Revision 763a7d5e6b916aa1e172553d74025e5aa7836b88 by Côme Chilliet on 2017-07-04T09:11:21.000Z:
```
Fixes #5655 PHP error in OPSI import...Hello, I have a php error when I do an opsi import.
I add a screenshot.
Cheers.
* Changesets:
* Revision 763a7d5e6b916aa1e172553d74025e5aa7836b88 by Côme Chilliet on 2017-07-04T09:11:21.000Z:
```
Fixes #5655 PHP error in OPSI import when IP is empty
```
* Revision e09d6fc716cc2ae1dd4e4f52dad0d26c51d476cb by Côme Chilliet on 2017-07-20T16:34:59.000Z:
```
Fixes #5655 PHP error in OPSI import when IP is empty
```
* Uploads:
* ![opsi-import-error-1.2](/uploads/379c56277952a15debb50a71de81e841/opsi-import-error-1.2.png)FusionDirectory 1.3Jonathan SwaelensJonathan Swaelenshttps://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/issues/5596Allow to setup OPSI product outside of profiles2017-12-08T15:12:31ZJonathan SwaelensAllow to setup OPSI product outside of profiles### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to e...### Requirements
* Filling out the template is required. Any Enhancement request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
* All new code requires tests to ensure against regressions
## Descriptive title for this enhancement
Allow to activate products on an OPSI system without going through a profile
### Actual behavior
not implemented
### Expected behavior
Be able to deploy a specific package on a OPSI client
### Step by step description of new behaviour
<!-- Required -->
1. Go to the opsi client tab
2. Select a software to be installed / updated from the software list on the opsi client tab
3. This software is stored on the client/group
4. More than one software can be in this software list
5. When going to action trigger install, the profile is merged with the list of software from the opsi tab
### Benefits
Easy to use for installing/updating a specific package without need to create or update a profile, or when you only need to deploy/update a specific package in a opsi client
### Possible Drawbacks
desynchronization between profile list of software and the action that has been done, because the software is not inside a software list
### Applicable Issues
every situation where you have to update / install only a software on a opsi clientFusionDirectory 1.3Côme ChillietCôme Chilliet