Project

General

Profile

Actions

Task #2781

closed

Improve configuration file reloading.

Added by Ondrej Husník almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondrej Husník
Target version:
Start date:
04/28/2021
Due date:
% Done:

100%

Estimated time:
Owner:

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.

Actions #1

Updated by Ondrej Husník almost 3 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Ondrej Husník almost 3 years ago

  • Target version set to 1.1.0
Actions #3

Updated by Ondrej Husník almost 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.

Actions #4

Updated by Ondřej Kopr almost 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.

Actions #5

Updated by Ondrej Husník almost 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.

Actions #6

Updated by Ondrej Husník almost 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF