Giter Site home page Giter Site logo

Comments (4)

viciousviper avatar viciousviper commented on June 4, 2024

@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.

viciousviper avatar viciousviper commented on June 4, 2024

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.

Liryna avatar Liryna commented on June 4, 2024

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.

viciousviper avatar viciousviper commented on June 4, 2024

This 0b04378 should settle it.

from dokancloudfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.