-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Whitelisted files need to be manually relisted #583
Comments
I'm trying to repro this, but I have no luck... The preferences persist, the access persists, everything works fine. Could you screenshot the "Files" list so I can see how your path looks, if there are spaces, etc? It might be related to NSUserDefaults. |
Hmmm ... there's a param we are not using, it might affect big sur.
|
Hi Kaspik, thanks for checking it out. I made a short video recording of what happens as well as the screenshot. Unfortunately the path to my .ssh directory does not contain any spaces, so I'm afraid that might not be the issue. Video: Image of path to my .ssh directory: Should you require anything else, I'd be more than happy to provide it. Thanks! |
Hmm, interesting, sorry to hear that. Could you please try one more thing (if @jamesstout doesn't have any other idea)?
I feel like there is something wrong with the instance/your mac and Sequel Ace... even selecting the config doesn't wok which is weird. |
I've tried both your suggestions using AppCleaner to remove everything related to Sequel Ace, but neither the AppStore version or the beta downloaded via GitHub have resolved the issue. Both of them still behave exactly like the video I captured earlier today. I'm not receiving any of the prompts that you mention either, which is something that worries me and makes me believe it is not fully removed despite using AppCleaner and removing everything it has flagged. For what it's worth as extra info for @jamesstout, this issue didn't start in Big Sur, I also experienced it in Catalina. I probably inherited it when I upgraded to Big Sur last month. |
Can you try resetting the prompts and the privacy when app is killed? It should reset everything privacy related for Sequel Ace. |
I tried your suggestion but I can't seem to trigger the prompts anymore. What I did is:
I didn't encounter any prompts during that process, and the behaviour of the whitelisting hasn't changed either. The tccutil command did provide this feedback |
All right, thanks. We will rewrite the file manager to Swift and more modern code, but it might not be for 3.0.0 release. :) |
I'll keep my eyes open for a future release then, thanks for the follow up. If there's anything I can provide (system settings, logs, etc.) I'd be more than happy to help. |
Just watched this ... very weird. Could we provide a custom build with logging switched on for @wblommaert? |
I would be more than happy to try out a custom build and provide you with all the logs it would generate. I'm assuming if that were the case I'd have to do a clean install of the app (using the steps provided by Kaspik)? |
@wblommaert any chance you could try out RC1 please? |
Hi @jamesstout, I tried out the RC1 you linked but unfortunately I'm still experiencing the same problems. Here's what I did when installing the RC1:
I then tried the things shown in the video I linked earlier this week, but the behaviour hasn't changed. I'd try a clean install of my Mac but since this is my work laptop that I need on a daily basis that is unfortunately not an option (not until I'm on leave at least). |
That's expected, we just added tons of logging so we will take a look at them. If you keep using it, it might give us even more info. Thanks! :) |
@wblommaert what's the size of your prefs file:
|
@jamesstout the file is 2kb in size, I don't seem to have the specific file you mention, I have the beta version instead (I assume AppCleaner got rid of the non-beta one) |
Hmmm, so it's not size (max size of a prefs file is 4MB). |
We got some crashlytics logs. I won't post the screenshots here. But basically
There's no key in prefs for
This line fails. Gives us something to go on... NSData *tmpAppScopedBookmark = [url
bookmarkDataWithOptions:(NSURLBookmarkCreationWithSecurityScope|NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess)
includingResourceValuesForKeys:nil
relativeToURL:nil
error:&error]; Sequel-Ace/Source/Controllers/Preferences/Panes/SPFilePreferencePane.m Lines 257 to 291 in d1d94b7
|
Hmm, we're using a different url object from the one selected in the panel:
This definitely caused problems for me during my initial write of the secure bookmarks code. |
@wblommaert could you show the output of
please or probably
for you. |
Hi @jamesstout, it gave me the output below:
|
@wblommaert Can you please try the latest beta/release (3.0.1) and let us know if it's fixed now? There were a few tweaks aimed at possibly addressing these issues! May still not be fixed yet, however, but worth a check |
Hi @Jason-Morcos, thank you for linking the latest release. This seems to have fixed all of the problems mentioned in this issue. Both the selection of my own ssh config and the selection of whitelisted files is now working correctly and showing the correct files. For safe measure I restarted the application several times to try and reproduce my problems, but I haven't encountered any issues anymore. Big thanks to @jamesstout and @Kaspik as well for the follow-up. Thanks guys! |
Unfortunately I'm afraid this issue has returned after updating to the latest version (3.1.1 build 3016) today. I'm not sure whether it was the combination of a macOS update and a Sequel Ace update, but I'm unable to whitelist files again and my connections fail due to not having access to the files I had whitelisted before. I've already tried uninstalling using AppCleaner and reinstalling from the AppStore but the issue persists. Is there anything I can provide to help investigate? The presented behaviour is exactly the same as in the video I provided earlier in this issue, the only difference being that in the original issue I coud still whitelist things and it would just not show visually while it seemed to whitelist them in the background. Currently I can't whitelist anything at all which means I can't use the application for any connections using SSH. |
Checking. Would you be happy to send me your prefs file? ( You can edit to remove any personal info. Or just send me the values for:
|
Hi @jamesstout, none of the keys you mention seem to be present in my prefs file. I've attached it in a zip so you can have a look (I didn't see any personal info in there, so it should be fine to share this I hope). |
Thanks. So haven't managed to create bookmark since you uninstalled/cleaned. Any chance your old prefs file is still in trash? Anyway, I think, I've identified an issue. I can't replicate your ssh config issue (might need to reboot into Big Sur), but I can't add multiple files on the files pane which is obviously a bug. |
I hadn't created any new bookmarks since the uninstall/clean. I tried doing so now, but none of the keys you mentioned were added to the prefs file afterwards. Unfortunately my old prefs file is no longer in trash, so sadly I can't provide that one anymore. I tried adding the files individually to work around the bug you mention, but that doesn't seem to work either. I'll try the reboot and see if that changes anything. |
@jamesstout I rebooted and noticed the following:
This now works after rebooting. I can add files individually, but not multiple at the same time.
This seems to have fixed the whitelisting and selection of my ssh config issue as well. Guess the good old turning it off and on again did something. |
Ahhh, great, cos I've fixed the multiple file thing and was trying to figure out your config issue. |
Thanks for looking into it @jamesstout , I hope I didn't take up too much valuable time. Do you recommend restarting after every Sequel Ace update? I'll close the issue again since everything seems to be working again since the reboot. I'll take that rebooting into account if I run into anything in the future. |
I hope we won't be touching this between every release (we made some changes, that could cause it) so it shouldn't be necessary. :) |
and added logging and alert #583 (again)
Description
Every time I start the program (cold restart) I need to explicitly whitelist my key files and config again or I can't connect to any server. Additionally, the dropdown to select my SSH config always reverts back to the Sequel Ace default option after browsing to the config file on my Mac. Whitelisting files on the Files tab of the settings also remains blank, even after adding files multiple times and after each restart.
Additionally (might be related to the same issue), whenever I try to export a database to an existing selected directory (such as my Desktop directory) it gives me a warning that I can't access that directory. When I browse to it in the export dialog window and select the exact same directory again it will export just fine. Again a case of having to reselect things I've selected before to trigger "permission to access".
I've even gone as far as giving Sequel Ace "Full Disk Access" in macOS, but to no avail.
Steps to reproduce whitelisting issue
Expected Behaviour
Whitelisted files to remain whitelisted after restarts of the program.
Is Issue Present in Latest Beta?
Yes, my latest attempt I've tried the pre-release of 3.0.0 and this still has the same problem.
Additional Context
Absolutely love what you guys have done picking up from Sequel Pro. I've installed the app using the App Store, already tried reinstalling multiple times, giving full disk access, trying several betas over the months, but nothing seems to resolve my problem. The app doesn't crash so I don't have any crash logs, it just seems to always lose its sandbox access to whitelisted files after restarting.
The text was updated successfully, but these errors were encountered: