Fixed EZConnect string regex in OracleInstaller class.
authorfreakolowsky <freak@drajv.si>
Sun, 26 May 2013 07:20:38 +0000 (09:20 +0200)
committerfreakolowsky <freak@drajv.si>
Fri, 31 May 2013 14:03:58 +0000 (16:03 +0200)
commitffe6e12a8adc58ff880f546eedd5338686d6e3fe
treeb85df55e480dbd5a53a775a5ae342e5da30fd511
parentc4d81e6c1e3d3aef7a21fbd704a94965116afebd
Fixed EZConnect string regex in OracleInstaller class.

The Oracle connect string was valid only if it contained alphanumerics,
underscore and dot. Some new schmemes makes uses of slashes and
EZConnect has the concept of server types (pooled, dedicated, shared)
which we now validate.

The long regex is now in OracleInstaller::checkConnectStringFormat()
(flagged with @since 1.22). The patch provides a bunch of very basic
tests to test out the regex.

Change-Id: Ie3a0af9801bfdbc9129298be07e1676145a1607a
includes/installer/Installer.i18n.php
includes/installer/OracleInstaller.php
tests/phpunit/includes/installer/OracleInstallerTest.php [new file with mode: 0644]