* [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller @ 2023-10-24 8:39 Nickle Wang via groups.io 2023-10-26 6:09 ` Chang, Abner via groups.io 0 siblings, 1 reply; 7+ messages in thread From: Nickle Wang via groups.io @ 2023-10-24 8:39 UTC (permalink / raw) To: devel; +Cc: Abner Chang, Igor Kulchytskyy, Nick Ramirez Call Ex interface to get HTTP headers and return to caller. Signed-off-by: Nickle Wang <nicklew@nvidia.com> Cc: Abner Chang <abner.chang@amd.com> Cc: Igor Kulchytskyy <igork@ami.com> Cc: Nick Ramirez <nramirez@nvidia.com> --- RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c index f4045044829a..5e06d516ba84 100644 --- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c +++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c @@ -356,7 +356,7 @@ RedfishGetByUri ( ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); - JsonValue = getUriFromService (RedfishService, Uri, &RedResponse->StatusCode); + JsonValue = getUriFromServiceEx (RedfishService, Uri, &RedResponse->Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode); RedResponse->Payload = createRedfishPayload (JsonValue, RedfishService); // @@ -498,10 +498,12 @@ RedfishPatchToUri ( ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); - JsonValue = (EDKII_JSON_VALUE)patchUriFromService ( + JsonValue = (EDKII_JSON_VALUE)patchUriFromServiceEx ( RedfishService, Uri, Content, + &(RedResponse->Headers), + &(RedResponse->HeaderCount), &(RedResponse->StatusCode) ); @@ -661,12 +663,14 @@ RedfishPostToUri ( ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); - JsonValue = (EDKII_JSON_VALUE)postUriFromService ( + JsonValue = (EDKII_JSON_VALUE)postUriFromServiceEx ( RedfishService, Uri, Content, ContentSize, ContentType, + &(RedResponse->Headers), + &(RedResponse->HeaderCount), &(RedResponse->StatusCode) ); -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109993): https://edk2.groups.io/g/devel/message/109993 Mute This Topic: https://groups.io/mt/102154017/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller 2023-10-24 8:39 [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller Nickle Wang via groups.io @ 2023-10-26 6:09 ` Chang, Abner via groups.io 2023-10-26 12:49 ` Igor Kulchytskyy via groups.io 0 siblings, 1 reply; 7+ messages in thread From: Chang, Abner via groups.io @ 2023-10-26 6:09 UTC (permalink / raw) To: Nickle Wang, devel@edk2.groups.io; +Cc: Igor Kulchytskyy, Nick Ramirez [AMD Official Use Only - General] Reviewed-by: Abner Chang <abner.chang@amd.com> > -----Original Message----- > From: Nickle Wang <nicklew@nvidia.com> > Sent: Tuesday, October 24, 2023 4:40 PM > To: devel@edk2.groups.io > Cc: Chang, Abner <Abner.Chang@amd.com>; Igor Kulchytskyy > <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> > Subject: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller > > Caution: This message originated from an External Source. Use proper caution > when opening attachments, clicking links, or responding. > > > Call Ex interface to get HTTP headers and return to caller. > > Signed-off-by: Nickle Wang <nicklew@nvidia.com> > Cc: Abner Chang <abner.chang@amd.com> > Cc: Igor Kulchytskyy <igork@ami.com> > Cc: Nick Ramirez <nramirez@nvidia.com> > --- > RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > index f4045044829a..5e06d516ba84 100644 > --- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > +++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > @@ -356,7 +356,7 @@ RedfishGetByUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue = getUriFromService (RedfishService, Uri, &RedResponse- > >StatusCode); > + JsonValue = getUriFromServiceEx (RedfishService, Uri, &RedResponse- > >Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode); > RedResponse->Payload = createRedfishPayload (JsonValue, RedfishService); > > // > @@ -498,10 +498,12 @@ RedfishPatchToUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue = (EDKII_JSON_VALUE)patchUriFromService ( > + JsonValue = (EDKII_JSON_VALUE)patchUriFromServiceEx ( > RedfishService, > Uri, > Content, > + &(RedResponse->Headers), > + &(RedResponse->HeaderCount), > &(RedResponse->StatusCode) > ); > > @@ -661,12 +663,14 @@ RedfishPostToUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue = (EDKII_JSON_VALUE)postUriFromService ( > + JsonValue = (EDKII_JSON_VALUE)postUriFromServiceEx ( > RedfishService, > Uri, > Content, > ContentSize, > ContentType, > + &(RedResponse->Headers), > + &(RedResponse->HeaderCount), > &(RedResponse->StatusCode) > ); > > -- > 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110076): https://edk2.groups.io/g/devel/message/110076 Mute This Topic: https://groups.io/mt/102154017/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller 2023-10-26 6:09 ` Chang, Abner via groups.io @ 2023-10-26 12:49 ` Igor Kulchytskyy via groups.io 2023-10-26 12:58 ` Nickle Wang via groups.io 0 siblings, 1 reply; 7+ messages in thread From: Igor Kulchytskyy via groups.io @ 2023-10-26 12:49 UTC (permalink / raw) To: Chang, Abner, Nickle Wang, devel@edk2.groups.io; +Cc: Nick Ramirez Hi Nickle, Just one quick question. Is there any sense to return the headers for DELETE request? Thank you, Igor -----Original Message----- From: Chang, Abner <Abner.Chang@amd.com> Sent: Thursday, October 26, 2023 2:10 AM To: Nickle Wang <nicklew@nvidia.com>; devel@edk2.groups.io Cc: Igor Kulchytskyy <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> Subject: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller **CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments, clicking links, or following guidance.** [AMD Official Use Only - General] Reviewed-by: Abner Chang <abner.chang@amd.com> > -----Original Message----- > From: Nickle Wang <nicklew@nvidia.com> > Sent: Tuesday, October 24, 2023 4:40 PM > To: devel@edk2.groups.io > Cc: Chang, Abner <Abner.Chang@amd.com>; Igor Kulchytskyy > <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> > Subject: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller > > Caution: This message originated from an External Source. Use proper caution > when opening attachments, clicking links, or responding. > > > Call Ex interface to get HTTP headers and return to caller. > > Signed-off-by: Nickle Wang <nicklew@nvidia.com> > Cc: Abner Chang <abner.chang@amd.com> > Cc: Igor Kulchytskyy <igork@ami.com> > Cc: Nick Ramirez <nramirez@nvidia.com> > --- > RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > index f4045044829a..5e06d516ba84 100644 > --- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > +++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > @@ -356,7 +356,7 @@ RedfishGetByUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue = getUriFromService (RedfishService, Uri, &RedResponse- > >StatusCode); > + JsonValue = getUriFromServiceEx (RedfishService, Uri, &RedResponse- > >Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode); > RedResponse->Payload = createRedfishPayload (JsonValue, RedfishService); > > // > @@ -498,10 +498,12 @@ RedfishPatchToUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue = (EDKII_JSON_VALUE)patchUriFromService ( > + JsonValue = (EDKII_JSON_VALUE)patchUriFromServiceEx ( > RedfishService, > Uri, > Content, > + &(RedResponse->Headers), > + &(RedResponse->HeaderCount), > &(RedResponse->StatusCode) > ); > > @@ -661,12 +663,14 @@ RedfishPostToUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue = (EDKII_JSON_VALUE)postUriFromService ( > + JsonValue = (EDKII_JSON_VALUE)postUriFromServiceEx ( > RedfishService, > Uri, > Content, > ContentSize, > ContentType, > + &(RedResponse->Headers), > + &(RedResponse->HeaderCount), > &(RedResponse->StatusCode) > ); > > -- > 2.17.1 -The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110095): https://edk2.groups.io/g/devel/message/110095 Mute This Topic: https://groups.io/mt/102154017/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller 2023-10-26 12:49 ` Igor Kulchytskyy via groups.io @ 2023-10-26 12:58 ` Nickle Wang via groups.io 2023-10-26 13:09 ` Igor Kulchytskyy via groups.io 0 siblings, 1 reply; 7+ messages in thread From: Nickle Wang via groups.io @ 2023-10-26 12:58 UTC (permalink / raw) To: Igor Kulchytskyy, Chang, Abner, devel@edk2.groups.io; +Cc: Nick Ramirez Hi Igor, If the DELETE request to BMC is handled by Redfish task, we need to return HTTP header to caller so caller can get Task URI. But from BIOS Redfish perspective, I don't see this use case yet. Thanks, Nickle > -----Original Message----- > From: Igor Kulchytskyy <igork@ami.com> > Sent: Thursday, October 26, 2023 8:50 PM > To: Chang, Abner <Abner.Chang@amd.com>; Nickle Wang > <nicklew@nvidia.com>; devel@edk2.groups.io > Cc: Nick Ramirez <nramirez@nvidia.com> > Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > headers to caller > > External email: Use caution opening links or attachments > > > Hi Nickle, > Just one quick question. > Is there any sense to return the headers for DELETE request? > Thank you, > Igor > > -----Original Message----- > From: Chang, Abner <Abner.Chang@amd.com> > Sent: Thursday, October 26, 2023 2:10 AM > To: Nickle Wang <nicklew@nvidia.com>; devel@edk2.groups.io > Cc: Igor Kulchytskyy <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> > Subject: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > headers to caller > > > **CAUTION: The e-mail below is from an external source. Please exercise > caution before opening attachments, clicking links, or following guidance.** > > [AMD Official Use Only - General] > > Reviewed-by: Abner Chang <abner.chang@amd.com> > > > -----Original Message----- > > From: Nickle Wang <nicklew@nvidia.com> > > Sent: Tuesday, October 24, 2023 4:40 PM > > To: devel@edk2.groups.io > > Cc: Chang, Abner <Abner.Chang@amd.com>; Igor Kulchytskyy > > <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> > > Subject: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to > > caller > > > > Caution: This message originated from an External Source. Use proper > > caution when opening attachments, clicking links, or responding. > > > > > > Call Ex interface to get HTTP headers and return to caller. > > > > Signed-off-by: Nickle Wang <nicklew@nvidia.com> > > Cc: Abner Chang <abner.chang@amd.com> > > Cc: Igor Kulchytskyy <igork@ami.com> > > Cc: Nick Ramirez <nramirez@nvidia.com> > > --- > > RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 10 +++++++--- > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > index f4045044829a..5e06d516ba84 100644 > > --- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > +++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > @@ -356,7 +356,7 @@ RedfishGetByUri ( > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > - JsonValue = getUriFromService (RedfishService, Uri, &RedResponse- > > >StatusCode); > > + JsonValue = getUriFromServiceEx (RedfishService, Uri, &RedResponse- > > >Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode); > > RedResponse->Payload = createRedfishPayload (JsonValue, > > RedfishService); > > > > // > > @@ -498,10 +498,12 @@ RedfishPatchToUri ( > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > - JsonValue = (EDKII_JSON_VALUE)patchUriFromService ( > > + JsonValue = (EDKII_JSON_VALUE)patchUriFromServiceEx ( > > RedfishService, > > Uri, > > Content, > > + &(RedResponse->Headers), > > + &(RedResponse->HeaderCount), > > &(RedResponse->StatusCode) > > ); > > > > @@ -661,12 +663,14 @@ RedfishPostToUri ( > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > - JsonValue = (EDKII_JSON_VALUE)postUriFromService ( > > + JsonValue = (EDKII_JSON_VALUE)postUriFromServiceEx ( > > RedfishService, > > Uri, > > Content, > > ContentSize, > > ContentType, > > + &(RedResponse->Headers), > > + &(RedResponse->HeaderCount), > > &(RedResponse->StatusCode) > > ); > > > > -- > > 2.17.1 > > -The information contained in this message may be confidential and proprietary > to American Megatrends (AMI). This communication is intended to be read only by > the individual or entity to whom it is addressed or by their designee. If the reader > of this message is not the intended recipient, you are on notice that any > distribution of this message, in any form, is strictly prohibited. Please promptly > notify the sender by reply e-mail or by telephone at 770-246-8600, and then > delete or destroy all copies of the transmission. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110096): https://edk2.groups.io/g/devel/message/110096 Mute This Topic: https://groups.io/mt/102154017/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller 2023-10-26 12:58 ` Nickle Wang via groups.io @ 2023-10-26 13:09 ` Igor Kulchytskyy via groups.io 2023-10-26 13:20 ` Nickle Wang via groups.io 0 siblings, 1 reply; 7+ messages in thread From: Igor Kulchytskyy via groups.io @ 2023-10-26 13:09 UTC (permalink / raw) To: Nickle Wang, Chang, Abner, devel@edk2.groups.io; +Cc: Nick Ramirez You mean, for the Redfish task functionality other functions will be used? Thank you, Igor -----Original Message----- From: Nickle Wang <nicklew@nvidia.com> Sent: Thursday, October 26, 2023 8:58 AM To: Igor Kulchytskyy <igork@ami.com>; Chang, Abner <Abner.Chang@amd.com>; devel@edk2.groups.io Cc: Nick Ramirez <nramirez@nvidia.com> Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller Hi Igor, If the DELETE request to BMC is handled by Redfish task, we need to return HTTP header to caller so caller can get Task URI. But from BIOS Redfish perspective, I don't see this use case yet. Thanks, Nickle > -----Original Message----- > From: Igor Kulchytskyy <igork@ami.com> > Sent: Thursday, October 26, 2023 8:50 PM > To: Chang, Abner <Abner.Chang@amd.com>; Nickle Wang > <nicklew@nvidia.com>; devel@edk2.groups.io > Cc: Nick Ramirez <nramirez@nvidia.com> > Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > headers to caller > > External email: Use caution opening links or attachments > > > Hi Nickle, > Just one quick question. > Is there any sense to return the headers for DELETE request? > Thank you, > Igor > > -----Original Message----- > From: Chang, Abner <Abner.Chang@amd.com> > Sent: Thursday, October 26, 2023 2:10 AM > To: Nickle Wang <nicklew@nvidia.com>; devel@edk2.groups.io > Cc: Igor Kulchytskyy <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> > Subject: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > headers to caller > > > **CAUTION: The e-mail below is from an external source. Please exercise > caution before opening attachments, clicking links, or following guidance.** > > [AMD Official Use Only - General] > > Reviewed-by: Abner Chang <abner.chang@amd.com> > > > -----Original Message----- > > From: Nickle Wang <nicklew@nvidia.com> > > Sent: Tuesday, October 24, 2023 4:40 PM > > To: devel@edk2.groups.io > > Cc: Chang, Abner <Abner.Chang@amd.com>; Igor Kulchytskyy > > <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> > > Subject: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to > > caller > > > > Caution: This message originated from an External Source. Use proper > > caution when opening attachments, clicking links, or responding. > > > > > > Call Ex interface to get HTTP headers and return to caller. > > > > Signed-off-by: Nickle Wang <nicklew@nvidia.com> > > Cc: Abner Chang <abner.chang@amd.com> > > Cc: Igor Kulchytskyy <igork@ami.com> > > Cc: Nick Ramirez <nramirez@nvidia.com> > > --- > > RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 10 +++++++--- > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > index f4045044829a..5e06d516ba84 100644 > > --- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > +++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > @@ -356,7 +356,7 @@ RedfishGetByUri ( > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > - JsonValue = getUriFromService (RedfishService, Uri, &RedResponse- > > >StatusCode); > > + JsonValue = getUriFromServiceEx (RedfishService, Uri, &RedResponse- > > >Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode); > > RedResponse->Payload = createRedfishPayload (JsonValue, > > RedfishService); > > > > // > > @@ -498,10 +498,12 @@ RedfishPatchToUri ( > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > - JsonValue = (EDKII_JSON_VALUE)patchUriFromService ( > > + JsonValue = (EDKII_JSON_VALUE)patchUriFromServiceEx ( > > RedfishService, > > Uri, > > Content, > > + &(RedResponse->Headers), > > + &(RedResponse->HeaderCount), > > &(RedResponse->StatusCode) > > ); > > > > @@ -661,12 +663,14 @@ RedfishPostToUri ( > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > - JsonValue = (EDKII_JSON_VALUE)postUriFromService ( > > + JsonValue = (EDKII_JSON_VALUE)postUriFromServiceEx ( > > RedfishService, > > Uri, > > Content, > > ContentSize, > > ContentType, > > + &(RedResponse->Headers), > > + &(RedResponse->HeaderCount), > > &(RedResponse->StatusCode) > > ); > > > > -- > > 2.17.1 > > -The information contained in this message may be confidential and proprietary > to American Megatrends (AMI). This communication is intended to be read only by > the individual or entity to whom it is addressed or by their designee. If the reader > of this message is not the intended recipient, you are on notice that any > distribution of this message, in any form, is strictly prohibited. Please promptly > notify the sender by reply e-mail or by telephone at 770-246-8600, and then > delete or destroy all copies of the transmission. -The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110097): https://edk2.groups.io/g/devel/message/110097 Mute This Topic: https://groups.io/mt/102154017/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller 2023-10-26 13:09 ` Igor Kulchytskyy via groups.io @ 2023-10-26 13:20 ` Nickle Wang via groups.io 2023-10-26 13:30 ` Igor Kulchytskyy via groups.io 0 siblings, 1 reply; 7+ messages in thread From: Nickle Wang via groups.io @ 2023-10-26 13:20 UTC (permalink / raw) To: Igor Kulchytskyy, Chang, Abner, devel@edk2.groups.io; +Cc: Nick Ramirez According to my experience, BIOS Redfish is usually the owner to handle Redfish task request, not the user to create task. So, I think that BIOS has no chance to read HTTP header in DELETE request/response. But from specification perspective, Redfish task URI can be returned in HTTP header in DELETE request. Regards, Nickle > -----Original Message----- > From: Igor Kulchytskyy <igork@ami.com> > Sent: Thursday, October 26, 2023 9:09 PM > To: Nickle Wang <nicklew@nvidia.com>; Chang, Abner > <Abner.Chang@amd.com>; devel@edk2.groups.io > Cc: Nick Ramirez <nramirez@nvidia.com> > Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > headers to caller > > External email: Use caution opening links or attachments > > > You mean, for the Redfish task functionality other functions will be used? > Thank you, > Igor > > -----Original Message----- > From: Nickle Wang <nicklew@nvidia.com> > Sent: Thursday, October 26, 2023 8:58 AM > To: Igor Kulchytskyy <igork@ami.com>; Chang, Abner <Abner.Chang@amd.com>; > devel@edk2.groups.io > Cc: Nick Ramirez <nramirez@nvidia.com> > Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > headers to caller > > Hi Igor, > > If the DELETE request to BMC is handled by Redfish task, we need to return HTTP > header to caller so caller can get Task URI. But from BIOS Redfish perspective, I > don't see this use case yet. > > Thanks, > Nickle > > > -----Original Message----- > > From: Igor Kulchytskyy <igork@ami.com> > > Sent: Thursday, October 26, 2023 8:50 PM > > To: Chang, Abner <Abner.Chang@amd.com>; Nickle Wang > > <nicklew@nvidia.com>; devel@edk2.groups.io > > Cc: Nick Ramirez <nramirez@nvidia.com> > > Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return > > HTTP headers to caller > > > > External email: Use caution opening links or attachments > > > > > > Hi Nickle, > > Just one quick question. > > Is there any sense to return the headers for DELETE request? > > Thank you, > > Igor > > > > -----Original Message----- > > From: Chang, Abner <Abner.Chang@amd.com> > > Sent: Thursday, October 26, 2023 2:10 AM > > To: Nickle Wang <nicklew@nvidia.com>; devel@edk2.groups.io > > Cc: Igor Kulchytskyy <igork@ami.com>; Nick Ramirez > > <nramirez@nvidia.com> > > Subject: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > > headers to caller > > > > > > **CAUTION: The e-mail below is from an external source. Please > > exercise caution before opening attachments, clicking links, or > > following guidance.** > > > > [AMD Official Use Only - General] > > > > Reviewed-by: Abner Chang <abner.chang@amd.com> > > > > > -----Original Message----- > > > From: Nickle Wang <nicklew@nvidia.com> > > > Sent: Tuesday, October 24, 2023 4:40 PM > > > To: devel@edk2.groups.io > > > Cc: Chang, Abner <Abner.Chang@amd.com>; Igor Kulchytskyy > > > <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> > > > Subject: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to > > > caller > > > > > > Caution: This message originated from an External Source. Use proper > > > caution when opening attachments, clicking links, or responding. > > > > > > > > > Call Ex interface to get HTTP headers and return to caller. > > > > > > Signed-off-by: Nickle Wang <nicklew@nvidia.com> > > > Cc: Abner Chang <abner.chang@amd.com> > > > Cc: Igor Kulchytskyy <igork@ami.com> > > > Cc: Nick Ramirez <nramirez@nvidia.com> > > > --- > > > RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 10 +++++++--- > > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > > > diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > > b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > > index f4045044829a..5e06d516ba84 100644 > > > --- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > > +++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > > @@ -356,7 +356,7 @@ RedfishGetByUri ( > > > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > > > - JsonValue = getUriFromService (RedfishService, Uri, &RedResponse- > > > >StatusCode); > > > + JsonValue = getUriFromServiceEx (RedfishService, Uri, > &RedResponse- > > > >Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode); > > > RedResponse->Payload = createRedfishPayload (JsonValue, > > > RedfishService); > > > > > > // > > > @@ -498,10 +498,12 @@ RedfishPatchToUri ( > > > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > > > - JsonValue = (EDKII_JSON_VALUE)patchUriFromService ( > > > + JsonValue = (EDKII_JSON_VALUE)patchUriFromServiceEx ( > > > RedfishService, > > > Uri, > > > Content, > > > + &(RedResponse->Headers), > > > + &(RedResponse->HeaderCount), > > > &(RedResponse->StatusCode) > > > ); > > > > > > @@ -661,12 +663,14 @@ RedfishPostToUri ( > > > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > > > - JsonValue = (EDKII_JSON_VALUE)postUriFromService ( > > > + JsonValue = (EDKII_JSON_VALUE)postUriFromServiceEx ( > > > RedfishService, > > > Uri, > > > Content, > > > ContentSize, > > > ContentType, > > > + &(RedResponse->Headers), > > > + &(RedResponse->HeaderCount), > > > &(RedResponse->StatusCode) > > > ); > > > > > > -- > > > 2.17.1 > > > > -The information contained in this message may be confidential and > > proprietary to American Megatrends (AMI). This communication is > > intended to be read only by the individual or entity to whom it is > > addressed or by their designee. If the reader of this message is not > > the intended recipient, you are on notice that any distribution of > > this message, in any form, is strictly prohibited. Please promptly > > notify the sender by reply e-mail or by telephone at 770-246-8600, and then > delete or destroy all copies of the transmission. > -The information contained in this message may be confidential and proprietary > to American Megatrends (AMI). This communication is intended to be read only by > the individual or entity to whom it is addressed or by their designee. If the reader > of this message is not the intended recipient, you are on notice that any > distribution of this message, in any form, is strictly prohibited. Please promptly > notify the sender by reply e-mail or by telephone at 770-246-8600, and then > delete or destroy all copies of the transmission. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110098): https://edk2.groups.io/g/devel/message/110098 Mute This Topic: https://groups.io/mt/102154017/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller 2023-10-26 13:20 ` Nickle Wang via groups.io @ 2023-10-26 13:30 ` Igor Kulchytskyy via groups.io 0 siblings, 0 replies; 7+ messages in thread From: Igor Kulchytskyy via groups.io @ 2023-10-26 13:30 UTC (permalink / raw) To: Nickle Wang, Chang, Abner, devel@edk2.groups.io; +Cc: Nick Ramirez Reviewed-by: Igor Kulchytskyy <igork@ami.com> Reviewed the whole PATCH -----Original Message----- From: Nickle Wang <nicklew@nvidia.com> Sent: Thursday, October 26, 2023 9:20 AM To: Igor Kulchytskyy <igork@ami.com>; Chang, Abner <Abner.Chang@amd.com>; devel@edk2.groups.io Cc: Nick Ramirez <nramirez@nvidia.com> Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller According to my experience, BIOS Redfish is usually the owner to handle Redfish task request, not the user to create task. So, I think that BIOS has no chance to read HTTP header in DELETE request/response. But from specification perspective, Redfish task URI can be returned in HTTP header in DELETE request. Regards, Nickle > -----Original Message----- > From: Igor Kulchytskyy <igork@ami.com> > Sent: Thursday, October 26, 2023 9:09 PM > To: Nickle Wang <nicklew@nvidia.com>; Chang, Abner > <Abner.Chang@amd.com>; devel@edk2.groups.io > Cc: Nick Ramirez <nramirez@nvidia.com> > Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > headers to caller > > External email: Use caution opening links or attachments > > > You mean, for the Redfish task functionality other functions will be used? > Thank you, > Igor > > -----Original Message----- > From: Nickle Wang <nicklew@nvidia.com> > Sent: Thursday, October 26, 2023 8:58 AM > To: Igor Kulchytskyy <igork@ami.com>; Chang, Abner <Abner.Chang@amd.com>; > devel@edk2.groups.io > Cc: Nick Ramirez <nramirez@nvidia.com> > Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > headers to caller > > Hi Igor, > > If the DELETE request to BMC is handled by Redfish task, we need to return HTTP > header to caller so caller can get Task URI. But from BIOS Redfish perspective, I > don't see this use case yet. > > Thanks, > Nickle > > > -----Original Message----- > > From: Igor Kulchytskyy <igork@ami.com> > > Sent: Thursday, October 26, 2023 8:50 PM > > To: Chang, Abner <Abner.Chang@amd.com>; Nickle Wang > > <nicklew@nvidia.com>; devel@edk2.groups.io > > Cc: Nick Ramirez <nramirez@nvidia.com> > > Subject: RE: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return > > HTTP headers to caller > > > > External email: Use caution opening links or attachments > > > > > > Hi Nickle, > > Just one quick question. > > Is there any sense to return the headers for DELETE request? > > Thank you, > > Igor > > > > -----Original Message----- > > From: Chang, Abner <Abner.Chang@amd.com> > > Sent: Thursday, October 26, 2023 2:10 AM > > To: Nickle Wang <nicklew@nvidia.com>; devel@edk2.groups.io > > Cc: Igor Kulchytskyy <igork@ami.com>; Nick Ramirez > > <nramirez@nvidia.com> > > Subject: [EXTERNAL] RE: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP > > headers to caller > > > > > > **CAUTION: The e-mail below is from an external source. Please > > exercise caution before opening attachments, clicking links, or > > following guidance.** > > > > [AMD Official Use Only - General] > > > > Reviewed-by: Abner Chang <abner.chang@amd.com> > > > > > -----Original Message----- > > > From: Nickle Wang <nicklew@nvidia.com> > > > Sent: Tuesday, October 24, 2023 4:40 PM > > > To: devel@edk2.groups.io > > > Cc: Chang, Abner <Abner.Chang@amd.com>; Igor Kulchytskyy > > > <igork@ami.com>; Nick Ramirez <nramirez@nvidia.com> > > > Subject: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to > > > caller > > > > > > Caution: This message originated from an External Source. Use proper > > > caution when opening attachments, clicking links, or responding. > > > > > > > > > Call Ex interface to get HTTP headers and return to caller. > > > > > > Signed-off-by: Nickle Wang <nicklew@nvidia.com> > > > Cc: Abner Chang <abner.chang@amd.com> > > > Cc: Igor Kulchytskyy <igork@ami.com> > > > Cc: Nick Ramirez <nramirez@nvidia.com> > > > --- > > > RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 10 +++++++--- > > > 1 file changed, 7 insertions(+), 3 deletions(-) > > > > > > diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > > b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > > index f4045044829a..5e06d516ba84 100644 > > > --- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > > +++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > > > @@ -356,7 +356,7 @@ RedfishGetByUri ( > > > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > > > - JsonValue = getUriFromService (RedfishService, Uri, &RedResponse- > > > >StatusCode); > > > + JsonValue = getUriFromServiceEx (RedfishService, Uri, > &RedResponse- > > > >Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode); > > > RedResponse->Payload = createRedfishPayload (JsonValue, > > > RedfishService); > > > > > > // > > > @@ -498,10 +498,12 @@ RedfishPatchToUri ( > > > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > > > - JsonValue = (EDKII_JSON_VALUE)patchUriFromService ( > > > + JsonValue = (EDKII_JSON_VALUE)patchUriFromServiceEx ( > > > RedfishService, > > > Uri, > > > Content, > > > + &(RedResponse->Headers), > > > + &(RedResponse->HeaderCount), > > > &(RedResponse->StatusCode) > > > ); > > > > > > @@ -661,12 +663,14 @@ RedfishPostToUri ( > > > > > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > > > > > - JsonValue = (EDKII_JSON_VALUE)postUriFromService ( > > > + JsonValue = (EDKII_JSON_VALUE)postUriFromServiceEx ( > > > RedfishService, > > > Uri, > > > Content, > > > ContentSize, > > > ContentType, > > > + &(RedResponse->Headers), > > > + &(RedResponse->HeaderCount), > > > &(RedResponse->StatusCode) > > > ); > > > > > > -- > > > 2.17.1 > > > > -The information contained in this message may be confidential and > > proprietary to American Megatrends (AMI). This communication is > > intended to be read only by the individual or entity to whom it is > > addressed or by their designee. If the reader of this message is not > > the intended recipient, you are on notice that any distribution of > > this message, in any form, is strictly prohibited. Please promptly > > notify the sender by reply e-mail or by telephone at 770-246-8600, and then > delete or destroy all copies of the transmission. > -The information contained in this message may be confidential and proprietary > to American Megatrends (AMI). This communication is intended to be read only by > the individual or entity to whom it is addressed or by their designee. If the reader > of this message is not the intended recipient, you are on notice that any > distribution of this message, in any form, is strictly prohibited. Please promptly > notify the sender by reply e-mail or by telephone at 770-246-8600, and then > delete or destroy all copies of the transmission. -The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110099): https://edk2.groups.io/g/devel/message/110099 Mute This Topic: https://groups.io/mt/102154017/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-10-26 13:30 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-10-24 8:39 [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller Nickle Wang via groups.io 2023-10-26 6:09 ` Chang, Abner via groups.io 2023-10-26 12:49 ` Igor Kulchytskyy via groups.io 2023-10-26 12:58 ` Nickle Wang via groups.io 2023-10-26 13:09 ` Igor Kulchytskyy via groups.io 2023-10-26 13:20 ` Nickle Wang via groups.io 2023-10-26 13:30 ` Igor Kulchytskyy via groups.io
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox