On 26/04/2012 12:28, Bob Lannoy wrote:
I started from scratch with the default content.xml file.
I still get javax.crypto.BadPaddingException: Given final block not
properly padded

Bob,
approval is part of standard test case, which runs fine on MySQL, PostgreSQL, Oracle and H2.

I think that your problem depends on your customizations, then: can you provide your userWorkflow.bpm20.xml?

Thanks.
Regards.

2012/4/26 Francesco Chicchiriccò<[email protected]>:
On 25/04/2012 13:10, Bob Lannoy wrote:
Hi,

I managed to get the existing workflow going but now I get an exception
when doing the approval.
I created a user and the admin gets an approval task.
When I set it to approve and press save I get this in the core-rest.log

12:18:17.792 ERROR
org.apache.syncope.core.rest.controller.AbstractController - Exception
thrown by REST methods
java.lang.RuntimeException: javax.crypto.BadPaddingException: Given
final block not properly padded
        at
org.identityconnectors.common.security.impl.EncryptorImpl.decrypt(EncryptorImpl.java:87)
~[framework-internal-1.3.1.jar:na]
        at
org.apache.syncope.core.workflow.ActivitiUserWorkflowAdapter.decrypt(ActivitiUserWorkflowAdapter.java:180)
~[ActivitiUserWorkflowAdapter.class:na]
        at
org.apache.syncope.core.workflow.ActivitiUserWorkflowAdapter.submitForm(ActivitiUserWorkflowAdapter.java:644)
~[ActivitiUserWorkflowAdapter.class:na]
...

Any ideas on what's happening?

When an user is created and subject to approval, his password is stored,
encrypted, as workflow property.

When someone approves an user, this saved password is decrypted (in order to
be propagated to external resources, for example).
It seems that in your case such encrypted password is not valid: don't have
idea about the reason, though: it seems like the content of your database is
not valid anymore, for binary workflow properties.
Since this might be related to SYNCOPE-65, could you try approval starting
with an empty database and a content.xml that was not produced by an export?

Regards.
--
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/

Reply via email to