You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Justin Leet (JIRA)" <ji...@apache.org> on 2018/12/11 16:04:00 UTC
[jira] [Updated] (METRON-1861) REST fails to start when LDAP
enabled and 'Active Spring profiles' config is empty
[ https://issues.apache.org/jira/browse/METRON-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Leet updated METRON-1861:
--------------------------------
Fix Version/s: 0.7.0
> REST fails to start when LDAP enabled and 'Active Spring profiles' config is empty
> ----------------------------------------------------------------------------------
>
> Key: METRON-1861
> URL: https://issues.apache.org/jira/browse/METRON-1861
> Project: Metron
> Issue Type: Bug
> Reporter: Anand Subramanian
> Assignee: Anand Subramanian
> Priority: Major
> Fix For: 0.7.0
>
>
> When 'LDAP enabled' (in Configs -> Metron -> Security tab) is set to 'On' and the 'Active Spring profiles' (in Configs -> Metron -> REST tab) is blank, REST service fails to start with the following :
>
> {code:java}
> 18/11/08 08:10:02 boot.SpringApplication: Application run
> java.lang.IllegalArgumentException: Invalid profile []: must contain text
> at org.springframework.core.env.AbstractEnvironment.validateProfile(AbstractEnvironment.java:365)
> at org.springframework.core.env.AbstractEnvironment.setActiveProfiles(AbstractEnvironment.java:256)
> at org.springframework.core.env.AbstractEnvironment.doGetActiveProfiles(AbstractEnvironment.java:242)
> at org.springframework.core.env.AbstractEnvironment.getActiveProfiles(AbstractEnvironment.java:226)
> at org.springframework.boot.SpringApplication.configureProfiles(SpringApplication.java:522)
> at org.springframework.boot.SpringApplication.configureEnvironment(SpringApplication.java:479)
> at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:357)
> at org.springframework.boot.SpringApplication.run(SpringApplication.java:317)
> at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
> at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
> at org.apache.metron.rest.MetronRestApplication.main(MetronRestApplication.java:36){code}
>
> This is because the 'metron_spring_profiles_active' is set to the value ',ldap' which is not valid.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)