-
Notifications
You must be signed in to change notification settings - Fork 452
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
ignore credential cache if no username is specified #1019
Conversation
I'm not confident at all that I understand what's going on (I have only ever written a rust hello world) but here's what I think after a trial:
Given all that, the problem persists in this branch. I connect with phone a, disconnect, connect with phone b, crash. |
I have just built and tested the branch eladyn:zeroconf_cache_fix and I'm able to say that using Thank you for fixing this, @eladyn ! |
Thank you both for having a look! @mas-4: You're right, this PR does not try to fix the re-usability issue without restarting spotifyd. It only prevents the credential cache from clashing with zeroconf authentication. @aanno, thanks for testing it. Marked as ready for review so that it hopefully can be merged soon. |
I think, this is no longer necessary and is now working as intended on |
Well, I tried this compiling the code on master. It's working when the spotifyd audio cache feature is off ( However, when the spotifyd audio cache feature is on ( I guess that this is not the intended outcome (and it comes to me as surprise as well!). |
Thanks for your report, I'm going to take a look, if I can find out what's going on there soon! |
@aanno I just got around to trying it myself and I can confirm this bug. For me, it's even happening with |
As mentioned in #948 (thanks @aanno and @mas-4), zeroconf authentication fails if caching is enabled and credentials of a different user are cached. This adds extra handling for this case.
This PR has not yet been tested!