HackDig : Dig high-quality web security articles for hacker

ERROR:I18nInventory could not translate key: Group

2015-01-26 21:30

Found in version 12.1.5.

If you find this error in the reporting log found at:

<...>Symantec Endpoint Protection Managerapachelogsreporting.log

If the reporting.log contains log entries like:

2015-01-09 14:24:01ERROR:I18nInventory could not translate key: Group
2015-01-09 14:24:09ERROR:I18nInventory could not translate key: Subnet

then you can fix this by looking at in <SEPM Home>InetpubReportingInventoryinventoryreport3.php

lines 460, 462, 464 and 466.

CAUSE

Translation is done twice: one at calling "printFirstColumn", and again in the function "printFirstColumn" again.

This is correct: the function does the translation:

function printFirstColumn($lookup) {
print "<td class=UCDTableHeader width='120'>".I18nInventory::translateInventory($lookup)."</td>";
}

So there is no need for a tranlation when calling the function, so replace lines 459 - 467:

if ($reporttype==PROFILE_UPTODATE && $reportflavor==GROUP) {
printFirstColumn(I18nInventory::translateInventory("COLUMN_GROUP_SLASH_DOMAIN"));
} else if ($reportflavor==SUBNET) {
printFirstColumn(I18nInventory::translateInventory("SUBNET"));
} else if ($reportflavor==GROUP) {
printFirstColumn(I18nInventory::translateInventory("GROUP"));
} else {
printFirstColumn(I18nInventory::translateInventory("UNDEFINED"));
}

into:

if ($reporttype==PROFILE_UPTODATE && $reportflavor==GROUP) {
printFirstColumn("COLUMN_GROUP_SLASH_DOMAIN");
} else if ($reportflavor==SUBNET) {
printFirstColumn("SUBNET");
} else if ($reportflavor==GROUP) {
printFirstColumn("GROUP");
} else {
printFirstColumn("UNDEFINED");
}

This is similar to where it was properly coded in firewallreport1.php and firewallreport1_guts.php.

And the errors will disappear.


Source: puorg-yek-etalsnart-ton-dluoc-yrotnevnin81irorre/sgolb/tcennoc/moc.cetnamys.www

“ERROR:I18nInventory could not translate key: Group”0 Comments

Submit A Comment

Name:

Email:

Blog :

Verification Code:

Announce

Share high-quality web security related articles with you:)

Tools

Tag Cloud