You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Xiaoyu Yao (JIRA)" <ji...@apache.org> on 2019/02/27 18:18:00 UTC

[jira] [Comment Edited] (HDDS-1176) Fix storage of certificate in scm db

    [ https://issues.apache.org/jira/browse/HDDS-1176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16778967#comment-16778967 ] 

Xiaoyu Yao edited comment on HDDS-1176 at 2/27/19 6:17 PM:
-----------------------------------------------------------

I think it is the CodecRegistry not flexible to handle Typed data with class, subclass hierarchy. Here abstract base class *X509Certificate* is registered with the CodecRegistry but subclass *X509CertImpl* is passed in to serialize/deserialize which relies on getClass() of the subclass *X509CertImpl,* which does not match *X509Certificate.*

Post a simple patch that allows subclass to match with base class registry for serialization/deserialization. 


was (Author: xyao):
I think it is the CodecRegistry not flexible to handle Typed data with class, subclass hierarchy. Here the class is registered with the CodecRegistry but the subclass is passed in to serialize/deserialize where getClass() return only the subclass. 

 

Post a simple patch allow subclass using base class registry for serialization/deserialization. 

> Fix storage of certificate in scm db
> ------------------------------------
>
>                 Key: HDDS-1176
>                 URL: https://issues.apache.org/jira/browse/HDDS-1176
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Ajay Kumar
>            Assignee: Xiaoyu Yao
>            Priority: Major
>         Attachments: HDDS-1176.001.patch
>
>
> put operation in {{SCMCertStore}} is failing due to unregistered codec format. Either we can add new codec format or put pem encoded cert. Second option is more preferable i think as every where else we are using pem encoded string.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org