Issue Details (XML | Word | Printable)

Key: DERBY-4004
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Kathey Marsden
Reporter: Kathey Marsden
Votes: 0
Watchers: 0
Operations

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

Remove required RDBNAM from ACCSEC. Use SECCHK RDBNAM if none is provided on ACCSEC

Created: 07/Jan/09 09:38 PM   Updated: 04/May/09 06:22 PM
Component/s: Network Client, Network Server
Affects Version/s: 10.5.1.1
Fix Version/s: 10.3.3.1, 10.4.2.1, 10.5.1.1

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works derby-4004-fix_new_protcoltest.diff 2009-01-09 09:43 AM Kristian Waagan 0.8 kB
Text File Licensed for inclusion in ASF works derby-4004_10_4_diff.txt 2009-01-23 05:07 PM Kathey Marsden 8 kB
Text File Licensed for inclusion in ASF works derby-4004_diff.txt 2009-01-08 07:27 PM Kathey Marsden 10 kB

Issue & fix info: Patch Available
Resolution Date: 14/Jan/09 09:31 PM
Labels:


 Description  « Hide
Currently Derby requires RDBNAM on ACCSEC. The DDM spec lists it as optional. For DERBY-728, in order to negotiate the encoding, EXCSAT and ACCSEC will need to remain EBCDIC, so we want the RDBNAM to be optional. We can use the RDBNAM sent in SECCHK instead.

Once this is done. Client can be changed to only send RDBNAM on ACCSEC if an EBCDIC conversion is possible.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Kathey Marsden made changes - 08/Jan/09 05:12 PM
Field Original Value New Value
Assignee Kathey Marsden [ kmarsden ]
Kathey Marsden added a comment - 08/Jan/09 07:27 PM
Here is a preliminary patch for this issue. I am running tests now. The change makes RDBNAM optional on ACCSEC and initialize the datbase name on SECCHK instead. I added two protocol tests. One for successful connection if there is no RDBNAM on ACCSEC but we send it on SECCHK. Another to test that we throw a SYNTAXRM if there is no RDBNAM on either ACCSEC or SECCHK.




Kathey Marsden made changes - 08/Jan/09 07:27 PM
Attachment derby-4004_diff.txt [ 12397440 ]
Kathey Marsden added a comment - 08/Jan/09 10:10 PM
Regression tests passed. Please Review the patch derby-4004_diff.txt

Thanks

Kathey

Kathey Marsden made changes - 08/Jan/09 10:10 PM
Derby Info [Patch Available]
Myrna van Lunteren added a comment - 09/Jan/09 01:02 AM - edited
I have not looked at this thoroughly, but I have one comment: are the new .inc files run as part of the ProtocolTest
(see DERBY-2031)?

Kristian Waagan added a comment - 09/Jan/09 09:43 AM
The patch 'derby-4004-fix_new_protcoltest.diff' makes the new protocol test run successfully with the new tests added.
Before the change it ran 150 tests, after Katheys patch it runs 151 (two added, one removed).

Changes in "protocol.tests" are picked up automatically, but if new files are added java/testing/org/apache/derby/impl/drda/ProtocolTest.java must be updated.
This test still has the problem that it cannot be run as part of suites.All, but it can be run with 'ant junit-pptesting'.
Note that the old version of the test is still being run as part of a suite.

Kristian Waagan made changes - 09/Jan/09 09:43 AM
Attachment derby-4004-fix_new_protcoltest.diff [ 12397496 ]
Kathey Marsden added a comment - 12/Jan/09 05:23 PM
Thanks Kristian and Myrna for the information on ProtocolTest. I added Kristian's patch to the original patch. If there are no review comments I will commit this patch tomorrow. I would, however most appreciate a review if anyone has the time.

Kathey

Myrna van Lunteren added a comment - 12/Jan/09 07:13 PM
Kathey and I did a patch-code-walk-through on IRC.
We noticed the following nits:
- Improve javadoc for dbname on initializeDatabase
- Add javadoc for Database.setDatabaseName
- fix whitespace before call to initializeDefaultStatement.
- in in excsat_secchk_nordbonaccsec.inc, remove comment //writeScalarString RDBNAM "wombat;create=true

All looks good otherwise.

Repository Revision Date User Message
ASF #734190 Tue Jan 13 17:21:57 UTC 2009 kmarsden DERBY-4004 Remove required RDBNAM from ACCSEC. Use SECCHK RDBNAM if none is provided on ACCSEC
Files Changed
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/ibm14/testProtocol.out
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_secchk_nordbonaccsec.inc
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testProtocol_app.properties
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/protocol.tests
MODIFY /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/testProtocol.out
MODIFY /db/derby/code/trunk/java/testing/org/apache/derby/impl/drda/ProtocolTest.java
ADD /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_accsecrd_nordb.inc
MODIFY /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/Database.java

Kathey Marsden made changes - 14/Jan/09 09:31 PM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]
Fix Version/s 10.5.0.0 [ 12313010 ]
Kathey Marsden added a comment - 23/Jan/09 05:07 PM
Attached is a patch derby-4004_10_4_diff.txt which backports this change to 10.4. I am putting the change to 10.4 and 10.3 to avoid the change in error message when attempting to connect with multibyte characters in the database name after the fix for derby-4008 for new clients connecting to back rev servers.

Running tests and will commit Monday if there are no objections.




Kathey Marsden made changes - 23/Jan/09 05:07 PM
Attachment derby-4004_10_4_diff.txt [ 12398588 ]
Repository Revision Date User Message
ASF #737759 Mon Jan 26 17:27:44 UTC 2009 kmarsden DERBY-4004 Remove required RDBNAM from ACCSEC. Use SECCHK RDBNAM if none is provided on ACCSEC
Backporting to 10.3 to avoid change in error message when connecting 10.5 client to 10.3 server with multibyte database name.
Files Changed
MODIFY /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/master/ibm14/testProtocol.out
MODIFY /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testProtocol_app.properties
MODIFY /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/protocol.tests
MODIFY /db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
MODIFY /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/master/testProtocol.out
ADD /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_accsecrd_nordb.inc (from /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_accsecrd_nordb.inc)
MODIFY /db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/Database.java
ADD /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_secchk_nordbonaccsec.inc (from /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_secchk_nordbonaccsec.inc)

Repository Revision Date User Message
ASF #737760 Mon Jan 26 17:29:40 UTC 2009 kmarsden DERBY-4004 Remove required RDBNAM from ACCSEC. Use SECCHK RDBNAM if none is provided on ACCSEC
Backporting to 10.4 to avoid change in error message when connecting 10.5 client to 10.4 server with multibyte database name.
Files Changed
MODIFY /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/master/ibm14/testProtocol.out
ADD /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_secchk_nordbonaccsec.inc (from /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_secchk_nordbonaccsec.inc)
MODIFY /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/testProtocol_app.properties
MODIFY /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/protocol.tests
MODIFY /db/derby/code/branches/10.4/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
MODIFY /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/master/testProtocol.out
MODIFY /db/derby/code/branches/10.4/java/drda/org/apache/derby/impl/drda/Database.java
ADD /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_accsecrd_nordb.inc (from /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/excsat_accsecrd_nordb.inc)

Kathey Marsden made changes - 26/Jan/09 05:31 PM
Fix Version/s 10.4.2.1 [ 12313401 ]
Fix Version/s 10.3.3.1 [ 12313143 ]
Myrna van Lunteren made changes - 04/May/09 06:22 PM
Affects Version/s 10.5.1.1 [ 12313771 ]
Affects Version/s 10.5.0.0 [ 12313010 ]
Fix Version/s 10.5.1.1 [ 12313771 ]
Fix Version/s 10.5.0.0 [ 12313010 ]