|
Attached is a patch for this issue. It changes the client to not send the RDBNAM on ACCSEC if EBCDIC conversion is not possible. For a 10.5 client to 10.5 server there is no behavior change except that the exception for conversion exception comes a bit later (on SECCHK) instead of ACCSEC.
As discussed, for 10.5 client talking to older servers, this will cause a change in the exception when trying to connect with a non-convertible database name. Users will instead get a SYTAXRM with a chained conversion exception. I will backport Also added tests for connection attempts with Chinse database name, user and password with DriverManager, Simple DataSource, XADataSource, and ConnectionPoolDataSource. Running tests now. Regression tests passed. Please review
I'll commit this patch Monday if there are no comments.
The database directories created in the tests were not getting removed properly. This patch corrects that.
Ataching a release note for this issue, which won't be entirely true until I backport derby-4004 to 10.4 and 10.3
10.5 rel mgr work - replacing <br> with <br/> so the releaseNotesGenerator can chew it.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Execution failed because of a Distributed Protocol Error: DRDA_Proto_SYNTAXRM; CODPNT arg = 2110; Error Code Value = e
. Plaintext connection attempt from an SSL enabled client?
At the client we can save off the conversion exception that prevented us from sending the RDBNAM on ACCSEC and do one of two things.
1) Report the SYNTAXRM on the client but chain the conversion exception, so it is clear the root cause of the problem.
2) Gobble up the SYNTAXRM and just throw the conversion exception, so it looks like there was no SYNTXRM on the client and the client behavior matches the current behavior.
I am a bit wary of throwing away the exception so I am planning to go with option 1 which would be less compatible but have a cleaner implementation and wouldn't cause the SYNTAXRM to mysteriously disappear between server and client. I will backport
DERBY-4004so that folks using newer 10.3 and 10.4 servers won't be affected. I'll post a patch soon with my proposal. Please post if you have any concerns or other ideas.