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

Show external storage status in file list + prompt credentials if different #20427

Closed
PVince81 opened this issue Nov 10, 2015 · 11 comments
Closed

Comments

@PVince81
Copy link
Contributor

  • Whenever an external storage triggers a specific exception (to be determined), the exception must be propagated to the file list JS.
  • the filelist row must be shown in red if there is a credentials issue
  • the user should be able to click the row and a credentials popup will ask for credentials (this only if the exception was related to wrong credentials, not StorageNotAvailable)

Open questions:

  • need to find the right place in the filesystem code to identify storage availability and return this through Webdav (remember, in the future we only use webdav)
  • OR have additional JS code loaded in the files app that checks the mount points after the file list was loaded (similar to how it used to be done in the WND) app. That part might be easier to implement.

@jmaciasportela @icewind1991

@RobinMcCorkell
Copy link
Member

As a more generic method than a credentials popup, we should rather send the user to the external storage configuration section if the external storage is unavailable and they click on the entry in the file list. It will reduce the overall code complexity and re-use the configuration GUI

@icewind1991
Copy link
Contributor

Will that work correctly if it's an admin setup mount where the user will need to enter the password (use case for WND)

@RobinMcCorkell
Copy link
Member

@icewind1991 Yes, since once #18999 is merged (which needs a rebase and re-review then it's ready) all applicable global storages will be displayed in the personal settings, and the credentials for said storages can be directly modified by the user

@jmaciasportela
Copy link
Contributor

@Xenopathic I'm mixing some javascript from WND app with files_external. Big part can be reused. Once I will have a working version we will discuss about the best UX.

@jmaciasportela
Copy link
Contributor

Some advances:
reloades

http://docker.oc.solidgear.es:53648

Branch: core/issue_20427

@PVince81
Copy link
Contributor Author

Requires: #11792

The reason why the invalid mount doesn't appear under "All files" is because the mount point might get discarded when invalid. We should change the behavior and always show the mount point folder, but entering it will throw StorageNotAvailable. #11792

@jmaciasportela
Copy link
Contributor

@PVince81
Copy link
Contributor Author

PVince81 commented Dec 1, 2015

@jmaciasportela your PR #20569 already shows the icons, I think it's enough for 9.0.

@PVince81
Copy link
Contributor Author

@PVince81
Copy link
Contributor Author

PVince81 commented Feb 5, 2016

Dialog as added, closing.

@PVince81 PVince81 closed this as completed Feb 5, 2016
@lock
Copy link

lock bot commented Aug 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
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