mraible opened a new pull request, #252:
URL: https://github.com/apache/roller/pull/252

   A database password made only of hex digits stops Roller from starting. 
EclipseLink fails with "Database password was encrypted by deprecated 
algorithm. Reencrypt it by `passwordUpdate.sh` from eclipselink.zip bundle." 
This came up while upgrading raibledesigns.com to Roller 7.
   
   EclipseLink's default `JCEEncryptor` tries to decrypt every JDBC password. A 
hex string of 32 characters or more parses as hex, AES-GCM decryption fails, 
and EclipseLink throws instead of falling back to the plain text. Roller has 
never used or documented EclipseLink's password encryption.
   
   - `PlainTextPasswordEncryptor` hands the password to EclipseLink unchanged.
   - `JPAPersistenceStrategy` sets `eclipselink.login.encryptor` to it for JDBC 
connections, unless `roller-custom.properties` already sets that property. JNDI 
datasources aren't affected, since no password reaches EclipseLink there.
   - The test configuration now uses `0123456789abcdef0123456789abcdef` as its 
Derby password (the test server doesn't check it), so every database test 
covers this. Before the fix, `PropertiesTest` and Planet's `PropertiesTest` 
failed with the error above. With it, they and `WeblogTest` pass.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to