AnsweredAssumed Answered

Set Default Picture for new User

Question asked by damokles on Dec 22, 2011
I'm writing a custom LDAP auth plugin based on the example from "Activiti in Action", the authentication and creation of a new user in the db works fine, but when I try to add a picture it is not saved in the user object.

The code is as follows:

UserEntity newUser = findLDAPUserById(userId);
Picture defaultUserPicture = getDefaultUserPicture();
newUser.setPicture(defaultUserPicture);
super.insertUser(newUser);
super.getDbSqlSession().flush();

I've debugged it and the ByteArrayEntity gets created correctly and i can view it in the DB,
but the pictureByteArrayId property is not persisted on insert somehow, although it is correctly set and no
Exceptions are thrown.

If I set the picture via the activiti-explorer it works.

I'm working with Activiti 5.8 release
Any hints?

-damokles

Outcomes