FreeTAKTeam / FreeTakServer

Situational Awareness Server compatible with TAK clients
Eclipse Public License 2.0
617 stars 163 forks source link

Getting a dict instead of a str in for yaml_path #628

Closed dirkkolb closed 9 months ago

dirkkolb commented 9 months ago

When not setting the FTS_CONFIG_PATH environment variable, the MainConfig.py tries to get the default path in order to read the YAML. The default path is also defined in MainConfig.py. But it is defined as a dictionary and not as a str. In line 370, a string is expected instead of the dictionary. Thus, the check in line 373 will never work even if the config file is available.

https://github.com/FreeTAKTeam/FreeTakServer/blob/927bbe1a298f07f5d4210bbfc3a5fa91dcc5ff74/FreeTAKServer/core/configuration/MainConfig.py#L370C17-L370C104