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

    case sensitive task owner causes an PermissionDeniedException

    Michael Awizen Novice

      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));