Mantis - Quercus
Viewing Issue Advanced Details
2453 minor always 02-20-08 15:03 02-22-08 20:35
bchan  
nam  
normal  
closed  
fixed  
none    
none 3.1.5  
0002453: Make PDO less strict when looking up a Java data source
Modify PDO.java line 768 from:

else if (dsn.startsWith("java:"))

to:

else if (dsn.startsWith("java"))
Liferay programmatically sets a java data source at:

java_liferay:jdbc/LiferayPool

and not at:

java:/jdbc/LiferayPool

because this path is protected by most app servers.

When looking up via PDO, with the call:

$pdo = new PDO("java_liferay:jdbc/LiferayPool");

It'll break because it starts with java_ and not with java:

This slight change won't break anything else but makes it easier for third party integrators.

See http://support.liferay.com/browse/LEP-5048 [^]

Notes
(0002795)
nam   
02-22-08 20:35   
php/1s75