Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to check for updates links needs to be redirected #451

Closed
srirambv opened this issue Jun 29, 2018 · 9 comments
Closed

Failed to check for updates links needs to be redirected #451

srirambv opened this issue Jun 29, 2018 · 9 comments

Comments

@srirambv
Copy link
Contributor

Description

Failed to check for updates links needs to be redirected

Steps to Reproduce

  1. Build from source d3d5670
  2. Open chrome://chrome from chrome://about
  3. Shows error updating. Error code links to community page by just appending the code at the end of the URL. Learn more links to Google support page

Actual result:

image

Expected result:

Error code link should be specific link on community. Learn more should link to the same page

Reproduces how often:

100%

Brave version (about:brave info)

d3d5670 release build from source

Additional Information

cc: @bbondy @yrliou

@simonhong
Copy link
Member

simonhong commented Jun 30, 2018

That html error message is made by below in UpdateCheckDriver::OnUpgradeError.

...
  base::string16 html_error_msg =
      base::StringPrintf(L"%d: <a href='%ls0x%X' target=_blank>0x%X</a>",
                         error_code_, base::UTF8ToUTF16(
                             chrome::kUpgradeHelpCenterBaseURL).c_str(),
                         hresult_, hresult_);
...
}

And learn more link is made by below in about_page.html.

                  <a hidden$="[[!shouldShowLearnMoreLink_(
                      currentUpdateStatusEvent_)]]" target="_blank"
                      href="https://support.google.com/chrome?p=update_error">
                    $i18n{learnMore}
                  </a>

@srirambv
Copy link
Contributor Author

srirambv commented Aug 2, 2018

Happens when this message is received as well
image

@bbondy
Copy link
Member

bbondy commented Aug 3, 2018

maybe wes hould just set shouldShowLearnMoreLink_ to false?

@simonhong simonhong self-assigned this Aug 13, 2018
@simonhong
Copy link
Member

@bbondy , what is preferred way? deleting all links or replacing all links with community.brave.com?

@bbondy
Copy link
Member

bbondy commented Aug 13, 2018

I think replacing with community.brave.com. Please CC me on any PR for that though.
I think @Brave-Matt is working on getting real links for those.

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Aug 28, 2018

Validated the issue on:

Brave 0.54.2 Chromium: 69.0.3497.42 (Official Build) dev (64-bit)
Revision 9c4613c66dfeb2b76ef6dd4b15884c15db3b4969-refs/branch-heads/3497@{#655}
OS Windows

@srirambv srirambv removed the QA/Yes label Sep 24, 2018
@bbondy bbondy added the QA/Yes label Sep 27, 2018
@kjozwiak
Copy link
Member

kjozwiak commented Oct 3, 2018

@bbondy checked that the clicking on the Learn more link correctly points to https://community.brave.com/?p=update_error when disconnecting the internet but is there another way to check the other error codes?

@bbondy
Copy link
Member

bbondy commented Oct 3, 2018

not sure, but I think that's a good enough test.

@kjozwiak
Copy link
Member

kjozwiak commented Oct 3, 2018

Thanks for the quick response 👍 Really appreciate it!

Went through verification using the following build under macOS 10.13.6 x64 - PASSED

Brave 0.55.10 Chromium: 70.0.3538.22 (Official Build) beta(64-bit)
Revision ac9418ba9c3bd7f6baaffa0b055dfe147e0f8364-refs/branch-heads/3538@{#468}
OS Mac OS X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment