-
Notifications
You must be signed in to change notification settings - Fork 358
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
Added chmod perm, modal to change, api with local/ftp/sftp #399
Added chmod perm, modal to change, api with local/ftp/sftp #399
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #399 +/- ##
============================================
- Coverage 99.89% 97.87% -2.02%
- Complexity 379 385 +6
============================================
Files 25 25
Lines 970 990 +20
============================================
Hits 969 969
- Misses 1 21 +20
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I finished reading permissions from ftp adapter. It's very ugly. I had to copy-paste a bunch of functions from the Ftp and AbstractFtpAdapter to make it work. Possible better option is to create |
Thanks for this! I agree, this is very awkward and ugly solution. I would rather have a brand new However, the storage service needs to be adjusted first with permissions parameters and some defaults to maintain compatibility. I also see that flysystem has added some support for file permissions, and the upgrade of this library is already overdue. |
@alcalbg should we proceed with this current ugly ftp solution for now ? Only the recursive function remains to be developed for this PR to be complete. Maybe I'll have time for a filesystem upgrade in a separate pr. |
Actually it still does not expose raw permissions. When we switch to v3 we still don't know the exact permissions of a file, and we can't change them individually. Only a visibility parameter is present, the same as now on v1. That function only does permission matching and conversion for |
This PR it's done. I accomplished that I think it's needed. @alcalbg I am trying to run Do I need to install something additional for this? |
@alcalbg Did you have any chance to look at the final version? |
No, not yet, sorry, I have other work to finish atm |
@AndreiTelteu your additions look ideal, since I've been eyeing out FileGator, but not proceeding, because of the inability to set UNIX file permissions. It's unclear (to me) whether or not your PR does in fact implement what your screen shot implies, or whether the visibility layer of FlySystem is blocking this. Please clarify? Thanks. My understanding is that you've avoided the visibility abstraction and have added the ability to set real UNIX permissions. Is this accurate. Sorry, I haven't downloaded and applied your code yet. |
@zoot I implemented full custom UNIX permissions for the drivers: local, FTP, SFTP, and I tested them, verifying the results both in the new interface after a full page refresh, and on the server with FlySystem's visibility features only have a configurable unix permission for public and private, and allows you to set a file to public or private, allowing you to switch only between those 2 configurable unix permissions. It does now allow you to change custom unix permission, or to see the existing permissions. Note: for the FTP driver to work you have to use the custom driver that I made, I changed the documentation page to reflect this change. 'adapter' => function () {
- return new \League\Flysystem\Adapter\Ftp([
+ return new \Filegator\Services\Storage\Adapters\FilegatorFtp([
'host' => 'example.com',
'username' => 'demo', |
Thanks for the prompt reply @AndreiTelteu and the good news :) I'll set some time aside to apply your patch to the master branch and test with the local filesystem driver. |
Any news regarding this PR? Would love to see it merged... |
@AndreiTelteu Any news on this? |
Any news on this? |
Why this is not merged? |
@zoot weren't you going to test and merge this into filegator? The users are getting to the point of searching for another file manager because of this BASIC feature... |
@tlcd96 please review the above thread. I am neither a developer on this project, nor do I have time to contribute. Merely a possible and grateful end-user who has not yet had the time to attempt to apply the available patch for my own testing. |
Sorry @zoot, I thought you where a developer for this project. My mistake, and I apologize. |
@alcalbg are you one of the developers? if yes, can you, for god’s sake, see the patch and apply accordingly? we are waiting for this since 2023. also, i see that @AJBassa has committed some changes, we really need this on the filegator repo. please apply the patch and change what is needed since this changes where made in 2023 |
Read a fill current permissions for local driver Finished permissions for ftp driver, read and change Read permissions for sftp adapter Created FilegatorFtp for a cleaner permissions integration Implemented recursive chmod options for files/folders Modified tests to cover permissions Lint frontend permissions component
3532900
to
bd54c43
Compare
Hi @alcalbg |
Thanks @AndreiTelteu |
This is now merged and released as v7.10.0 |
I started implementing the long-requested chmod functionality. #112
Feedback is welcomed
Progress:
FilegatorFtp
that extends the original - done and tested