db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamta A. Satoor (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4786) Shutdown command without username and password should work with mixed client and network server releases.
Date Wed, 01 Sep 2010 22:40:54 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mamta A. Satoor updated DERBY-4786:
-----------------------------------

    Attachment: DERBY4786_patch1_diff.txt

Attaching a patch to fix the jira. What the patch does is it checks if the optional username
and password have specified for the shutdown command and if yes, then it uses protocol level
2 and then sends the username and password info to the server when sending the shutdown command.
If user has not specified username and password then it uses protocol level 1 and sends just
the shutdown command the way it used to work prior to DERBY-2109. In other words, protocol
level 1 for shutdown with no username and password  and protocol level 2 for shutdown with
username and password.

Server on its side checks if it is dealing with protocol level 1 for shutdown and if yes,
then it does not need to look for username and password. But if the the protocol level is
2, then the server will expect username and password for the shutdown command,

This way, a trunk client with this patch will be able to shutdown a 10.3 server with DERBY-2109
changes with no username and password. If it sends the username and password then there be
following error on the server and client side
    10.3 server side error
	DRDA_UnknownProtocol.S, <2>
	Execution failed because of a Distributed Protocol Error:  DRDA_Proto_SYNTAXRM;CODPNT arg
 = 0; Error Code Value = 1. Plaintext connection attempt from an SSL enabled client?
     trunk client side error
	Tue Aug 31 11:48:20 PDT 2010 : Invalid reply header from network server: Invalid string.
Plaintext connection attempt to an SSL enabled server?

Please let me know if anyone has any feedback on this patch. I will plan on committing this
in a day or two.

> Shutdown command without username and password should work with mixed client and network
server releases.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4786
>                 URL: https://issues.apache.org/jira/browse/DERBY-4786
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client, Network Server
>    Affects Versions: 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.6.1.0
>            Reporter: Mamta A. Satoor
>            Assignee: Mamta A. Satoor
>         Attachments: DERBY4786_patch1_diff.txt
>
>
> DERBY-2109 introduced optional parameters username and password to the shutdown command.
But with this fix, the existing shutdown command which does not use username and password
stopped working from client with DERBY-2109 changes against a network server without DERBY-2109
changes.
> This jira is to ensure that existing shutdown command without user name and password
still works fine between different releases of client and network server(with or without DERBY-2109).
The new shutdown command introduced by DERBY-2109 will work obviosuly only on client and server
with DERBY-2109 changes. For client/server not with DERBY-2109 changes attempting to user
use name and password will get an error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message