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

Ignore forbidden exception when fetching share mtime on SMB for symlinks #16195

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

MorrisJobke
Copy link
Member

@@ -302,6 +302,8 @@ private function shareMTime() {
}
} catch (NotFoundException $e) {
// Ignore this, can happen on unavailable DFS shares
} catch (ForbiddenException $e) {
// Ignore this too - it's a symlink
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My SMB knowledge is not good enough.
But is forbidden always a symlink?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least it shows a folder where you don't have permissions. In general it's not really nice, because what happens if you create a folder that is already in there, but hidden in this way? On the other side: this is the code for fetching the share mtime and not the one for directory listing (which happened before then).

@rullzer rullzer force-pushed the bugfix/7556/smb-symlink-share-mtime branch from d24c872 to adc2ab4 Compare July 8, 2019 19:43
@rullzer rullzer added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 8, 2019
@rullzer rullzer merged commit e94bbfc into master Jul 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the bugfix/7556/smb-symlink-share-mtime branch July 9, 2019 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: external storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants