Task #2781
closed
Improve configuration file reloading.
Added by Ondrej Husník over 3 years ago.
Updated over 3 years ago.
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.
- Status changed from New to In Progress
- Target version set to 1.1.0
- % 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.
- 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.
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.
- Status changed from Resolved to Closed
Also available in: Atom
PDF