Details
Description
From Daniel Palmer...
–
Hi,
The lists for gldapo seem pretty quiet so I thought I'd send you this
directly; In SchemaInspection.groovy the
function "fieldIsReadableAndWritable" the name of the setter/getter functions
are guessed using StringUtil.capitalize which works in most cases but not
all. I found this out trying to access the wWWHomePage attribute of users in
ActiveDirectory. The getter/setter's groovy creates are getwWWHomePage and
setwWWHomePage, the function is looking for getWWWHomePage and
setWWWHomePage. Using MetaClassHelper.capitalize
(org.codehaus.groovy.runtime.MetaClassHelper) seems to be the correct way of
calculating these function names. Groovy's behaviour is described in this bug
report http://jira.codehaus.org/browse/GROOVY-3211.
I have resolved this locally by changing the line ;-
def capitalisedFieldName = StringUtils.capitalize(field.name)
to ;-
def capitalisedFieldName = MetaClassHelper.capitalize(field.name)
Cheers,
Daniel