FieldHasHelpTextRepository.privateHasFieldHelpText() Missing Trim Of Language
(Doc ID 2425515.1)
Last updated on OCTOBER 10, 2022
Applies to:
Oracle Public Sector Revenue Management - Version 2.5.0.0.0 and laterOracle Utilities Framework - Version 4.3.0.1.0 to 4.3.0.5.0 [Release 4.3]
Information in this document applies to any platform.
Goal
There is an issue with the function FieldHasHelpTextRepository.privateHasFieldHelpText() and the caching of fields. In customer's environment, they have the language code "DK" which is persisted in the database as "DK " because if the char(3) datatype. Looking in the code, it looks like there is a missing trim in the method which should be added in line 67, where the fields are put in the cache. Right now this method is not using the cache when having the language code to be "DK".
/* */ private Boolean privateHasFieldHelpText(String fieldName, String language) {
/* 59 */ if ((language == null) || (fieldName == null)) {
/* 60 */ return Boolean.valueOf(false);
/* */ }
/* 62 */ synchronized (this) {
/* 63 */ List fields = (List)fieldHasHelpByLanguage.get(language.trim());
/* 64 */ if (fields == null) {
/* 65 */ fields = getFields(language);
/* 66 */ logger.debug("Caching Field Help Language Info, language='" + language + "'");
/* 67 */ fieldHasHelpByLanguage.put(language, fields);
/* */ }
/* 69 */ return Boolean.valueOf(fields.indexOf(fieldName.trim()) != -1);
/* */ }
/* */ }
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |