Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Multiple home page URLs stopped working - "Your file was not found" #6913

Closed
JeffStarr opened this issue Jan 29, 2017 · 12 comments
Closed

Multiple home page URLs stopped working - "Your file was not found" #6913

JeffStarr opened this issue Jan 29, 2017 · 12 comments

Comments

@JeffStarr
Copy link

JeffStarr commented Jan 29, 2017

This worked great before the last update. Here is an example of the syntax that worked before:

file:///start.html||https://start.duckduckgo.com/|https://google.com/|https://bing.com/|...

That syntax is common way to specify multiple home page tabs in browsers.

Suddenly it stopped working in version 0.13.0; no home tabs load, only an error tab that says:

Your file was not found
It may have been moved or deleted.
ERR_FILE_NOT_FOUND

Hopefully you can get this fixed soon. I want to continue using Brave, but need that multiple-tab startup or it's a deal-breaker. Thanks again for a great browser.

#3110

Test plan

#6922 (comment)

@JeffStarr
Copy link
Author

Updated to add that the error is different depending on the URLs specified in the "My home page is" setting. If the setting (using vertical pipes to specify multiple URLs) begins with a local file, the "Your file was not found" error is displayed. Otherwise, if the setting begins with an HTTP address, like https://google.com, then the error isn't displayed, but only one tab loads up the entire URL, for example:

https://start.duckduckgo.com/|https://google.com/|https://bing.com/|...

..which leads to crazy undesirable results.

Either case, the setting worked great before 0.13.0.

@cndouglas
Copy link

I can reproduce with 0.13.0 on macOS 10.12.x. I think the pipe | is being encoded as part of the URL.

@cndouglas cndouglas added the bug label Jan 29, 2017
@cndouglas
Copy link

@bsclifton Could this have been caused by #6086?

Also, do we have any automated tests for multiple home pages?

@bsclifton
Copy link
Member

@liunkae no, I don't believe it was caused with that. If I had to guess, I would think maybe it was caused by the encodeURI in #6404

cc: @NejcZdovc

@NejcZdovc
Copy link
Contributor

NejcZdovc commented Jan 30, 2017

@bsclifton I tried locally reverting this commit and #6404 is not a cause for this problem. This commit/function is executed only on event drop.

@bsclifton
Copy link
Member

Thanks for checking that out, @NejcZdovc! 😄

We'll need to investigate further to determine what changed. It's important to note that we never explicitly enabled this functionality (it just "worked"). The feature itself is captured with #3110

@bsclifton bsclifton added needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. settings labels Jan 30, 2017
@NejcZdovc NejcZdovc self-assigned this Jan 30, 2017
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jan 30, 2017
Resolves brave#6913

Auditors:
@bsclifton

Test Plan:
- set home page url with multiple url's value
- home pages should be opened correctly
@NejcZdovc NejcZdovc mentioned this issue Jan 30, 2017
4 tasks
@NejcZdovc NejcZdovc removed the needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. label Jan 30, 2017
@NejcZdovc
Copy link
Contributor

And a side note, this is not related to the file in the url, same problem occure if you use multiple pages

@srirambv
Copy link
Collaborator

srirambv commented Jan 30, 2017

@bsclifton @NejcZdovc here's what I found

  1. Multiple home pages is not recognized and opened in individual tabs only on browser launch
  2. Clicking on home button (with only web links set) opens all the sites in individual tabs
  3. If only a file is set as home page, clicking home button loads the file but doesn't load the file on browser launch
    4. Local file and web pages set as home page(like above), clicking on home button only loads the sites and not the local file

Also https prefix is not required, I just used the domain names separated with | and it worked

Edit: step 4 works, File is opened in the same tab where the home button is pressed

@srirambv
Copy link
Collaborator

srirambv commented Jan 30, 2017

"Your file was not found" error is displayed.

This shows only when the new tab is set to homepage. Like @liunkae said | is parsed into %7C. But if the new tab is set to dashboard it loads the files and the sites

@NejcZdovc
Copy link
Contributor

Will cover all scenarios that you listed above in #6922

@NejcZdovc
Copy link
Contributor

NejcZdovc commented Jan 30, 2017

@srirambv Can you please check out #6922 and test if everything is fine. The only thing missing there are tests, other then that should be done. Thank you

@srirambv
Copy link
Collaborator

@NejcZdovc verifed #6922 Works perfect as per the test plan mentioned. 👍

@NejcZdovc NejcZdovc added this to the 0.13.3 milestone Jan 31, 2017
@bsclifton bsclifton added regression and removed bug labels Feb 1, 2017
@bsclifton bsclifton modified the milestones: 0.13.2, 0.13.3 Feb 1, 2017
bsclifton pushed a commit to NejcZdovc/browser-laptop that referenced this issue Feb 1, 2017
Resolves brave#6913

Auditors:
@bsclifton, @bradleyrichter

Test Plan:
- set home page url with multiple url's value
- home pages should be opened correctly

Includes automated tests

Also see wiki entry at https://github.com/brave/browser-laptop/wiki/End-User-FAQ#how-to-set-up-multiple-home-pages
bsclifton added a commit that referenced this issue Feb 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.