-
Notifications
You must be signed in to change notification settings - Fork 68
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
AssetAdapter - If the visibility is already correct, do not try to re-set it. #563
Conversation
3402b33
to
3f9fa6e
Compare
This fix is for inclusion in the next minor release of silverstripe/silverstripe-framework:^4.x which uses silverstripe/silverstripe-assets:^1.x However, I've already checked and this commit is also safe to rebase/cherry-pick/whatever into silverstripe/silverstripe-assets:^2.x as well. |
3f9fa6e
to
dae0af8
Compare
Hi, |
dae0af8
to
c6efce8
Compare
My pleasure! Let me know if I did that right! :) |
Yes, looks like you have, thank you! |
c6efce8
to
a791b09
Compare
Code looks good, I'm running an extra test of this PR on running against the silverstripe/installer CI - if that goes green I'm happy to merge https://github.com/emteknetnz/silverstripe-installer/actions/runs/5947561612 Update: This phpunit test failure is existing
However this behat test failure is not
Issues appears to be I've replicated the behat failure locally and have confirmed that it does not happen with the most recent version of silverstripe/assets - 53e8331. I tried rebase the PR branch on top of 53e8331 on my local however that didn't resolve the behat failure. |
Attempting to set the visibility of a file/folder when the filesystem is already set correctly causes "Operation not permitted" errors on some Linux servers. This commit fixes that issue.
a791b09
to
5b6cc33
Compare
Updated installer test using pull-request - if this goes green then I'm happy with this pull-request https://github.com/emteknetnz/silverstripe-installer/actions/runs/6116321876 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting really weird results with this branch, on the test I did running this branch against the silverstripe/installer CI https://github.com/emteknetnz/silverstripe-installer/actions/runs/6116321876 there is a behat test failure. I could replicate this locally.
Running this locally, and rebasing this branch top of assets 1.13 didn't do anything. However if I recreated the branch from 1.13 and then copy pasted the contents of AssetAdapter.php in (essentially recreating the PR), then the behat test did pass.
So would you be able to recreate this PR on top of 1.13 please?
@nathanbrauer Have you had a chance to look at this one. I'll look to close this PR in a week or so if there's no further activity on it |
It's on my radar and I'll come back to it soon (currently working through some other priorities). |
Looks like there hasn't been any work done on this PR for a while. I'll close this for now. Feel free to reopen this if further work is done on it. |
AssetAdapter.php
- If the visibility is already correct, do not try to re-set it.Attempting to set the visibility of a file/folder when the filesystem is already set correctly causes "Operation not permitted" errors on some Linux servers in
/dev/build
. This often leads to a fatal error preventing the completion of the/dev/build
.Issue