Thank you Martin.
I have repeated tests, you are right, the autocommit=true is the definitive 
solution to the problem.




Il giorno sabato 11 maggio 2019 15:09:08 UTC+2, Martin Böhmer ha scritto:
>
> I experienced the exact same behaviour and solved it by setting autocommit 
> = true. Don't think it is your IDE causing the problem.
>
> Am Donnerstag, 9. Mai 2019 10:38:23 UTC+2 schrieb Nicola Boldrin:
>>
>> Hi Ray,
>> I've verified that the SQL is ok. After trying the 
>> cas.authn.pm.jdbc.autocommit property needlessly, the application did work 
>> perfectly. I suppose that I had a build problem with my Eclipse.
>>
>> Thanks for your suggestion.
>>
>> Nicola
>>
>>
>> Il giorno mercoledì 8 maggio 2019 19:13:43 UTC+2, rbon ha scritto:
>>>
>>> Nicola,
>>>
>>> You can get hibernate to show the sql that it is sending to the database:
>>>
>>> https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#hibernate--jdbc
>>>
>>> This may provide some more insight into your problem.
>>>
>>> Ray
>>>
>>> On Wed, 2019-05-08 at 00:57 -0700, Nicola Boldrin wrote:
>>>
>>> Hi all,
>>> I'm using CAS 5.3.8 and I'm trying to change my expired password.
>>> I can specify my new password in form and submit it; the application 
>>> shows the "Password Change Successful" message but DB is not updated.
>>>
>>> In the debug mode I see that the method 
>>> *org.apereo.cas.pm.jdbc.JdbcPasswordManagementService.changeInternal(....) 
>>> *returns 1.
>>>
>>>     @Override
>>>     public boolean changeInternal(final Credential credential, final 
>>> PasswordChangeBean bean) {
>>>         final UsernamePasswordCredential c = (UsernamePasswordCredential
>>> ) credential;
>>>         final PasswordEncoder encoder = PasswordEncoderUtils.
>>> newPasswordEncoder(properties.getJdbc().getPasswordEncoder());
>>>         final String password = encoder.encode(bean.getPassword());
>>>         final int count = this.jdbcTemplate.update(properties.getJdbc().
>>> getSqlChangePassword(), password, c.getId());
>>>         return count > 0;
>>>     }
>>>
>>>
>>>
>>> What's wrong?
>>>
>>> Thanks all.
>>>
>>> -- 
>>>
>>> Ray Bon
>>> Programmer Analyst
>>> Development Services, University Systems
>>> 2507218831 | CLE 019 | [email protected]
>>>
>>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/4be1009f-70a1-44d2-8fc0-a705a485e080%40apereo.org.

Reply via email to