Comments (4)
@Liryna: Sorry for the delay - got bogged down by problems with the upgrade of my development rig to Windows 10.
Will get back on track during the coming week.
Cheers vv
from dokancloudfs.
Hi Liryna,
I've finally gotten around to addressing this very old issue and I'd like to discuss the best way of fixing the present unwanted behavior.
What we're seeing is that when the initial authentication for a cloud drive right after its being mounted fails - because the user aborts or closes the login window or possibly enters invalid credentials - additional instances of the login window keep popping up until hell freezes over.
Your suggestion of checking credentials before mounting does not integrate well with the current control flow in CloudFS/DokanCloudFS because authentication is presently triggered on demand for whatever API method is called first on a specific cloud drive. Since the CloudFS gateways could in theory be used in other contexts than a Dokan-based file sytem driver, I'd rather keep this very generic approach to authentication.
Having said this, do you know of any means to signal a persistent authentication failure back to the Dokan driver via an NtResult
and thus keep it from calling the same API method (specifically DokanOperations.GetFileInformation("\", ...)
) all over again in spite of repeated errors?
I have so far tried
- throwing back an
AuthenticationException
- returning
NtResult.AccessDenied
- returning
NtResult.Error
but nothing appears to stop the cycle.
Any ideas?
from dokancloudfs.
Hi @viciousviper ,
I would propose NtResult.AccessDenied
as you proposed but as you seen, the API method continue to be called because explorer or what ever, continue to ask to the system.
There is no possibility to check the credential before calling the mount ?
from dokancloudfs.
This 0b04378 should settle it.
from dokancloudfs.
Related Issues (20)
- Add Baidu Cloud Support HOT 10
- Openstack swift HOT 2
- nuget packages fail HOT 6
- Mounter runtime problem HOT 16
- Protect sensitive credentials and keys using Windows crypto API HOT 2
- Wasted an entire 16 hours trying to use this library HOT 2
- No gateway is registered for schema HOT 5
- build error referencing wrong version HOT 1
- Mounting Google storage bucket or folder HOT 5
- Paste or drop file action [question] HOT 5
- Add Mail.ru Cloud Support HOT 4
- Support for Java. HOT 5
- google drive not working HOT 6
- Yandex causing error HOT 1
- Webdav mount problem HOT 4
- Huge memory consumption during opening big files in Google Drive HOT 1
- Can this be used with directory mounts? HOT 8
- Google Drive ArgumentException: Trying to set a IgorSoft.CloudFS.Interface.RootName
- new content not syncing down from box
- Why true random access is not allowed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokancloudfs.