On 24/10/18 16:34, pcrowder wrote:
Ok I did some digging. :)
There isn't any helpful info in the console.log. There is info in the
core-persistence.log file. When retrieving the workflow forms during login,
it looks like there is a query for groups for the logging in user. The
findByUsername query is using the *user's id* not the user's username to get
the user. This of course returns nothings and creates a series of
NullPointer exceptions.
This issue seems to be located at [1], where
taskCandidateOrAssigned(user.getKey())
should be replaced by
taskCandidateOrAssigned(user.getUsername())
You might want to try by downloading the file at [1] into your own
project sources under
core/src/main/java/org/apache/syncope/core/workflow/flowable/FlowableUserWorkflowAdapter.java
then changing as suggested above, rebuilding and redeploying.
Please report if this works, thanks.
FYI the whole Flowable implementation in Syncope has gone under complete
reorganization and review (the equivalent call is at [2] and already
using username, as you can see): the updated code will be available with
Syncope 2.1.2 and will require some non-trivial migration procedure [3],
but should pay with more features, increased performance and less space
occupied by Flowable variables in the db.
HTH
Regards.
[1]
https://github.com/apache/syncope/blob/syncope-2.1.1/core/workflow-flowable/src/main/java/org/apache/syncope/core/workflow/flowable/FlowableUserWorkflowAdapter.java#L618
[2]
https://github.com/apache/syncope/blob/2_1_X/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableUserRequestHandler.java#L462
[3]
https://cwiki.apache.org/confluence/display/SYNCOPE/Upgrade+from+2.1.1+to+2.1.2
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/