[jboss-jira] [JBoss JIRA] (WFLY-7436) Some attributes in Elytron ldap-realm are nillable=false but have set default values

Ondrej Lukas (JIRA) issues at jboss.org
Tue Nov 1 06:47:01 EDT 2016


     [ https://issues.jboss.org/browse/WFLY-7436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondrej Lukas updated WFLY-7436:
-------------------------------
    Description: 
Following attributes Elytron ldap-realm are nillable=false but have set default values:
* {{identity-mapping.use-recursive-search}}
* {{identity-mapping.user-password-mapper.writable}}
* {{identity-mapping.user-password-mapper.verifiable}}

Using nillable=false with set default value can be confused (because default value should be used in case when none value is set and nillable=false says that any value must by used).

Suggestion:
Since none of these mentioned attributes is required by CLI commands set nillable for these attributes to true.

  was:
Some attributes in Elytron ldap-realm are nillable=false but have set default values
Following attributes Elytron ldap-realm are nillable=false but have set default values:
* {{identity-mapping.use-recursive-search}}
* {{identity-mapping.user-password-mapper.writable}}
* {{identity-mapping.user-password-mapper.verifiable}}

Using nillable=false with set default value can be confused (because default value should be used in case when none value is set and nillable=false says that any value must by used).

Suggestion:
Since none of these mentioned attributes is required by CLI commands set nillable for these attributes to true.



> Some attributes in Elytron ldap-realm are nillable=false but have set default values
> ------------------------------------------------------------------------------------
>
>                 Key: WFLY-7436
>                 URL: https://issues.jboss.org/browse/WFLY-7436
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 11.0.0.Alpha1
>            Reporter: Ondrej Lukas
>            Assignee: Darran Lofthouse
>            Priority: Optional
>              Labels: user_experience
>
> Following attributes Elytron ldap-realm are nillable=false but have set default values:
> * {{identity-mapping.use-recursive-search}}
> * {{identity-mapping.user-password-mapper.writable}}
> * {{identity-mapping.user-password-mapper.verifiable}}
> Using nillable=false with set default value can be confused (because default value should be used in case when none value is set and nillable=false says that any value must by used).
> Suggestion:
> Since none of these mentioned attributes is required by CLI commands set nillable for these attributes to true.



--
This message was sent by Atlassian JIRA
(v7.2.2#72004)


More information about the jboss-jira mailing list