Mamta A. Satoor created DERBY-6472:
--------------------------------------

             Summary: Behavior of RDBNAM longer than 255 characters when server 
and clients are at different versions
                 Key: DERBY-6472
                 URL: https://issues.apache.org/jira/browse/DERBY-6472
             Project: Derby
          Issue Type: Bug
          Components: Network Client, Network Server
    Affects Versions: 10.11.0.0
            Reporter: Mamta A. Satoor


With DERBY-4805 fix in 10.11, the RDBNAM can be more than 255bytes. But when 
the client and server versions are both not at 10.11 or higher, trying a RDBNAM 
longer than 255bytes will result in exceptions. 

1)If server is 10.10 or lower and client is 10.11 or higher, and client 
attempts to send RDBNAM longer than 255bytes, they will get following protocol 
exception
ERROR 08006: A network protocol error was encountered and the connection has 
been terminated: A protocol error (Data Stream Syntax Error) was detected.  
Reason: 0x8,464. Perhaps this is an attempt to open a plaintext connection to 
an SSL enabled server.
2)If server is 10.11 or higher and client is 10.10 or lower, and client 
attempts to send RDBNAM longer than 255bytes, they will get following exception
ERROR 08001: A connection could not be established because the database name 
'memory:dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/dir1234567890/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;create=true'
 is larger than the maximum length allowed by the network protocol.




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to