You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
When using application.yml to configure nakadi.oauth2.mode YAML parser translates OFF to false if you don't put quotes and the Spring property binding fails with
Caused by: java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'org.zalando.nakadi.config.SecuritySettings$AuthMode': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:307)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:109)
at org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:64)
... 98 more
The workaround is to add quotes like nakadi.oauth2.mode: "OFF" but it is a bit awkward and you can miss it when running your service.
Adding a NONE value in the enum that has the same effect as OFF would prevent that and you could keep OFF for backward compatibility.
The text was updated successfully, but these errors were encountered:
Thank you @cbornet for your suggestion. This looks like a nice improvement, and could be a good first issue for someone looking into contributing to Nakadi.
fbrns
added a commit
to fbrns/nakadi
that referenced
this issue
Nov 9, 2018
When using application.yml to configure
nakadi.oauth2.mode
YAML parser translatesOFF
tofalse
if you don't put quotes and the Spring property binding fails withThe workaround is to add quotes like
nakadi.oauth2.mode: "OFF"
but it is a bit awkward and you can miss it when running your service.Adding a NONE value in the enum that has the same effect as OFF would prevent that and you could keep OFF for backward compatibility.
The text was updated successfully, but these errors were encountered: