Skip to content
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

Support uploading files with administrator privileges #845

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jelly
Copy link
Member

@jelly jelly commented Nov 28, 2024

Files could not yet support uploading to non-logged in user directories as these files would always be uploaded as root:root and this might not be wanted in directories not owned by root.

This change will bring the upload support in line with what we already did for creating a new file and directory. When uploading to a directory not owned by the current user give the user to pick the expected ownership for all to be uploaded files.

Required test cases:

  • upload to / as administrator and make the file owned by admin:admin
  • upload to /root as root
  • upload to /home/testuser and file owned as testuser:testuser

Allow uploading everywhere

image

Files could not yet support uploading to non-logged in user directories
as these files would always be uploaded as `root:root` and this might
not be wanted in directories not owned by `root`.

This change will bring the upload support in line with what we already
did for creating a new file and directory. When uploading to a directory
not owned by the current user give the user to pick the expected
ownership for all to be uploaded files.
@jelly jelly added the no-test label Nov 28, 2024
@@ -204,6 +297,11 @@
return;
}

function resetUnload() {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused function resetUnload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant