Hi Daniel
I've been doing some investigation on this and found that there is another place where such a case-insensitive query, against the logged in userId is causing issues. We have a TaskList filter with a criteria of "where assignee = ${currentUser()}". Again LDAP will allow MelissP and/or melissp to login as the same person however the query to get tasks for the assignee treats them as two different people. (filter query is similar to authorisations query we've already been discussing "and RES.ASSIGNEE_ = #
{assignee}
" [1])
Above means something as the follows happens: I login as MelissP create a task that gets assigned to me. Then login with melissp and you won't see these tasks as being assigned to me.
I do see in [1] there seems to be a 'taskNameCaseInsensitive' which starts to use config for "lower(RES.NAME_) LOWER_NAME_," we could implement the similar for assignee equals checks (but this does seem it could be allot of work)
Maybe there is a higher level solution or config setting within MyBartis to allow for case-insensitive queries.
Thanks
Melissa
[1] https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/resources/org/camunda/bpm/engine/impl/mapping/entity/Task.xml#L251
Thanks for reporting.
Do you you have an idea of how this should be solved?