dvcol / synology-download

Synology Download Station browser extension built with React.
https://dvcol.github.io/synology-download/
MIT License
57 stars 6 forks source link

[bug]: Logged in user unable to fetch folders or customize folders in Context Menu #210

Closed mefixxx closed 1 year ago

mefixxx commented 1 year ago

Affected part

Connection (login/fetching)

Extension version

3.6.0

DSM version

DSM 7.1.1-42962 Update 5

Browser version

Chrome 112.0.5615.138

Description

After successfully logging in using either admin/custom/dedicated extension user

image

extension fails to load folders when attempting to interact with magnet links or attempting to customize context menu options

image

Note: Normal download management in browser is disabled (why is it even there)

Steps to Reproduce the Issue

Successfully Log in with credentials Attempt to enable Custom Folder in Context menu.

Screenshots or Mock up

No response

Failure Logs

[{"timestamp":"2023-06-03T13:27:28.632Z","level":4,"source":"background","value":"Polling service failed to fetch list","params":"Error: The logged in session does not have permission"},{"timestamp":"2023-06-03T13:27:28.712Z","level":4,"source":"background","value":"Polling service failed to fetch statistics","params":"Error: The logged in session does not have permission"},{"timestamp":"2023-06-03T13:27:29.954Z","level":4,"source":"option","value":"Failed load folders.","params":"Error: Invalid session."}]

Store snapshots

No response

dvcol commented 1 year ago

Hello,

From what the log seems to indicate, the issue seems to come from the Synology session rights.

For the custom destination modal, you need to have a session with read/write access to FileStation, not just DownloadStation.

image

Can you check if this is the case ?

Note that the extension sues cookie session ID so if you have an open session on the same domain with lesser permission, it might prevent full fonctionalities

dvcol commented 1 year ago

Note: Normal download management in browser is disabled (why is it even there)

This should have no impact, it just mean you won't be able to redirect local downloads to the diskstation or intercept local downloads automatically

mefixxx commented 1 year ago

Yeah it did have permissions for both file station and downloaded station. I ended up fixing it by giving it permissions not only to the destination subfolder of the volume but to the entire volume itself. Running smoothly now! Ty!

dvcol commented 1 year ago

Awesome, I'm closing this issue then :)

If you're enjoying the application, don't hesitate to leave a review in the store, it's always appreciated :)

jwmann commented 11 months ago

I had this issue and all my permissions were correct.

The way I fixed it:

1) Go to Extension Settings -> Connection -> Credientials 2) Click "Logout" 3) Once logged out. Click "Login"

That's it 😕