Hi Hoang, Ok I will push , can you please re-base and provide "[PATCH 1 of 2] ckpt: To add a new test case to verify creating section with id lenght longer than MAX_SIZE(30) [#1667]"
this not getting applied directly , on current code base. -AVM On 6/23/2016 4:35 PM, Vo Minh Hoang wrote: > Dear Mahesh, > > Thank you very much for your review. > > Would you please push this when you have time. > > I confirmed LONG DN requirement and its target seems only SaNameT objects. > Section name does not use DN so it still stay at fix 50 limit. > > More information, when you are reviewing Long DN implementation in CKPT, I > have just submit newest patch files of Long DN. Basically, they are patches > that Nhat Pham already submitted. I just rebase them to current source base > (merging with headless feature, etc..). > I hope this could help your review work easier. > > Best regards, > Hoang > > -----Original Message----- > From: A V Mahesh [mailto:[email protected]] > Sent: Monday, June 20, 2016 10:58 AM > To: Vo Minh Hoang <[email protected]> > Cc: [email protected] > Subject: Re: [PATCH 1 of 1] cpnd: To reject creating section which has id > length longer than MAX_SEC_ID_LEN [#1667] > > Hi Hoang, > > No issue , for now we can push this for to over come current bug that you > are facing . > > We can address all the LONG DN related issue including Section ID length. > > ============================================================================ > ================ > Object Class : Table 2 DN Formats for Objects of Checkpoint Service Classes > (SAI-AIS-CKPT-B.02.02 spec) > > 1) SaCkptCheckpoint -- "safCkpt=...,* " > > 2) SaCkptReplica -- "safReplica=...,safCkpt=...,* " > > ============================================================================ > ================ > > So ACK form me not tested. > > -AVM > > > On 6/14/2016 2:40 PM, Vo Minh Hoang wrote: >> Dear Mahesh, >> >> Thank you very much for your information. >> It seem I have lack of information when receiving this ticket from >> Nhat Pham. >> We will consider more about this. >> >> Sincerely, >> Hoang >> >> -----Original Message----- >> From: A V Mahesh [mailto:[email protected]] >> Sent: Tuesday, June 14, 2016 3:55 PM >> To: Hoang Vo <[email protected]> >> Cc: [email protected] >> Subject: Re: [PATCH 1 of 1] cpnd: To reject creating section which has >> id length longer than MAX_SEC_ID_LEN [#1667] >> >> Hi Hoang Vo, >> >> This patch is already published by Nhat Pham , and >> >> it is under review, I also provided few comments ( attached ) , please >> check. >> >> -AVM >> >> >> On 6/14/2016 1:48 PM, Hoang Vo wrote: >>> osaf/services/saf/cpsv/cpnd/cpnd_evt.c | 11 +++++++++++ >>> 1 files changed, 11 insertions(+), 0 deletions(-) >>> >>> >>> When a section with id size greater than MAX_SEC_ID_LEN [50], the >>> cpnd >> restarts with core dump. >>> This fixing validates id size before creating section. >>> >>> diff --git a/osaf/services/saf/cpsv/cpnd/cpnd_evt.c >>> b/osaf/services/saf/cpsv/cpnd/cpnd_evt.c >>> --- a/osaf/services/saf/cpsv/cpnd/cpnd_evt.c >>> +++ b/osaf/services/saf/cpsv/cpnd/cpnd_evt.c >>> @@ -2167,6 +2167,7 @@ static uint32_t cpnd_evt_proc_ckpt_sect_ >>> CPSV_CKPT_DATA *ckpt_data = NULL; >>> SaTimeT now, duration; >>> int64_t time_stamp, giga_sec, result; >>> + uint16_t sec_id_len = >>> +evt->info.sec_creatReq.sec_attri.sectionId->idLen; >>> >>> TRACE_ENTER(); >>> memset(&send_evt, '\0', sizeof(CPSV_EVT)); @@ -2205,6 +2206,16 >>> @@ >>> static uint32_t cpnd_evt_proc_ckpt_sect_ >>> TRACE_4("cpnd ckpt sect create failed for >> ckpt_id:%llx,return value:%d",evt->info.sec_creatReq.ckpt_id, >> SA_AIS_ERR_INVALID_PARAM); >>> goto agent_rsp; >>> } >>> + >>> + if (sec_id_len >= MAX_SEC_ID_LEN) { >>> + send_evt.type = CPSV_EVT_TYPE_CPA; >>> + send_evt.info.cpa.type = CPA_EVT_ND2A_SEC_CREATE_RSP; >>> + send_evt.info.cpa.info.sec_creat_rsp.error = >> SA_AIS_ERR_INVALID_PARAM; >>> + LOG_NO("cpnd ckpt sect create failed for ckpt_id:%llx,return >> value:%d - sec_id_len:%d over supported limit %d", >>> + evt->info.sec_creatReq.ckpt_id, >> SA_AIS_ERR_INVALID_PARAM, sec_id_len, MAX_SEC_ID_LEN); >>> + goto agent_rsp; >>> + } >>> + >>> if (evt->info.sec_creatReq.sec_attri.sectionId->id == NULL && >>> evt->info.sec_creatReq.sec_attri.sectionId->idLen == 0) { >>> if (cp_node->create_attrib.maxSections > 1) { > ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
