terreng / simple-web-server

Create a local web server in just a few clicks with an easy to use interface. Built with Electron.
https://simplewebserver.org
MIT License
242 stars 65 forks source link

Error on recreation of the root folder for a web server #154

Open RupprechJo opened 1 year ago

RupprechJo commented 1 year ago

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)

ethanaobrien commented 1 year ago

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

RupprechJo commented 1 year ago

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

terreng commented 1 year ago

@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 commented 1 year ago

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.