Skip to content

RDKEMW-7489: Adding Href support#54

Merged
madanagopalt merged 1 commit into
developfrom
topic/RDKEMW-7489
Sep 6, 2025
Merged

RDKEMW-7489: Adding Href support#54
madanagopalt merged 1 commit into
developfrom
topic/RDKEMW-7489

Conversation

@trupthi1403
Copy link
Copy Markdown
Contributor

Reason for change: Added Support for Random Num Generator,
                    Local Storage class,
                    Updated node-fetch file for header support
Risks: Low
Priority: P1

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 2 files pending identification.

  • Protex Server Path: /home/blackduck/github/rdkNativeScript/54/rdkcentral/rdkNativeScript

  • Commit: 424674e

Report detail: gist'

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
: rtHttpRequest(url)
{ }
{
printf("HTTP OBJECT CREATED \n");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this print

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
: rtHttpRequest(options)
{ }
{
printf("HTTP OBJECT CREATED 1 \n");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print

Comment thread src/jsc/JavaScriptUtils.cpp Outdated

void onDownloadProgressImpl(double progress) final
{
printf("DOWNLOAD COMPLETED ............. \n");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print

Comment thread src/jsc/JavaScriptUtils.cpp Outdated

void onDownloadCompleteImpl(rtFileDownloadRequest* downloadRequest) final
{
printf("DOWNLOAD COMPLETED ............. \n");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print

@rdkcmf-jenkins
Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/rdkNativeScript/54/rdkcentral/rdkNativeScript

  • Commit: 424674e

Report detail: gist'

Copy link
Copy Markdown
Contributor

@madanagopalt madanagopalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kindly look at comments

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
}

rtObjectRef protectedRef = resp;
printf("DOWNLOAD COMPLETED ............. \n");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
{
UNUSED_PARAM(context);

printf("CREATING OBJECT HERE1 ........\n");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print

Comment thread src/jsc/JavaScriptUtils.cpp Outdated

rtHttpRequest* req;
if (args[0].getType() == RT_stringType) {
printf("CREATING OBJECT HERE ........\n");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
return RT_ERROR_INVALID_ARG;
}
rtLogInfo("new rtHttpRequest");
printf("CREATING OBJECT HERE 2........\n");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this print

this.url.query += utf8PercentEncodeString(this.buffer, queryPercentEncodePredicate);


// HACK
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention as TODO: Check for encryption

obj[hostHeaderKey] = obj[hostHeaderKey][0];
// Convert all header values from arrays to strings for Node.js compatibility
for (const key in obj) {
if (Array.isArray(obj[key])) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if non array?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments addressed

Comment thread src/jsc/JavaScriptUtils.cpp Outdated

void onDownloadCompleteImpl(rtFileDownloadRequest* downloadRequest) final
{
fflush(stdout);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this fflush

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
void onDownloadProgressImpl(double progress) final
{

fflush(stdout);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this ffush

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
: rtHttpRequest(url)
{ }
{
fflush(stdout);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this fflush

{
if (mExternalApplicationHandler)
{
printf("Got exteranl application set [%s] in id [%d] \n", url.c_str(), mIds);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this print

Comment thread src/jsc/JavaScriptUtils.cpp Outdated
}

rtObjectRef protectedRef = resp;
fflush(stdout);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this fflush

Copy link
Copy Markdown
Contributor

@madanagopalt madanagopalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove all fflush

Reason for change: Added Support for Random Num Generator,
                    Local Storage class,
                    Updated node-fetch file for header support
Risks: Low
Priority: P1
@madanagopalt madanagopalt merged commit 829286c into develop Sep 6, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants