Task #2781
closedImprove configuration file reloading.
100%
Description
Now, if configuration file is not present at the time of startup or during dll runtime, the configuration monitoring thread is not started or is terminated.
The goal is to improve this behavior so that password filter is able to recover from this state.
Updated by Ondrej Husník over 3 years ago
- Status changed from New to In Progress
Updated by Ondrej Husník over 3 years ago
- % Done changed from 0 to 80
PF is now able to recover from the state of missing configuration file. Beside this change, there is newly added support of setting the config file location through environmental variable BCV_PWF_CONFIG_FILE_PATH. If set and the file at this path exists, it is used. Otherwise there is used default location at c:\CzechIdM\PasswordFilter\etc\PasswordFilterConfig.cfg.
Updated by Ondřej Kopr over 3 years ago
- Status changed from In Progress to Resolved
- % Done changed from 80 to 100
GJ! Configuration file is correctly reloaded even with multivalued attributes. Only things that we consulted is bad encoding when I edited the file vie standard windows notepad.
Thank you for consultation.
Updated by Ondrej Husník over 3 years ago
Ondřej Kopr wrote:
GJ! Configuration file is correctly reloaded even with multivalued attributes. Only things that we consulted is bad encoding when I edited the file vie standard windows notepad.
Thank you for consultation.
Thank you for your review.
The encoding troubles are quite common on Win environment. One has to be very careful when editing a text file especially when using standard notepad on Win server. Using notepad++ or some other tool which is able to ensure better character encoding control is strongly recommended. The rule is simple: always ensure utf8 encoding of the configuration file.
Updated by Ondrej Husník over 3 years ago
- Status changed from Resolved to Closed