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

[stable-3.9] always propagate locked status to read-only or read/write for real file #5883

Merged
merged 4 commits into from
Jul 12, 2023

Commits on Jul 12, 2023

  1. always propagate locked status to read-only or read/write for real file

    make sure that a file locked that would not be modifiable by the
    current client is read-only on storage
    
    also make sure we make a file read/write when modification can happen
    again
    
    Close #5537
    
    Signed-off-by: Matthieu Gallien <[email protected]>
    mgallien authored and backportbot-nextcloud[bot] committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    0640fbd View commit details
    Browse the repository at this point in the history
  2. enable debug log for some automated tests

    should help investigate failure for automated tests
    
    Signed-off-by: Matthieu Gallien <[email protected]>
    mgallien authored and backportbot-nextcloud[bot] committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    a67b7b2 View commit details
    Browse the repository at this point in the history
  3. fix failing tests by using FileSystem::setFileReadOnlyWeak

    we try to preserve complex existing permissions unless the client is
    required to change them significantly
    
    Signed-off-by: Matthieu Gallien <[email protected]>
    mgallien authored and backportbot-nextcloud[bot] committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    7ab841f View commit details
    Browse the repository at this point in the history
  4. set read only/read file on the newly downloaded file

    will fix behavior on windows by properly setting the new temp file just
    downloaded have the proper state (read only or read/write) and not the
    already existing file that will be replaced by the newly odwnloaded one
    
    Signed-off-by: Matthieu Gallien <[email protected]>
    mgallien authored and backportbot-nextcloud[bot] committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    55d6443 View commit details
    Browse the repository at this point in the history