Can't activate packages with automatic method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: OCSReports |
Fix Released
|
Medium
|
Erwan |
Bug Description
Hi,
Automatic method to activate packages on redistribution group don't work:
HTTPS_SERV POST value isn't used and vérification is always made with config value
Here is a little fix that check if $protectedPost[
In ms_tele_
---
$protectedPost[
$protectedPost[
---
with
---
if (!isset(
$protected
}
if (!isset(
$protected
}
---
Changed in ocsinventory-ocsreports: | |
assignee: | nobody → Erwan (airoine) |
Changed in ocsinventory-ocsreports: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in ocsinventory-ocsreports: | |
status: | Confirmed → Fix Committed |
Changed in ocsinventory-ocsreports: | |
status: | Fix Committed → Fix Released |
Hello Yves
Thanks a lot for your help. This bug is confirmed.
Regarding your patch, I think it's better if we update this condition:
if (!isset( $protectedPost[ 'FILE_SERV' ]) or !isset( $protectedPost[ 'HTTPS_ SERV']) ){
...
}
by
if ((!isset( $protectedPost[ 'FILE_SERV' ]) and $protectedPost[ 'choix_ activ'] == 'MAN') $protectedPost[ 'FILE_SERV_ REDISTRIB' ]) and $protectedPost[ 'choix_ activ'] == 'AUTO') or !isset( $protectedPost[ 'HTTPS_ SERV']) ){
or (!isset(
...
}
What do you think about that?
Best regards
Erwan