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

BAT preferences page sometimes shows internal publisher URI rather than friendly version... #12591

Closed
mrose17 opened this issue Jan 10, 2018 · 7 comments

Comments

@mrose17
Copy link
Member

mrose17 commented Jan 10, 2018

Here are two entries from my ledger synopsis:

0

the first entry is "correct" in that it shows the name of the channel and ciicking on the link takes me to the videos page for the channel.

the second entry is "wrong" in that it shows the internal URI instead of the channel name and clicking on the link results in an error since the link resolves to the exact string you see above.

@NejcZdovc
Copy link
Contributor

@mrose17 do you have STR?

@NejcZdovc NejcZdovc added needs-info Another team member needs information from the PR/issue opener. needs-STR This bug needs steps to reproduce. labels Jan 15, 2018
@mrose17
Copy link
Member Author

mrose17 commented Jan 15, 2018

i'm not sure how to reproduce it. perhaps i am the only one seeing this!

@NejcZdovc
Copy link
Contributor

@brave/qa did you experience anything like this? I know that we have one logged #12271

@mrose17
Copy link
Member Author

mrose17 commented Jan 17, 2018

@NejcZdovc - i am still seeing this. let me suggest a work-around until we can figure out what's going on. if you have a display string of youtube#channel:... change the underlying URL to https://www.youtube.com/channel/... .

you might also add code to the browser so that when LEDGER_VERBOSE=true it prints something out when it adds this to the synopsis.

@NejcZdovc NejcZdovc removed needs-STR This bug needs steps to reproduce. needs-info Another team member needs information from the PR/issue opener. labels Jan 18, 2018
@NejcZdovc NejcZdovc self-assigned this Jan 18, 2018
@NejcZdovc NejcZdovc added this to the 0.19.x Hotfix 13 milestone Jan 18, 2018
@NejcZdovc
Copy link
Contributor

NejcZdovc commented Jan 18, 2018

I don't have STR, but this just happened to me as well. Created safety mechanism that solved it for me. Will PR it

An uncaught exception occurred in the main process Uncaught Exception:
TypeError: Cannot set property 'faviconName' of undefined
    at Object.onMediaPublisher (/Users/nejczdovc/Work/OpenSource/browser-laptop/app/browser/api/ledger.js:2428:51)
    at ledgerReducer (/Users/nejczdovc/Work/OpenSource/browser-laptop/app/browser/reducers/ledgerReducer.js:468:27)
    at reducers.reduce (/Users/nejczdovc/Work/OpenSource/browser-laptop/js/stores/appStore.js:384:24)
    at Array.reduce (<anonymous>)
    at applyReducers (/Users/nejczdovc/Work/OpenSource/browser-laptop/js/stores/appStore.js:382:68)
    at handleAppAction (/Users/nejczdovc/Work/OpenSource/browser-laptop/js/stores/appStore.js:441:16)
    at callbacks.forEach (/Users/nejczdovc/Work/OpenSource/browser-laptop/js/dispatcher/appDispatcher.js:107:7)
    at Array.forEach (<anonymous>)
    at AppDispatcher.dispatchToOwnRegisteredCallbacks (/Users/nejczdovc/Work/OpenSource/browser-laptop/js/dispatcher/appDispatcher.js:106:20)
    at AppDispatcher.dispatchInternal (/Users/nejczdovc/Work/OpenSource/browser-laptop/js/dispatcher/appDispatcher.js:132:10)
    at async.cargo (/Users/nejczdovc/Work/OpenSource/browser-laptop/js/dispatcher/appDispatcher.js:213:19)
    at process (/Users/nejczdovc/Work/OpenSource/browser-laptop/node_modules/async/dist/async.js:2317:17)
    at Immediate.<anonymous> (/Users/nejczdovc/Work/OpenSource/browser-laptop/node_modules/async/dist/async.js:66:16)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)

NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jan 18, 2018
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue Jan 18, 2018
@mrose17
Copy link
Member Author

mrose17 commented Jan 18, 2018

@NejcZdovc - excellent! can you also make the fix i suggest above in terms of fixing the URL on the preferences page?

bsclifton added a commit that referenced this issue Jan 18, 2018
Fixes undefined synopsis for media publishers
bsclifton added a commit that referenced this issue Jan 18, 2018
Fixes undefined synopsis for media publishers
bsclifton added a commit that referenced this issue Jan 18, 2018
Fixes undefined synopsis for media publishers
bsclifton added a commit that referenced this issue Jan 18, 2018
Fixes undefined synopsis for media publishers
@kjozwiak
Copy link
Member

As discussed in slack, this case will be covered by QA when going through the manual regression passes. Example: https://github.com/brave/qa-resources/blob/master/wikitemplate.md#ledger

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants