simple-web-server icon indicating copy to clipboard operation
simple-web-server copied to clipboard

Error on recreation of the root folder for a web server

Open RupprechJo opened this issue 1 year ago • 4 comments

Description/Steps to reproduce Add a new server Delete the root folder of the server and create a new one with the same name. In the browser you get a 500, in the app you see this error: "File system error", "bookmarkDataIsStale - try recreating the bookmark".

The web server for chrome supported this use case. The reason is: Our build process recreates the whole folder

Version information macOs, version 1.2.8 (26)

RupprechJo avatar Aug 11 '23 14:08 RupprechJo

I believe this is a limitation (restriction) with macOS security bookmarks

ethanaobrien avatar Aug 11 '23 14:08 ethanaobrien

Hm, I do not now many about macOS security bookmarks. I only know, when a directory is deleted, you have to recreate your file / file path object (depending on the language/framework you use).

As it is, it is not usable at all for me, because you always have to reselect the same folder from the file system dialog

RupprechJo avatar Aug 11 '23 15:08 RupprechJo

@RupprechJo This is a known issue with the Mac App Store version of the program only due to Apple's security measures. Please download the program from our website instead to get around this limitation.

terreng avatar Aug 11 '23 17:08 terreng

I'm going to leave this issue open because I think it would be nice to find a solution for Mac App Store users. One possible fix would be to ask the user to pick a directory a level (or a few levels) up, and then specify a path relative to that. Maybe a button to select the root/user folder to give the app access to everything. I'm not sure if the app store review team would have a problem with that.

terreng avatar Aug 11 '23 17:08 terreng