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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for folder existence in FolderController #2375

Merged
merged 2 commits into from May 10, 2023

Conversation

Antreesy
Copy link
Contributor

@Antreesy Antreesy commented May 9, 2023

Based on customer bug report: all folder changes requests return a success, even if the folder doesn't exist.

Added a private method based on already existing code, to return 404 if folder is not exist.
Sorry for my poor PHP-knowledge, i did the best i could 馃檭 Please feel free to suggest changes or edit by yourself.

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
lib/Controller/FolderController.php Outdated Show resolved Hide resolved
Co-authored-by: Julius H盲rtl <jus@bitgrid.net>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@juliushaertl juliushaertl merged commit 520ba25 into master May 10, 2023
14 checks passed
@juliushaertl juliushaertl deleted the fix/noid/handle-folder-conroller-output branch May 10, 2023 14:25
@Antreesy
Copy link
Contributor Author

/backport to stable26

@Antreesy
Copy link
Contributor Author

/backport to stable25

@backportbot-nextcloud
Copy link

The backport to stable25 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable25
git pull origin/stable25

# Create the new backport branch
git checkout -b fix/foo-stable25

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable25

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Items that need to be reviewed bug help wanted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants