[
https://issues.apache.org/jira/browse/METRON-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anand Subramanian updated METRON-1861:
--------------------------------------
Description:
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 error:
{code:java}
18/11/08 08:10:02 ERROR boot.SpringApplication: Application run failed
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.
> 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
>
> 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 error:
>
> {code:java}
> 18/11/08 08:10:02 ERROR boot.SpringApplication: Application run failed
> 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)