-
Notifications
You must be signed in to change notification settings - Fork 74
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
Correctly handle directories that are actually custom stream wrappers #538
Comments
What should we be doing in this instance? Is it possible for us to tell whether something like an S3 url is writable / correct? Or should we only be showing those warnings if the backup directory is on local filesystem? |
cc @joehoyle would be good to get your input here |
After looking into the whole BUWP + S3 Uploads thing, the main problem is that BUWP is not going to support an uploads directory using a custom stream handler (that's to say anything other than the filesystem stream handler.) I'd say you should have an activated check or whatever that the uploads dir is a local stream wrapper, and fail if it is not. This error is just the beginning of what the problems will currently be even if suppressing this error. |
Makes sense, I'm +1 on detecting and warning the user. Does the fact the the uploads folder is using a custom stream wrapper always mean we need to fail though or will it only fail if we are trying to store backups in the uploads directory? If the backup is stored elsewhere on the filesystem it should work fine right? In that case, are we able to backup the uploads directory if it's using a custom stream wrapper? Or does it stop us accessing the files for the purposes of backup also? I think we have two possible scenarios both of which need detecting and reporting to the user.
Make sense? |
Right, so if your using a custom stream wrapper, I guess there's no reason you can't store the backups in However, if you're not backing up the uploads, I'm not sure of the utility for anything other than database backups. The current system won't work with custom stream wrappers as we're using system tools like |
@joehoyle ok cool, makes sense 👍 For now I'm tempted to just catch and treat uploads as a folder that can't be read and backed up in the same we treat any unreadable files / directories. At least it will then be clear to the user that uploads isn't being backed up. |
We should re-test this now we're using |
Finder does support streams, but looks like we'll still need some special handling. |
@willmot can you speak more to the special handling we'd need to include? |
I haven't done the work to figure out how and why the the plugin fails when paired with S3 uploads, just that it does.
|
For example, if the site is using the S3 uploads plugin to store media on Amazon S3, BWP complains:
The text was updated successfully, but these errors were encountered: