db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunitha Kambhampati (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1345) net/Request.writeScalarStream() simply prints stack trace on encryption exception
Date Wed, 05 Jul 2006 23:34:32 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1345?page=all ]

Sunitha Kambhampati updated DERBY-1345:
---------------------------------------

    Summary: net/Request.writeScalarStream() simply prints stack trace on encryption exception
 (was: net/Reply.writeScalarStream() simply prints stack trace on encryption exception)

The writeScalarStream is not present in the Reply, it is in Request.java.  So changing the
description to say Request. 

> net/Request.writeScalarStream() simply prints stack trace on encryption exception
> ---------------------------------------------------------------------------------
>
>          Key: DERBY-1345
>          URL: http://issues.apache.org/jira/browse/DERBY-1345
>      Project: Derby
>         Type: Bug

>   Components: Network Client
>     Reporter: David Van Couvering

>
> In writeScalarStream(), the code attempts to encrypt the data, but if there is any kind
of exception, it simply prints the stack trace and continues.  It is not clear to me that
this is correct.
>             try {
>                 EncryptionManager encryptionMgr = netAgent_.netConnection_.getEncryptionManager();
>                 byte[] publicKey = netAgent_.netConnection_.getTargetPublicKey();
>                 encryptedBytes = encryptionMgr.encryptData(newClearedBytes,
>                         NetConfiguration.SECMEC_EUSRIDPWD,
>                         publicKey,
>                         publicKey);
>                 encryptedBytesLength = encryptedBytes.length;
>             } catch (Exception e) {
>                 e.printStackTrace();
>             }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message