-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twitter V2 bridge not able to load settings from environment #2935
Comments
For reference: |
Can confirm this bug. It happens for config keys which are case sensitive and loaded from env. Just curious, did you find any docs about this load-config-from-env feature? |
I did not find this feature documented, but there is was a merge request implementing this feature that I learned it from: #2100 |
@dvikan I see your commit... but this a workaround not a fix. The coding style says classnames should PascalCase : https://rss-bridge.github.io/rss-bridge/For_Developers/Coding_style_policy.html loadConfiguration uses the call rss-bridge/lib/BridgeAbstract.php Line 283 in 951092e
|
@dot-mike I did realize that and changed that particular line. Please inspect the entire pr. I agree with your conclusion that it's not a proper fix because I only added an exception for TwitterV2 but other classes can get configs from env e.g. |
Fixed |
Describe the bug
Unable to set setting for Twitter V2 bridge using environment keys due to configuration forcing keys to be lower-case
In my docker-compose file I set the environment from docker-compose file, then try to use Twitter V2 bridge I get an error
Docker-compose file for reference:
To Reproduce
Steps to reproduce the behavior:
Additional context
The cause of this is the fact that Configuration.php sets the section-name to all lower-case.
From my log file where I enabled some debugging for environmental keys.
The text was updated successfully, but these errors were encountered: