0 Replies Latest reply on Oct 22, 2015 10:39 AM by awizenm

    case sensitive task owner causes an PermissionDeniedException

    awizenm

      I can login to my application with user123 and USER123. It is the same user.

       

      When searching for tasks using jBPM  runtimeDataService.getTasksOwned(...) user123 and USER123 find the same set of tasks.

       

      But ... when operating on the tasks the user name is case sensitive and the PermissionDeniedException is thrown if the case is wrong.

       

      My question:

      Is there a more elegant way to deal with this problem then ensuring e.g. lowercase deep in the code?

       

      Like e.g.:

      results.put(NEXT_USER, getUser().toLowerCase(Locale.ROOT));