Issue Details (XML | Word | Printable)

Key: DERBY-2435
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Daniel John Debrunner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

network server boot fails indicating authentication must be set up even when authentication is fully defined in derby.properties

Created: 09/Mar/07 06:10 PM   Updated: 30/Jun/09 12:14 AM
Return to search
Component/s: Network Server
Affects Version/s: 10.3.1.4
Fix Version/s: 10.3.1.4

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works derby-2435-01.diff 2007-03-15 08:22 PM Rick Hillegas 12 kB

Bug behavior facts: Security
Resolution Date: 20/Mar/07 09:07 PM


 Description  « Hide
Booting the server using the default to install a security manager fails even when the derby.properties is in the current directory with these contents.

derby.connection.requireAuthentication=true
derby.authentication.provider=BUILTIN
derby.user.SA=sapwd
derby.user.MARY=marypwd

The documentation on authentication indicates this is the preferred way to setup authentication for a server machine.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Rick Hillegas added a comment - 15/Mar/07 08:22 PM
Attaching fix: derby-2435-01.diff. This patch does the following:

M java/drda/org/apache/derby/drda/NetworkServerControl.java

  Uses PropertyUtil to get the properties.

A java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SecureServerTest.derby.properties

  This is the sample derby.properties which showed this bug. Used by a new test case.

M java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SecureServerTest.java

  Adds new test case to bring up the server using the sample derby.properties which showed this bug.

M java/testing/org/apache/derbyTesting/junit/SupportFilesSetup.java

  Allows testing files to be copied to specific target file names. Supports copying of SecureServerTest.derby.properties to derby.properties.

Rick Hillegas added a comment - 16/Mar/07 03:25 PM
Committed derby-2435-01.diff at subversion revision 519004. Derbyall and the junit tests ran cleanly except for the DerbyNetClient run of checkDataSource30. That test failed beginning with this error:

*** Start: checkDataSource30 jdk1.4.2_12 DerbyNetClient derbynetmats:jdk14 2007-03-15 14:31:10 ***
293 del
< FAIL incorrect connection object returned for Statement.getConnection()
293a293,296
> FAIL incorrect connection object returneException in thread "main" org.apache.derby.client.am.XaException: XAER_NOTA : Error executing a XAResource.start(), server returned XAER_NOTA.
> Caused by: org.apache.derby.client.am.SqlException: Error executing a XAResource.start(), server returned XAER_NOTA.
> ... 4 more

I re-ran the test against the classtree and against the jar files and was unable to reproduce the failure. I think it is unlikely that my changes introduced this heisenbug into this test.

Rick Hillegas added a comment - 19/Mar/07 02:22 PM
Unassigning. I believe this issue can be closed.